Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TokenPairs
Compiler Version
v0.8.27+commit.40a35a09
Optimization Enabled:
Yes with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.27; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {ITokenPairs} from "./interfaces/ITokenPairs.sol"; /// The token pairs registry maps Ethereum ERC-20 tokens to Sonic bridged tokens minted by the bridge. /// @custom:security-contact [email protected] contract TokenPairs is ITokenPairs, AccessControl { mapping(address original => address minted) public originalToMinted; mapping(address original => address minted) public originalToMintedTerminable; mapping(address minted => address original) public mintedToOriginal; bytes32 public constant REGISTER_ROLE = keccak256("REGISTER_ROLE"); bytes32 public constant TERMINATOR_ROLE = keccak256("TERMINATOR_ROLE"); event Registered(address indexed original, address indexed minted); event Terminated(address indexed original, address indexed minted); constructor(address admin) { require(admin != address(0), "Admin not set"); _grantRole(DEFAULT_ADMIN_ROLE, admin); // can grant roles _grantRole(REGISTER_ROLE, admin); // can register tokens } /// Register a new pair of Ethereum ERC-20 token (original) and Sonic minted token. function register(address original, address minted) onlyRole(REGISTER_ROLE) external { require(original != address(0), "Zero address not allowed"); require(minted != address(0), "Zero address not allowed"); require(originalToMinted[original] == address(0), "Original token already mapped"); require(mintedToOriginal[minted] == address(0), "Minted token already mapped"); originalToMinted[original] = minted; originalToMintedTerminable[original] = minted; mintedToOriginal[minted] = original; emit Registered(original, minted); } // USDC/EURC specific code address private constant USDC_ADDRESS_L1 = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; address private constant EURC_ADDRESS_L1 = 0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c; address private constant USDT_ADDRESS_L1 = 0xdAC17F958D2ee523a2206206994597C13D831ec7; /// Terminate possibility to start new USDC deposits/withdrawals. /// Doesn't affect possibility to finish already started deposits/withdrawals. /// Required for transition from bridged to native Circle-managed USDC. /// See https://github.com/circlefin/stablecoin-evm/blob/release-2024-06-21T005221/doc/bridged_USDC_standard.md function terminateUSDC() onlyRole(TERMINATOR_ROLE) external { address minted = originalToMintedTerminable[USDC_ADDRESS_L1]; require(minted != address(0), "USDC already terminated/not registered"); originalToMintedTerminable[USDC_ADDRESS_L1] = address(0); emit Terminated(USDC_ADDRESS_L1, minted); } /// Terminate possibility to start new EURC deposits/withdrawals. /// Doesn't affect possibility to finish already started deposits/withdrawals. /// Required for transition from bridged to native Circle-managed EURC. /// See https://github.com/circlefin/stablecoin-evm/blob/release-2024-06-21T005221/doc/bridged_USDC_standard.md function terminateEURC() onlyRole(TERMINATOR_ROLE) external { address minted = originalToMintedTerminable[EURC_ADDRESS_L1]; require(minted != address(0), "EURC already terminated/not registered"); originalToMintedTerminable[EURC_ADDRESS_L1] = address(0); emit Terminated(EURC_ADDRESS_L1, minted); } /// Terminate possibility to start new USDT deposits/withdrawals. /// Doesn't affect possibility to finish already started deposits/withdrawals. /// Required for transition from bridged to native Tether-managed USDT. function terminateUSDT() onlyRole(TERMINATOR_ROLE) external { address minted = originalToMintedTerminable[USDT_ADDRESS_L1]; require(minted != address(0), "USDT already terminated/not registered"); originalToMintedTerminable[USDT_ADDRESS_L1] = address(0); emit Terminated(USDT_ADDRESS_L1, minted); } function hasRole(bytes32 role, address account) public view override(AccessControl, ITokenPairs) returns (bool) { return AccessControl.hasRole(role,account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "./IAccessControl.sol"; import {Context} from "../utils/Context.sol"; import {ERC165} from "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.27; // The token pairs registry maps Ethereum ERC-20 tokens to L2 tokens minted by the bridge. interface ITokenPairs { /// Map Ethereum token to L2 token - pairs can be only added into this mapping. function originalToMinted(address) external view returns (address); /// Map Ethereum token to L2 token - pairs can be removed from here to block new transfers. function originalToMintedTerminable(address) external view returns (address); /// Map L2 token to Ethereum token - pairs can be only added into this mapping. function mintedToOriginal(address) external view returns (address); /// Check if the account has given role - allows to use TokenPairs as an AccessManager for USDC burning ops. function hasRole(bytes32 role, address account) external view returns (bool); }
{ "evmVersion": "cancun", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"original","type":"address"},{"indexed":true,"internalType":"address","name":"minted","type":"address"}],"name":"Registered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"original","type":"address"},{"indexed":true,"internalType":"address","name":"minted","type":"address"}],"name":"Terminated","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REGISTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TERMINATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minted","type":"address"}],"name":"mintedToOriginal","outputs":[{"internalType":"address","name":"original","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"original","type":"address"}],"name":"originalToMinted","outputs":[{"internalType":"address","name":"minted","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"original","type":"address"}],"name":"originalToMintedTerminable","outputs":[{"internalType":"address","name":"minted","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"original","type":"address"},{"internalType":"address","name":"minted","type":"address"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terminateEURC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"terminateUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"terminateUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f5ffd5b50604051610d5e380380610d5e83398101604081905261002e91610170565b6001600160a01b0381166100785760405162461bcd60e51b815260206004820152600d60248201526c10591b5a5b881b9bdd081cd95d609a1b604482015260640160405180910390fd5b6100825f826100b4565b506100ad7fd1f21ec03a6eb050fba156f5316dad461735df521fb446dd42c5a4728e9c70fe826100b4565b5050610196565b5f6100bf8383610145565b61013c575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556100f43390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600161013f565b505f5b92915050565b5f828152602081815260408083206001600160a01b038516845290915281205460ff165b9392505050565b5f60208284031215610180575f5ffd5b81516001600160a01b0381168114610169575f5ffd5b610bbb806101a35f395ff3fe608060405234801561000f575f5ffd5b50600436106100fb575f3560e01c806366930e5011610093578063aa67735411610063578063aa6773541461024c578063d547741f1461025f578063ef234c6f14610272578063fe2f9dd71461027a575f5ffd5b806366930e50146101e357806374f533171461020b57806391d1485414610232578063a217fddf14610245575f5ffd5b80632f2ff15d116100ce5780632f2ff15d1461017557806336568abe146101885780634b0f53e91461019b57806365eafb46146101db575f5ffd5b806301ffc9a7146100ff57806302cedecc14610127578063248a9ca3146101315780632a71175214610161575b5f5ffd5b61011261010d366004610aa1565b6102a2565b60405190151581526020015b60405180910390f35b61012f6102d8565b005b61015361013f366004610ac8565b5f9081526020819052604090206001015490565b60405190815260200161011e565b6101535f516020610b665f395f51905f5281565b61012f610183366004610afa565b61041a565b61012f610196366004610afa565b610444565b6101c36101a9366004610b24565b60026020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161011e565b61012f61047c565b6101c36101f1366004610b24565b60036020525f90815260409020546001600160a01b031681565b6101537fd1f21ec03a6eb050fba156f5316dad461735df521fb446dd42c5a4728e9c70fe81565b610112610240366004610afa565b6105b9565b6101535f81565b61012f61025a366004610b3d565b6105e4565b61012f61026d366004610afa565b6107fe565b61012f610822565b6101c3610288366004610b24565b60016020525f90815260409020546001600160a01b031681565b5f6001600160e01b03198216637965db0b60e01b14806102d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f516020610b665f395f51905f526102ef8161095f565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485f5260026020527fb7598821b71eb990d952f174dec3507a6d48dc93be8e23cae785c98ca310bfbb546001600160a01b0316806103975760405162461bcd60e51b815260206004820152602660248201527f5553444320616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b60648201526084015b60405180910390fd5b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485f81815260026020527fb7598821b71eb990d952f174dec3507a6d48dc93be8e23cae785c98ca310bfbb80546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b5f828152602081905260409020600101546104348161095f565b61043e838361096c565b50505050565b6001600160a01b038116331461046d5760405163334bd91960e11b815260040160405180910390fd5b61047782826109fb565b505050565b5f516020610b665f395f51905f526104938161095f565b731abaea1f7c830bd89acc67ec4af516284b1bc33c5f5260026020527f0c04ae945dd02c1e5e8cefbc5c3a83f066b3824da11cc7f11278b964019ab9ae546001600160a01b0316806105365760405162461bcd60e51b815260206004820152602660248201527f4555524320616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b606482015260840161038e565b731abaea1f7c830bd89acc67ec4af516284b1bc33c5f81815260026020527f0c04ae945dd02c1e5e8cefbc5c3a83f066b3824da11cc7f11278b964019ab9ae80546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b5f828152602081815260408083206001600160a01b038516845290915281205460ff165b9392505050565b7fd1f21ec03a6eb050fba156f5316dad461735df521fb446dd42c5a4728e9c70fe61060e8161095f565b6001600160a01b03831661065f5760405162461bcd60e51b815260206004820152601860248201527716995c9bc81859191c995cdcc81b9bdd08185b1b1bddd95960421b604482015260640161038e565b6001600160a01b0382166106b05760405162461bcd60e51b815260206004820152601860248201527716995c9bc81859191c995cdcc81b9bdd08185b1b1bddd95960421b604482015260640161038e565b6001600160a01b038381165f9081526001602052604090205416156107175760405162461bcd60e51b815260206004820152601d60248201527f4f726967696e616c20746f6b656e20616c7265616479206d6170706564000000604482015260640161038e565b6001600160a01b038281165f90815260036020526040902054161561077e5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74656420746f6b656e20616c7265616479206d61707065640000000000604482015260640161038e565b6001600160a01b038084165f81815260016020908152604080832080549588166001600160a01b0319968716811790915560028352818420805487168217905580845260039092528083208054909516841790945592517f0a31ee9d46a828884b81003c8498156ea6aa15b9b54bdd0ef0b533d9eba57e559190a3505050565b5f828152602081905260409020600101546108188161095f565b61043e83836109fb565b5f516020610b665f395f51905f526108398161095f565b73dac17f958d2ee523a2206206994597c13d831ec75f5260026020527ff4f699a1ef35e64890828cc562d137cceeab28af8455567ef14b6ec385c8e441546001600160a01b0316806108dc5760405162461bcd60e51b815260206004820152602660248201527f5553445420616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b606482015260840161038e565b73dac17f958d2ee523a2206206994597c13d831ec75f81815260026020527ff4f699a1ef35e64890828cc562d137cceeab28af8455567ef14b6ec385c8e44180546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b6109698133610a64565b50565b5f61097783836105b9565b6109f4575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556109ac3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016102d2565b505f6102d2565b5f610a0683836105b9565b156109f4575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016102d2565b610a6e82826105b9565b610a9d5760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161038e565b5050565b5f60208284031215610ab1575f5ffd5b81356001600160e01b0319811681146105dd575f5ffd5b5f60208284031215610ad8575f5ffd5b5035919050565b80356001600160a01b0381168114610af5575f5ffd5b919050565b5f5f60408385031215610b0b575f5ffd5b82359150610b1b60208401610adf565b90509250929050565b5f60208284031215610b34575f5ffd5b6105dd82610adf565b5f5f60408385031215610b4e575f5ffd5b610b5783610adf565b9150610b1b60208401610adf56fe26aab3fbd9c7d505a96c193ccd3127894549d6ee75e38e08a6cef48fbab511e8a26469706673582212201319a89bdaf41f6b77ac4cdca62d5ef0442cd67f9eac5b3fd869b6e19fb25f2f64736f6c634300081b003300000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1
Deployed Bytecode
0x608060405234801561000f575f5ffd5b50600436106100fb575f3560e01c806366930e5011610093578063aa67735411610063578063aa6773541461024c578063d547741f1461025f578063ef234c6f14610272578063fe2f9dd71461027a575f5ffd5b806366930e50146101e357806374f533171461020b57806391d1485414610232578063a217fddf14610245575f5ffd5b80632f2ff15d116100ce5780632f2ff15d1461017557806336568abe146101885780634b0f53e91461019b57806365eafb46146101db575f5ffd5b806301ffc9a7146100ff57806302cedecc14610127578063248a9ca3146101315780632a71175214610161575b5f5ffd5b61011261010d366004610aa1565b6102a2565b60405190151581526020015b60405180910390f35b61012f6102d8565b005b61015361013f366004610ac8565b5f9081526020819052604090206001015490565b60405190815260200161011e565b6101535f516020610b665f395f51905f5281565b61012f610183366004610afa565b61041a565b61012f610196366004610afa565b610444565b6101c36101a9366004610b24565b60026020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161011e565b61012f61047c565b6101c36101f1366004610b24565b60036020525f90815260409020546001600160a01b031681565b6101537fd1f21ec03a6eb050fba156f5316dad461735df521fb446dd42c5a4728e9c70fe81565b610112610240366004610afa565b6105b9565b6101535f81565b61012f61025a366004610b3d565b6105e4565b61012f61026d366004610afa565b6107fe565b61012f610822565b6101c3610288366004610b24565b60016020525f90815260409020546001600160a01b031681565b5f6001600160e01b03198216637965db0b60e01b14806102d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f516020610b665f395f51905f526102ef8161095f565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485f5260026020527fb7598821b71eb990d952f174dec3507a6d48dc93be8e23cae785c98ca310bfbb546001600160a01b0316806103975760405162461bcd60e51b815260206004820152602660248201527f5553444320616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b60648201526084015b60405180910390fd5b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb485f81815260026020527fb7598821b71eb990d952f174dec3507a6d48dc93be8e23cae785c98ca310bfbb80546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b5f828152602081905260409020600101546104348161095f565b61043e838361096c565b50505050565b6001600160a01b038116331461046d5760405163334bd91960e11b815260040160405180910390fd5b61047782826109fb565b505050565b5f516020610b665f395f51905f526104938161095f565b731abaea1f7c830bd89acc67ec4af516284b1bc33c5f5260026020527f0c04ae945dd02c1e5e8cefbc5c3a83f066b3824da11cc7f11278b964019ab9ae546001600160a01b0316806105365760405162461bcd60e51b815260206004820152602660248201527f4555524320616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b606482015260840161038e565b731abaea1f7c830bd89acc67ec4af516284b1bc33c5f81815260026020527f0c04ae945dd02c1e5e8cefbc5c3a83f066b3824da11cc7f11278b964019ab9ae80546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b5f828152602081815260408083206001600160a01b038516845290915281205460ff165b9392505050565b7fd1f21ec03a6eb050fba156f5316dad461735df521fb446dd42c5a4728e9c70fe61060e8161095f565b6001600160a01b03831661065f5760405162461bcd60e51b815260206004820152601860248201527716995c9bc81859191c995cdcc81b9bdd08185b1b1bddd95960421b604482015260640161038e565b6001600160a01b0382166106b05760405162461bcd60e51b815260206004820152601860248201527716995c9bc81859191c995cdcc81b9bdd08185b1b1bddd95960421b604482015260640161038e565b6001600160a01b038381165f9081526001602052604090205416156107175760405162461bcd60e51b815260206004820152601d60248201527f4f726967696e616c20746f6b656e20616c7265616479206d6170706564000000604482015260640161038e565b6001600160a01b038281165f90815260036020526040902054161561077e5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74656420746f6b656e20616c7265616479206d61707065640000000000604482015260640161038e565b6001600160a01b038084165f81815260016020908152604080832080549588166001600160a01b0319968716811790915560028352818420805487168217905580845260039092528083208054909516841790945592517f0a31ee9d46a828884b81003c8498156ea6aa15b9b54bdd0ef0b533d9eba57e559190a3505050565b5f828152602081905260409020600101546108188161095f565b61043e83836109fb565b5f516020610b665f395f51905f526108398161095f565b73dac17f958d2ee523a2206206994597c13d831ec75f5260026020527ff4f699a1ef35e64890828cc562d137cceeab28af8455567ef14b6ec385c8e441546001600160a01b0316806108dc5760405162461bcd60e51b815260206004820152602660248201527f5553445420616c7265616479207465726d696e617465642f6e6f7420726567696044820152651cdd195c995960d21b606482015260840161038e565b73dac17f958d2ee523a2206206994597c13d831ec75f81815260026020527ff4f699a1ef35e64890828cc562d137cceeab28af8455567ef14b6ec385c8e44180546001600160a01b03191690556040516001600160a01b03841692917fcf0083581402c6283a9df5c77598e6c57b468ebc5d334c979893c26f5f0eeb5991a35050565b6109698133610a64565b50565b5f61097783836105b9565b6109f4575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556109ac3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016102d2565b505f6102d2565b5f610a0683836105b9565b156109f4575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016102d2565b610a6e82826105b9565b610a9d5760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161038e565b5050565b5f60208284031215610ab1575f5ffd5b81356001600160e01b0319811681146105dd575f5ffd5b5f60208284031215610ad8575f5ffd5b5035919050565b80356001600160a01b0381168114610af5575f5ffd5b919050565b5f5f60408385031215610b0b575f5ffd5b82359150610b1b60208401610adf565b90509250929050565b5f60208284031215610b34575f5ffd5b6105dd82610adf565b5f5f60408385031215610b4e575f5ffd5b610b5783610adf565b9150610b1b60208401610adf56fe26aab3fbd9c7d505a96c193ccd3127894549d6ee75e38e08a6cef48fbab511e8a26469706673582212201319a89bdaf41f6b77ac4cdca62d5ef0442cd67f9eac5b3fd869b6e19fb25f2f64736f6c634300081b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1
-----Decoded View---------------
Arg [0] : admin (address): 0x80957D62C7Cc252E5dd2f8691a9afB3087f88Fa1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000080957d62c7cc252e5dd2f8691a9afb3087f88fa1
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
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.