Overview
S Balance
0 S
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
VeArcTransferHandler
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import {ArcBaseWithRainbowRoad} from "../bases/ArcBaseWithRainbowRoad.sol"; import {IArc} from "../interfaces/IArc.sol"; import {IHandler} from "../interfaces/IHandler.sol"; import {IMintBurn} from "../interfaces/IMintBurn.sol"; import {IVotingEscrow} from "../interfaces/IVotingEscrow.sol"; /** * Dex Weekly Update Handler */ contract VeArcTransferHandler is ArcBaseWithRainbowRoad, IHandler { uint internal constant WEEK = 1 weeks; uint internal constant MAXTIME = 4 * 365 * 86400; IVotingEscrow public veArc; event VeArcMinted(address indexed account, uint fromTokenId, uint toTokenId, uint amount, uint fromLockEnd, uint toLockEnd); event VeArcReceived(address indexed operator, address indexed from, uint tokenId, bytes data); constructor(address _rainbowRoad, address _veArc) ArcBaseWithRainbowRoad(_rainbowRoad) { require(_veArc != address(0), 'veArc cannot be zero address'); veArc = IVotingEscrow(_veArc); } function setVeArc(address _veArc) external onlyOwner { require(_veArc != address(0), 'veArc cannot be zero address'); veArc = IVotingEscrow(_veArc); } function encodePayload(uint tokenId) view external returns (bytes memory payload) { uint lockedAmount = veArc.locked__amount(tokenId); uint lockedEnd = veArc.locked__end(tokenId); uint blockTimestamp = block.timestamp; uint lockDuration = lockedEnd - blockTimestamp; require(lockDuration > 0, 'veArc cannot be expired'); uint unlockTime = (blockTimestamp + lockDuration) / WEEK * WEEK; // Locktime is rounded down to weeks require(unlockTime > blockTimestamp, 'Lock cannot expire soon'); require(unlockTime <= blockTimestamp + MAXTIME, 'Cannot be locked for more than 4 years'); return abi.encode(tokenId, lockedAmount, lockedEnd); } function handleSend(address target, bytes calldata payload) external onlyRainbowRoad whenNotPaused { (uint tokenId, uint lockedAmount, uint lockedEnd) = abi.decode(payload, (uint, uint, uint)); uint currentLockedAmount = veArc.locked__amount(tokenId); require(currentLockedAmount == lockedAmount, 'Locked amount for veArc is invalid'); uint currentLockedEnd = veArc.locked__end(tokenId); require(currentLockedEnd == lockedEnd, 'Locked end for veArc is invalid'); uint blockTimestamp = block.timestamp; uint lockDuration = lockedEnd - blockTimestamp; require(lockDuration > 0, 'veArc cannot be expired'); uint unlockTime = (blockTimestamp + lockDuration) / WEEK * WEEK; // Locktime is rounded down to weeks require(unlockTime > blockTimestamp, 'Lock cannot expire soon'); require(unlockTime <= blockTimestamp + MAXTIME, 'Cannot be locked for more than 4 years'); veArc.safeTransferFrom(target, address(this), tokenId); veArc.burn(tokenId); } function handleReceive(address target, bytes calldata payload) external onlyRainbowRoad whenNotPaused { (uint tokenId, uint lockedAmount, uint lockedEnd) = abi.decode(payload, (uint, uint, uint)); uint blockTimestamp = block.timestamp; uint newLockDuration = lockedEnd - blockTimestamp; IArc arc = rainbowRoad.arc(); arc.mint(address(this), lockedAmount); arc.approve(address(veArc), lockedAmount); uint newTokenId = veArc.create_lock_for(lockedAmount, newLockDuration, target); emit VeArcMinted(target, tokenId, newTokenId, lockedAmount, lockedEnd, newLockDuration + blockTimestamp); } function onERC721Received(address operator, address from, uint tokenId, bytes calldata data) external returns (bytes4) { emit VeArcReceived(operator, from, tokenId, data); return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol) pragma solidity ^0.8.0; import "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner"); _transferOwnership(sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * Provides set of properties, functions, and modifiers to help with * security and access control of extending contracts */ contract ArcBase is Ownable2Step, Pausable, ReentrancyGuard { function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function withdrawNative(address beneficiary) public onlyOwner { uint256 amount = address(this).balance; (bool sent, ) = beneficiary.call{value: amount}(""); require(sent, 'Unable to withdraw'); } function withdrawToken(address beneficiary, address token) public onlyOwner { uint256 amount = IERC20(token).balanceOf(address(this)); IERC20(token).transfer(beneficiary, amount); } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; import {ArcBase} from "./ArcBase.sol"; import {IRainbowRoad} from "../interfaces/IRainbowRoad.sol"; /** * Extends the ArcBase contract to provide * for interactions with the Rainbow Road */ contract ArcBaseWithRainbowRoad is ArcBase { IRainbowRoad public rainbowRoad; constructor(address _rainbowRoad) { require(_rainbowRoad != address(0), 'Rainbow Road cannot be zero address'); rainbowRoad = IRainbowRoad(_rainbowRoad); } function setRainbowRoad(address _rainbowRoad) external onlyOwner { require(_rainbowRoad != address(0), 'Rainbow Road cannot be zero address'); rainbowRoad = IRainbowRoad(_rainbowRoad); } /// @dev Only calls from the Rainbow Road are accepted. modifier onlyRainbowRoad() { require(msg.sender == address(rainbowRoad), 'Must be called by Rainbow Road'); _; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; interface IArc { function approve(address _spender, uint _value) external returns (bool); function burn(uint amount) external; function mint(address account, uint amount) external; function transfer(address, uint) external returns (bool); function transferFrom(address _from, address _to, uint _value) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; interface IHandler { function handleReceive(address target, bytes calldata payload) external; function handleSend(address target, bytes calldata payload) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; interface IMintBurn { function burn(uint amount) external; function mint(address account, uint amount) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.19; import {IArc} from "./IArc.sol"; interface IRainbowRoad { function acceptTeam() external; function actionHandlers(string calldata action) external view returns (address); function arc() external view returns (IArc); function blockToken(address tokenAddress) external; function disableFeeManager(address feeManager) external; function disableOpenTokenWhitelisting() external; function disableReceiver(address receiver) external; function disableSender(address sender) external; function disableSendFeeBurn() external; function disableSendFeeCharge() external; function disableWhitelistingFeeBurn() external; function disableWhitelistingFeeCharge() external; function enableFeeManager(address feeManager) external; function enableOpenTokenWhitelisting() external; function enableReceiver(address receiver) external; function enableSendFeeBurn() external; function enableSender(address sender) external; function enableSendFeeCharge() external; function enableWhitelistingFeeBurn() external; function enableWhitelistingFeeCharge() external; function sendFee() external view returns (uint256); function whitelistingFee() external view returns (uint256); function chargeSendFee() external view returns (bool); function chargeWhitelistingFee() external view returns (bool); function burnSendFee() external view returns (bool); function burnWhitelistingFee() external view returns (bool); function openTokenWhitelisting() external view returns (bool); function config(string calldata configName) external view returns (bytes memory); function blockedTokens(address tokenAddress) external view returns (bool); function feeManagers(address feeManager) external view returns (bool); function receiveAction(string calldata action, address to, bytes calldata payload) external; function sendAction(string calldata action, address from, bytes calldata payload) external; function setActionHandler(string memory action, address handler) external; function setArc(address _arc) external; function setSendFee(uint256 _fee) external; function setTeam(address _team) external; function setTeamRate(uint256 _teamRate) external; function setToken(string calldata tokenSymbol, address tokenAddress) external; function setWhitelistingFee(uint256 _fee) external; function team() external view returns (address); function teamRate() external view returns (uint256); function tokens(string calldata tokenSymbol) external view returns (address); function MAX_TEAM_RATE() external view returns (uint256); function receivers(address receiver) external view returns (bool); function senders(address sender) external view returns (bool); function unblockToken(address tokenAddress) external; function whitelist(address tokenAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IVotingEscrow { struct Point { int128 bias; int128 slope; // # -dweight / dt uint256 ts; uint256 blk; // block } function user_point_epoch(uint tokenId) external view returns (uint); function epoch() external view returns (uint); function user_point_history(uint tokenId, uint loc) external view returns (Point memory); function point_history(uint loc) external view returns (Point memory); function checkpoint() external; function deposit_for(uint tokenId, uint value) external; function token() external view returns (address); function user_point_history__ts(uint tokenId, uint idx) external view returns (uint); function locked__end(uint _tokenId) external view returns (uint); function locked__amount(uint _tokenId) external view returns (uint); function approve(address spender, uint tokenId) external; function balanceOfNFT(uint) external view returns (uint); function isApprovedOrOwner(address, uint) external view returns (bool); function ownerOf(uint) external view returns (address); function transferFrom(address, address, uint) external; function totalSupply() external view returns (uint); function supply() external view returns (uint); function create_lock_for(uint, uint, address) external returns (uint); function lockVote(uint tokenId) external; function isVoteExpired(uint tokenId) external view returns (bool); function voteExpiry(uint _tokenId) external view returns (uint); function attach(uint tokenId) external; function detach(uint tokenId) external; function voting(uint tokenId) external; function abstain(uint tokenId) external; function voted(uint tokenId) external view returns (bool); function withdraw(uint tokenId) external; function create_lock(uint value, uint duration) external returns (uint); function setVoter(address voter) external; function balanceOf(address owner) external view returns (uint); function safeTransferFrom(address from, address to, uint tokenId) external; function burn(uint _tokenId) external; function setAdmin(address _admin) external; function setArtProxy(address _proxy) external; }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"},{"internalType":"address","name":"_veArc","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fromLockEnd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toLockEnd","type":"uint256"}],"name":"VeArcMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"VeArcReceived","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"encodePayload","outputs":[{"internalType":"bytes","name":"payload","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"handleReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"handleSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rainbowRoad","outputs":[{"internalType":"contract IRainbowRoad","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"}],"name":"setRainbowRoad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_veArc","type":"address"}],"name":"setVeArc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"veArc","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001c9b38038062001c9b8339810160408190526200003491620001d6565b8162000040336200014b565b6001805460ff60a01b191681556002556001600160a01b038116620000b85760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201526265737360e81b60648201526084015b60405180910390fd5b600380546001600160a01b0319166001600160a01b039283161790558116620001245760405162461bcd60e51b815260206004820152601c60248201527f76654172632063616e6e6f74206265207a65726f2061646472657373000000006044820152606401620000af565b600480546001600160a01b0319166001600160a01b0392909216919091179055506200020e565b600180546001600160a01b0319169055620001668162000169565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001d157600080fd5b919050565b60008060408385031215620001ea57600080fd5b620001f583620001b9565b91506200020560208401620001b9565b90509250929050565b611a7d806200021e6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80636a936817116100b25780638da5cb5b11610081578063c18272fc11610066578063c18272fc146102d6578063e30c3978146102e9578063f2fde38b1461030757600080fd5b80638da5cb5b146102a5578063bfb5944a146102c357600080fd5b80636a9368171461026d578063715018a61461028d57806379ba5097146102955780638456cb591461029d57600080fd5b80633aeac4e1116101095780633f4ba83a116100ee5780633f4ba83a146101f25780635c975abb146101fa5780635fd7b3e81461022857600080fd5b80633aeac4e1146101cc5780633ed0da7f146101df57600080fd5b8063150b7a021461013b5780631751545b146101845780632f622e6b14610199578063342242e8146101ac575b600080fd5b61014e610149366004611718565b61031a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b61019761019236600461178b565b6103b0565b005b6101976101a736600461178b565b610467565b6101bf6101ba3660046117af565b610524565b60405161017b91906117c8565b6101976101da366004611834565b6107e2565b6101976101ed36600461186d565b61091e565b610197610e12565b60015474010000000000000000000000000000000000000000900460ff16604051901515815260200161017b565b6004546102489073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161017b565b6003546102489073ffffffffffffffffffffffffffffffffffffffff1681565b610197610e24565b610197610e36565b610197610ed1565b60005473ffffffffffffffffffffffffffffffffffffffff16610248565b6101976102d136600461178b565b610ee1565b6101976102e436600461186d565b610fb9565b60015473ffffffffffffffffffffffffffffffffffffffff16610248565b61019761031536600461178b565b61132f565b60008473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f92f9ceb9e44fef0e790878730b53e80682a2614d46ad043140c698a23d0e643686868660405161037d939291906118c2565b60405180910390a3507f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6103b86113df565b73ffffffffffffffffffffffffffffffffffffffff81166104205760405162461bcd60e51b815260206004820152601c60248201527f76654172632063616e6e6f74206265207a65726f20616464726573730000000060448201526064015b60405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61046f6113df565b604051479060009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146104c9576040519150601f19603f3d011682016040523d82523d6000602084013e6104ce565b606091505b505090508061051f5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f20776974686472617700000000000000000000000000006044820152606401610417565b505050565b600480546040517f9700ad3a00000000000000000000000000000000000000000000000000000000815291820183905260609160009173ffffffffffffffffffffffffffffffffffffffff1690639700ad3a90602401602060405180830381865afa158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611916565b600480546040517ff8a0576300000000000000000000000000000000000000000000000000000000815291820186905291925060009173ffffffffffffffffffffffffffffffffffffffff169063f8a0576390602401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611916565b9050426000610661828461195e565b9050600081116106b35760405162461bcd60e51b815260206004820152601760248201527f76654172632063616e6e6f7420626520657870697265640000000000000000006044820152606401610417565b600062093a80806106c48486611977565b6106ce919061198a565b6106d891906119c5565b90508281116107295760405162461bcd60e51b815260206004820152601760248201527f4c6f636b2063616e6e6f742065787069726520736f6f6e0000000000000000006044820152606401610417565b610737630784ce0084611977565b8111156107ac5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206265206c6f636b656420666f72206d6f7265207468616e203460448201527f20796561727300000000000000000000000000000000000000000000000000006064820152608401610417565b60408051602081018990529081018690526060810185905260800160405160208183030381529060405295505050505050919050565b6107ea6113df565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087b9190611916565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af11580156108f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091891906119dc565b50505050565b60035473ffffffffffffffffffffffffffffffffffffffff1633146109855760405162461bcd60e51b815260206004820152601e60248201527f4d7573742062652063616c6c6564206279205261696e626f7720526f616400006044820152606401610417565b61098d611446565b6000808061099d848601866119fe565b600480546040517f9700ad3a000000000000000000000000000000000000000000000000000000008152918201859052939650919450925060009173ffffffffffffffffffffffffffffffffffffffff1690639700ad3a90602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611916565b9050828114610ab05760405162461bcd60e51b815260206004820152602260248201527f4c6f636b656420616d6f756e7420666f7220766541726320697320696e76616c60448201527f69640000000000000000000000000000000000000000000000000000000000006064820152608401610417565b600480546040517ff8a0576300000000000000000000000000000000000000000000000000000000815291820186905260009173ffffffffffffffffffffffffffffffffffffffff9091169063f8a0576390602401602060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b469190611916565b9050828114610b975760405162461bcd60e51b815260206004820152601f60248201527f4c6f636b656420656e6420666f7220766541726320697320696e76616c6964006044820152606401610417565b426000610ba4828661195e565b905060008111610bf65760405162461bcd60e51b815260206004820152601760248201527f76654172632063616e6e6f7420626520657870697265640000000000000000006044820152606401610417565b600062093a8080610c078486611977565b610c11919061198a565b610c1b91906119c5565b9050828111610c6c5760405162461bcd60e51b815260206004820152601760248201527f4c6f636b2063616e6e6f742065787069726520736f6f6e0000000000000000006044820152606401610417565b610c7a630784ce0084611977565b811115610cef5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206265206c6f636b656420666f72206d6f7265207468616e203460448201527f20796561727300000000000000000000000000000000000000000000000000006064820152608401610417565b600480546040517f42842e0e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811693820193909352306024820152604481018b90529116906342842e0e90606401600060405180830381600087803b158015610d6b57600080fd5b505af1158015610d7f573d6000803e3d6000fd5b5050600480546040517f42966c680000000000000000000000000000000000000000000000000000000081529182018c905273ffffffffffffffffffffffffffffffffffffffff1692506342966c689150602401600060405180830381600087803b158015610ded57600080fd5b505af1158015610e01573d6000803e3d6000fd5b505050505050505050505050505050565b610e1a6113df565b610e226114b1565b565b610e2c6113df565b610e22600061152e565b600154339073ffffffffffffffffffffffffffffffffffffffff168114610ec55760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610417565b610ece8161152e565b50565b610ed96113df565b610e2261155f565b610ee96113df565b73ffffffffffffffffffffffffffffffffffffffff8116610f725760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610417565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1633146110205760405162461bcd60e51b815260206004820152601e60248201527f4d7573742062652063616c6c6564206279205261696e626f7720526f616400006044820152606401610417565b611028611446565b60008080611038848601866119fe565b9194509250905042600061104c828461195e565b90506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b1c6a406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e19190611a2a565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810187905290915073ffffffffffffffffffffffffffffffffffffffff8216906340c10f1990604401600060405180830381600087803b15801561115257600080fd5b505af1158015611166573d6000803e3d6000fd5b5050600480546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821692810192909252602482018990528416925063095ea7b391506044016020604051808303816000875af11580156111e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120991906119dc565b50600480546040517fd4e54c3b0000000000000000000000000000000000000000000000000000000081529182018790526024820184905273ffffffffffffffffffffffffffffffffffffffff8b8116604484015260009291169063d4e54c3b906064016020604051808303816000875af115801561128c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b09190611916565b905073ffffffffffffffffffffffffffffffffffffffff8a167f4fab512c0f5fa4a7807dd2b8ee680f1b657a2c24ba1d2fd8363190ee3b62038b888389896112f88a8a611977565b604080519586526020860194909452928401919091526060830152608082015260a00160405180910390a250505050505050505050565b6113376113df565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561139a60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610417565b60015474010000000000000000000000000000000000000000900460ff1615610e225760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610417565b6114b96115ce565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610ece81611638565b611567611446565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115043390565b60015474010000000000000000000000000000000000000000900460ff16610e225760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610417565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ece57600080fd5b60008083601f8401126116e157600080fd5b50813567ffffffffffffffff8111156116f957600080fd5b60208301915083602082850101111561171157600080fd5b9250929050565b60008060008060006080868803121561173057600080fd5b853561173b816116ad565b9450602086013561174b816116ad565b935060408601359250606086013567ffffffffffffffff81111561176e57600080fd5b61177a888289016116cf565b969995985093965092949392505050565b60006020828403121561179d57600080fd5b81356117a8816116ad565b9392505050565b6000602082840312156117c157600080fd5b5035919050565b600060208083528351808285015260005b818110156117f5578581018301518582016040015282016117d9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000806040838503121561184757600080fd5b8235611852816116ad565b91506020830135611862816116ad565b809150509250929050565b60008060006040848603121561188257600080fd5b833561188d816116ad565b9250602084013567ffffffffffffffff8111156118a957600080fd5b6118b5868287016116cf565b9497909650939450505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016010192915050565b60006020828403121561192857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156119715761197161192f565b92915050565b808201808211156119715761197161192f565b6000826119c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820281158282048414176119715761197161192f565b6000602082840312156119ee57600080fd5b815180151581146117a857600080fd5b600080600060608486031215611a1357600080fd5b505081359360208301359350604090920135919050565b600060208284031215611a3c57600080fd5b81516117a8816116ad56fea264697066735822122079d9a8dede9bdd5b8d0a73b48444cd275e63ab399781373a9adc74102388525464736f6c634300081300330000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e0000000000000000000000006aca098fa93dad7a872f6dcb989f8b4a3afc3342
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101365760003560e01c80636a936817116100b25780638da5cb5b11610081578063c18272fc11610066578063c18272fc146102d6578063e30c3978146102e9578063f2fde38b1461030757600080fd5b80638da5cb5b146102a5578063bfb5944a146102c357600080fd5b80636a9368171461026d578063715018a61461028d57806379ba5097146102955780638456cb591461029d57600080fd5b80633aeac4e1116101095780633f4ba83a116100ee5780633f4ba83a146101f25780635c975abb146101fa5780635fd7b3e81461022857600080fd5b80633aeac4e1146101cc5780633ed0da7f146101df57600080fd5b8063150b7a021461013b5780631751545b146101845780632f622e6b14610199578063342242e8146101ac575b600080fd5b61014e610149366004611718565b61031a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b61019761019236600461178b565b6103b0565b005b6101976101a736600461178b565b610467565b6101bf6101ba3660046117af565b610524565b60405161017b91906117c8565b6101976101da366004611834565b6107e2565b6101976101ed36600461186d565b61091e565b610197610e12565b60015474010000000000000000000000000000000000000000900460ff16604051901515815260200161017b565b6004546102489073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161017b565b6003546102489073ffffffffffffffffffffffffffffffffffffffff1681565b610197610e24565b610197610e36565b610197610ed1565b60005473ffffffffffffffffffffffffffffffffffffffff16610248565b6101976102d136600461178b565b610ee1565b6101976102e436600461186d565b610fb9565b60015473ffffffffffffffffffffffffffffffffffffffff16610248565b61019761031536600461178b565b61132f565b60008473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f92f9ceb9e44fef0e790878730b53e80682a2614d46ad043140c698a23d0e643686868660405161037d939291906118c2565b60405180910390a3507f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6103b86113df565b73ffffffffffffffffffffffffffffffffffffffff81166104205760405162461bcd60e51b815260206004820152601c60248201527f76654172632063616e6e6f74206265207a65726f20616464726573730000000060448201526064015b60405180910390fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61046f6113df565b604051479060009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146104c9576040519150601f19603f3d011682016040523d82523d6000602084013e6104ce565b606091505b505090508061051f5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f20776974686472617700000000000000000000000000006044820152606401610417565b505050565b600480546040517f9700ad3a00000000000000000000000000000000000000000000000000000000815291820183905260609160009173ffffffffffffffffffffffffffffffffffffffff1690639700ad3a90602401602060405180830381865afa158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611916565b600480546040517ff8a0576300000000000000000000000000000000000000000000000000000000815291820186905291925060009173ffffffffffffffffffffffffffffffffffffffff169063f8a0576390602401602060405180830381865afa15801561062e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106529190611916565b9050426000610661828461195e565b9050600081116106b35760405162461bcd60e51b815260206004820152601760248201527f76654172632063616e6e6f7420626520657870697265640000000000000000006044820152606401610417565b600062093a80806106c48486611977565b6106ce919061198a565b6106d891906119c5565b90508281116107295760405162461bcd60e51b815260206004820152601760248201527f4c6f636b2063616e6e6f742065787069726520736f6f6e0000000000000000006044820152606401610417565b610737630784ce0084611977565b8111156107ac5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206265206c6f636b656420666f72206d6f7265207468616e203460448201527f20796561727300000000000000000000000000000000000000000000000000006064820152608401610417565b60408051602081018990529081018690526060810185905260800160405160208183030381529060405295505050505050919050565b6107ea6113df565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610857573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087b9190611916565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af11580156108f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091891906119dc565b50505050565b60035473ffffffffffffffffffffffffffffffffffffffff1633146109855760405162461bcd60e51b815260206004820152601e60248201527f4d7573742062652063616c6c6564206279205261696e626f7720526f616400006044820152606401610417565b61098d611446565b6000808061099d848601866119fe565b600480546040517f9700ad3a000000000000000000000000000000000000000000000000000000008152918201859052939650919450925060009173ffffffffffffffffffffffffffffffffffffffff1690639700ad3a90602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611916565b9050828114610ab05760405162461bcd60e51b815260206004820152602260248201527f4c6f636b656420616d6f756e7420666f7220766541726320697320696e76616c60448201527f69640000000000000000000000000000000000000000000000000000000000006064820152608401610417565b600480546040517ff8a0576300000000000000000000000000000000000000000000000000000000815291820186905260009173ffffffffffffffffffffffffffffffffffffffff9091169063f8a0576390602401602060405180830381865afa158015610b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b469190611916565b9050828114610b975760405162461bcd60e51b815260206004820152601f60248201527f4c6f636b656420656e6420666f7220766541726320697320696e76616c6964006044820152606401610417565b426000610ba4828661195e565b905060008111610bf65760405162461bcd60e51b815260206004820152601760248201527f76654172632063616e6e6f7420626520657870697265640000000000000000006044820152606401610417565b600062093a8080610c078486611977565b610c11919061198a565b610c1b91906119c5565b9050828111610c6c5760405162461bcd60e51b815260206004820152601760248201527f4c6f636b2063616e6e6f742065787069726520736f6f6e0000000000000000006044820152606401610417565b610c7a630784ce0084611977565b811115610cef5760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206265206c6f636b656420666f72206d6f7265207468616e203460448201527f20796561727300000000000000000000000000000000000000000000000000006064820152608401610417565b600480546040517f42842e0e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811693820193909352306024820152604481018b90529116906342842e0e90606401600060405180830381600087803b158015610d6b57600080fd5b505af1158015610d7f573d6000803e3d6000fd5b5050600480546040517f42966c680000000000000000000000000000000000000000000000000000000081529182018c905273ffffffffffffffffffffffffffffffffffffffff1692506342966c689150602401600060405180830381600087803b158015610ded57600080fd5b505af1158015610e01573d6000803e3d6000fd5b505050505050505050505050505050565b610e1a6113df565b610e226114b1565b565b610e2c6113df565b610e22600061152e565b600154339073ffffffffffffffffffffffffffffffffffffffff168114610ec55760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610417565b610ece8161152e565b50565b610ed96113df565b610e2261155f565b610ee96113df565b73ffffffffffffffffffffffffffffffffffffffff8116610f725760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610417565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1633146110205760405162461bcd60e51b815260206004820152601e60248201527f4d7573742062652063616c6c6564206279205261696e626f7720526f616400006044820152606401610417565b611028611446565b60008080611038848601866119fe565b9194509250905042600061104c828461195e565b90506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634b1c6a406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e19190611a2a565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810187905290915073ffffffffffffffffffffffffffffffffffffffff8216906340c10f1990604401600060405180830381600087803b15801561115257600080fd5b505af1158015611166573d6000803e3d6000fd5b5050600480546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821692810192909252602482018990528416925063095ea7b391506044016020604051808303816000875af11580156111e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120991906119dc565b50600480546040517fd4e54c3b0000000000000000000000000000000000000000000000000000000081529182018790526024820184905273ffffffffffffffffffffffffffffffffffffffff8b8116604484015260009291169063d4e54c3b906064016020604051808303816000875af115801561128c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b09190611916565b905073ffffffffffffffffffffffffffffffffffffffff8a167f4fab512c0f5fa4a7807dd2b8ee680f1b657a2c24ba1d2fd8363190ee3b62038b888389896112f88a8a611977565b604080519586526020860194909452928401919091526060830152608082015260a00160405180910390a250505050505050505050565b6113376113df565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561139a60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610417565b60015474010000000000000000000000000000000000000000900460ff1615610e225760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610417565b6114b96115ce565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610ece81611638565b611567611446565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586115043390565b60015474010000000000000000000000000000000000000000900460ff16610e225760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610417565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff81168114610ece57600080fd5b60008083601f8401126116e157600080fd5b50813567ffffffffffffffff8111156116f957600080fd5b60208301915083602082850101111561171157600080fd5b9250929050565b60008060008060006080868803121561173057600080fd5b853561173b816116ad565b9450602086013561174b816116ad565b935060408601359250606086013567ffffffffffffffff81111561176e57600080fd5b61177a888289016116cf565b969995985093965092949392505050565b60006020828403121561179d57600080fd5b81356117a8816116ad565b9392505050565b6000602082840312156117c157600080fd5b5035919050565b600060208083528351808285015260005b818110156117f5578581018301518582016040015282016117d9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6000806040838503121561184757600080fd5b8235611852816116ad565b91506020830135611862816116ad565b809150509250929050565b60008060006040848603121561188257600080fd5b833561188d816116ad565b9250602084013567ffffffffffffffff8111156118a957600080fd5b6118b5868287016116cf565b9497909650939450505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016010192915050565b60006020828403121561192857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156119715761197161192f565b92915050565b808201808211156119715761197161192f565b6000826119c0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820281158282048414176119715761197161192f565b6000602082840312156119ee57600080fd5b815180151581146117a857600080fd5b600080600060608486031215611a1357600080fd5b505081359360208301359350604090920135919050565b600060208284031215611a3c57600080fd5b81516117a8816116ad56fea264697066735822122079d9a8dede9bdd5b8d0a73b48444cd275e63ab399781373a9adc74102388525464736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e0000000000000000000000006aca098fa93dad7a872f6dcb989f8b4a3afc3342
-----Decoded View---------------
Arg [0] : _rainbowRoad (address): 0x9412316DC6C882ffc4FA1A01413b0C701b147B9E
Arg [1] : _veArc (address): 0x6ACa098fa93DAD7A872F6dcb989F8b4A3aFC3342
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e
Arg [1] : 0000000000000000000000006aca098fa93dad7a872f6dcb989f8b4a3afc3342
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.