Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 25 from a total of 371 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute | 23542030 | 4 days ago | IN | 0 ETH | 0.00007203 | ||||
Execute | 23536068 | 5 days ago | IN | 0 ETH | 0.00002356 | ||||
Execute | 23516705 | 8 days ago | IN | 0 ETH | 0.00001692 | ||||
Execute | 23499703 | 10 days ago | IN | 0 ETH | 0.00004727 | ||||
Execute | 23488959 | 12 days ago | IN | 0 ETH | 0.00038163 | ||||
Execute | 23468411 | 15 days ago | IN | 0 ETH | 0.00012216 | ||||
Execute | 23465331 | 15 days ago | IN | 0 ETH | 0.00007839 | ||||
Execute | 23462748 | 15 days ago | IN | 0 ETH | 0.00004918 | ||||
Execute | 23454104 | 17 days ago | IN | 0 ETH | 0.0000361 | ||||
Execute | 23453807 | 17 days ago | IN | 0 ETH | 0.00007685 | ||||
Execute | 23438324 | 19 days ago | IN | 0 ETH | 0.00005 | ||||
Execute | 23438225 | 19 days ago | IN | 0 ETH | 0.00013982 | ||||
Execute | 23438183 | 19 days ago | IN | 0 ETH | 0.00007627 | ||||
Execute | 23438181 | 19 days ago | IN | 0 ETH | 0.00006352 | ||||
Execute | 23438178 | 19 days ago | IN | 0 ETH | 0.0000821 | ||||
Execute | 23438176 | 19 days ago | IN | 0 ETH | 0.0000779 | ||||
Execute | 23438173 | 19 days ago | IN | 0 ETH | 0.00006282 | ||||
Execute | 23435343 | 19 days ago | IN | 0 ETH | 0.00003798 | ||||
Execute | 23429375 | 20 days ago | IN | 0 ETH | 0.00004607 | ||||
Execute | 23423404 | 21 days ago | IN | 0 ETH | 0.00001802 | ||||
Execute | 23411486 | 22 days ago | IN | 0 ETH | 0.00004136 | ||||
Execute | 23377782 | 27 days ago | IN | 0 ETH | 0.00006443 | ||||
Execute | 23377683 | 27 days ago | IN | 0 ETH | 0.00050074 | ||||
Execute | 23365561 | 29 days ago | IN | 0 ETH | 0.00001675 | ||||
Execute | 23336751 | 33 days ago | IN | 0 ETH | 0.00002628 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
0x00000185 | 23536068 | 5 days ago | 1.61895857 ETH | ||||
Transfer | 23536068 | 5 days ago | 0.01635311 ETH | ||||
Transfer | 23536068 | 5 days ago | 1.64235684 ETH | ||||
0x000001a1 | 23516705 | 8 days ago | 0.92846295 ETH | ||||
Transfer | 23516705 | 8 days ago | 0.00937841 ETH | ||||
Transfer | 23516705 | 8 days ago | 0.94213903 ETH | ||||
0x000001a1 | 23499703 | 10 days ago | 0.50724895 ETH | ||||
Transfer | 23499703 | 10 days ago | 0.00512372 ETH | ||||
Transfer | 23499703 | 10 days ago | 0.5093943 ETH | ||||
0x000001a1 | 23462748 | 15 days ago | 0.7991595 ETH | ||||
Transfer | 23462748 | 15 days ago | 0.00807231 ETH | ||||
Transfer | 23462748 | 15 days ago | 0.81010281 ETH | ||||
0x000001a1 | 23453807 | 17 days ago | 0.51777362 ETH | ||||
Transfer | 23453807 | 17 days ago | 0.00523003 ETH | ||||
Transfer | 23453807 | 17 days ago | 0.50415597 ETH | ||||
Transfer | 23429375 | 20 days ago | 0.00000034 ETH | ||||
0x000001bd | 23429375 | 20 days ago | 2.36500226 ETH | ||||
Transfer | 23429375 | 20 days ago | 0.02388891 ETH | ||||
Transfer | 23429375 | 20 days ago | 2.4045078 ETH | ||||
0x000001a1 | 23423404 | 21 days ago | 0.8344156 ETH | ||||
Transfer | 23423404 | 21 days ago | 0.00842844 ETH | ||||
Transfer | 23423404 | 21 days ago | 0.84364617 ETH | ||||
0x00000199 | 23411486 | 22 days ago | 0.00000616 ETH | ||||
0x000001a1 | 23331260 | 34 days ago | 0.75640312 ETH | ||||
Transfer | 23331260 | 34 days ago | 0.00764043 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TaxMan
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: BUSL-1.1 pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../libraries/DataTypes.sol"; import "../libraries/Roles.sol"; // Permissioned slimed down version of https://github.com/mds1/multicall/blob/main/src/Multicall3.sol struct Call { address target; uint256 value; bytes callData; } struct Result { bool success; bytes returnData; } contract TaxMan is AccessControl, Pausable { error CallFailed(uint256 index, bytes returnData); error NotEnoughBalance(IERC20 token, uint256 expected, uint256 actual); constructor(Timelock timelock) { // Grant the admin role to the timelock by default _grantRole(DEFAULT_ADMIN_ROLE, Timelock.unwrap(timelock)); } function execute(Call[] calldata calls) public payable onlyRole(BOT_ROLE) whenNotPaused returns (Result[] memory returnData) { uint256 length = calls.length; returnData = new Result[](length); Call calldata call; for (uint256 i = 0; i < length; i++) { Result memory result = returnData[i]; call = calls[i]; (result.success, result.returnData) = call.target.call{ value: call.value }(call.callData); require(result.success, CallFailed(i, result.returnData)); } } function assertBalanceGreaterOrEqualThan(IERC20 token, address account, uint256 value) public view { uint256 balance = token.balanceOf(account); require(balance >= value, NotEnoughBalance(token, value, balance)); } function pause() external onlyRole(EMERGENCY_BREAK_ROLE) { _pause(); } function unpause() external onlyRole(EMERGENCY_BREAK_ROLE) { _unpause(); } receive() external payable { } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../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 => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ 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 override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @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 override 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 override 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 override 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 `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @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 Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// 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) (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: BUSL-1.1 pragma solidity ^0.8.20; import "./extensions/PositionIdExt.sol"; uint256 constant WAD = 1e18; uint256 constant RAY = 1e27; uint256 constant PERCENTAGE_UNIT = 1e4; uint256 constant ONE_HUNDRED_PERCENT = 1e4; enum Currency { None, Base, Quote } type Symbol is bytes16; type Payload is bytes5; type PositionId is bytes32; using { decode, getSymbol, getNumber, getMoneyMarket, getExpiry, isPerp, isExpired, withNumber, getFlags, getPayload, getPayloadNoFlags, asUint } for PositionId global; type OrderId is bytes32; type MoneyMarketId is uint8; function mmEquals(MoneyMarketId a, MoneyMarketId b) pure returns (bool) { return MoneyMarketId.unwrap(a) == MoneyMarketId.unwrap(b); } using { mmEquals as == } for MoneyMarketId global; type Timelock is address; struct EIP2098Permit { uint256 amount; uint256 deadline; bytes32 r; bytes32 vs; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.20; bytes32 constant EMERGENCY_BREAK_ROLE = keccak256("EMERGENCY_BREAK"); bytes32 constant OPERATOR_ROLE = keccak256("OPERATOR"); bytes32 constant CONTANGO_ROLE = keccak256("CONTANGO"); bytes32 constant BOT_ROLE = keccak256("BOT"); bytes32 constant MINTER_ROLE = keccak256("MINTER"); bytes32 constant MODIFIER_ROLE = keccak256("MODIFIER");
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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. * * _Available since v3.1._ */ 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 `account`. */ function renounceRole(bytes32 role, address account) external; }
// 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: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./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); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
//SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.20; import "../DataTypes.sol"; error InvalidUInt48(uint256 n); error InvalidUInt32(uint256 n); error InvalidExpiry(); error InvalidPositionId(); // { 5B: Payload } // 16B - 1B - 4B - 1B - 4B - 6B // symbol - money market - expiry - flags - empty - number function decode(PositionId positionId) pure returns (Symbol symbol, MoneyMarketId mm, uint32 expiry, uint256 number) { bytes32 raw = PositionId.unwrap(positionId); symbol = Symbol.wrap(bytes16(raw)); mm = MoneyMarketId.wrap(uint8(uint256(raw >> 120))); expiry = (uint32(uint256(raw >> 88))); number = uint48(uint256(raw)); } function getSymbol(PositionId positionId) pure returns (Symbol) { return Symbol.wrap(bytes16(PositionId.unwrap(positionId))); } function getNumber(PositionId positionId) pure returns (uint256) { return uint48(uint256(PositionId.unwrap(positionId))); } function getMoneyMarket(PositionId positionId) pure returns (MoneyMarketId) { return MoneyMarketId.wrap(uint8(uint256(PositionId.unwrap(positionId) >> 120))); } function getExpiry(PositionId positionId) pure returns (uint32) { return (uint32(uint256(PositionId.unwrap(positionId) >> 88))); } function isPerp(PositionId positionId) pure returns (bool) { return getExpiry(positionId) == type(uint32).max; } function isExpired(PositionId positionId) view returns (bool) { return block.timestamp >= getExpiry(positionId); } function withNumber(PositionId positionId, uint256 number) pure returns (PositionId) { if (uint48(number) != number) revert InvalidUInt48(number); if (getNumber(positionId) != 0) revert InvalidPositionId(); return PositionId.wrap(bytes32(uint256(PositionId.unwrap(positionId)) + number)); } function getFlags(PositionId positionId) pure returns (bytes1) { return bytes1(PositionId.unwrap(positionId) << 168); } function getPayload(PositionId positionId) pure returns (Payload) { return Payload.wrap(bytes5(PositionId.unwrap(positionId) << 168)); } function getPayloadNoFlags(PositionId positionId) pure returns (bytes4) { return bytes4(PositionId.unwrap(positionId) << 176); } function asUint(PositionId positionId) pure returns (uint256) { return uint256(PositionId.unwrap(positionId)); } function fromUint(uint256 n) pure returns (PositionId) { return PositionId.wrap(bytes32(n)); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @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); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "forge-std/=lib/forge-std/src/", "forge-gas-snapshot/=lib/forge-gas-snapshot/src/", "erc7399/=lib/erc7399/src/", "erc7399-wrappers/=lib/erc7399-wrappers/src/", "@prb/math/=lib/prb-math/", "@contango/erc721Permit2/=lib/erc721-permit2/src/", "solady/=lib/solady/src/", "@prb/test/=lib/prb-math/lib/prb-test/src/", "ds-test/=lib/prb-math/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "erc721-permit2/=lib/erc721-permit2/", "layerzero-v2/=lib/layerzero-v2/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/", "prb-math/=lib/prb-math/src/", "prb-test/=lib/prb-math/lib/prb-test/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "none", "appendCBOR": false }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "cancun", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"Timelock","name":"timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"name":"CallFailed","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"expected","type":"uint256"},{"internalType":"uint256","name":"actual","type":"uint256"}],"name":"NotEnoughBalance","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"assertBalanceGreaterOrEqualThan","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Call[]","name":"calls","type":"tuple[]"}],"name":"execute","outputs":[{"components":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"internalType":"struct Result[]","name":"returnData","type":"tuple[]"}],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561000f575f5ffd5b50604051610ef1380380610ef183398101604081905261002e916100e5565b6001805460ff191690556100425f82610048565b50610112565b5f828152602081815260408083206001600160a01b038516845290915290205460ff166100e1575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100a03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b5f602082840312156100f5575f5ffd5b81516001600160a01b038116811461010b575f5ffd5b9392505050565b610dd28061011f5f395ff3fe6080604052600436106100a8575f3560e01c80635c975abb116100625780635c975abb146101975780638456cb59146101ae57806391d14854146101c2578063a217fddf146101e1578063d547741f146101f4578063f58d0b4d14610213575f5ffd5b806301ffc9a7146100b3578063248a9ca3146100e75780632f2ff15d1461012357806336568abe146101445780633f4ba83a146101635780633f707e6b14610177575f5ffd5b366100af57005b5f5ffd5b3480156100be575f5ffd5b506100d26100cd366004610a2e565b610232565b60405190151581526020015b60405180910390f35b3480156100f2575f5ffd5b50610115610101366004610a55565b5f9081526020819052604090206001015490565b6040519081526020016100de565b34801561012e575f5ffd5b5061014261013d366004610a80565b610268565b005b34801561014f575f5ffd5b5061014261015e366004610a80565b610291565b34801561016e575f5ffd5b50610142610314565b61018a610185366004610aae565b610349565b6040516100de9190610b4d565b3480156101a2575f5ffd5b5060015460ff166100d2565b3480156101b9575f5ffd5b506101426104e7565b3480156101cd575f5ffd5b506100d26101dc366004610a80565b610519565b3480156101ec575f5ffd5b506101155f81565b3480156101ff575f5ffd5b5061014261020e366004610a80565b610541565b34801561021e575f5ffd5b5061014261022d366004610bc9565b610565565b5f6001600160e01b03198216637965db0b60e01b148061026257506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f8281526020819052604090206001015461028281610617565b61028c8383610621565b505050565b6001600160a01b03811633146103065760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61031082826106a4565b5050565b7ffe9179cad658aeacaa2a24dfa89614efe9f95669a3a7fac3badb2b51fc9bf70a61033e81610617565b610346610708565b50565b60607f902cbe3a02736af9827fb6a90bada39e955c0941e08f0c63b3a662a7b17a4e2b61037581610617565b61037d61075a565b828067ffffffffffffffff81111561039757610397610c07565b6040519080825280602002602001820160405280156103dc57816020015b604080518082019091525f8152606060208201528152602001906001900390816103b55790505b509250365f5b828110156104dd575f8582815181106103fd576103fd610c1b565b6020026020010151905087878381811061041957610419610c1b565b905060200281019061042b9190610c2f565b925061043a6020840184610c4d565b6001600160a01b031660208401356104556040860186610c68565b604051610463929190610cb2565b5f6040518083038185875af1925050503d805f811461049d576040519150601f19603f3d011682016040523d82523d5f602084013e6104a2565b606091505b50602083018190529015158083528391906104d257604051635c0dee5d60e01b81526004016102fd929190610cc1565b5050506001016103e2565b5050505092915050565b7ffe9179cad658aeacaa2a24dfa89614efe9f95669a3a7fac3badb2b51fc9bf70a61051181610617565b6103466107a2565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8281526020819052604090206001015461055b81610617565b61028c83836106a4565b6040516370a0823160e01b81526001600160a01b0383811660048301525f91908516906370a0823190602401602060405180830381865afa1580156105ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d09190610ce1565b90508382828181101561060e5760405162eb9b8760e61b81526001600160a01b039093166004840152602483019190915260448201526064016102fd565b50505050505050565b61034681336107dd565b61062b8282610519565b610310575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106603390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6106ae8282610519565b15610310575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610710610836565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60015460ff16156107a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102fd565b565b6107aa61075a565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2583361073d565b6107e78282610519565b610310576107f48161087f565b6107ff836020610891565b604051602001610810929190610d0f565b60408051601f198184030181529082905262461bcd60e51b82526102fd91600401610d6d565b60015460ff166107a05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102fd565b60606102626001600160a01b03831660145b60605f61089f836002610d93565b6108aa906002610daa565b67ffffffffffffffff8111156108c2576108c2610c07565b6040519080825280601f01601f1916602001820160405280156108ec576020820181803683370190505b509050600360fc1b815f8151811061090657610906610c1b565b60200101906001600160f81b03191690815f1a905350600f60fb1b8160018151811061093457610934610c1b565b60200101906001600160f81b03191690815f1a9053505f610956846002610d93565b610961906001610daa565b90505b60018111156109d8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061099557610995610c1b565b1a60f81b8282815181106109ab576109ab610c1b565b60200101906001600160f81b03191690815f1a90535060049490941c936109d181610dbd565b9050610964565b508315610a275760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102fd565b9392505050565b5f60208284031215610a3e575f5ffd5b81356001600160e01b031981168114610a27575f5ffd5b5f60208284031215610a65575f5ffd5b5035919050565b6001600160a01b0381168114610346575f5ffd5b5f5f60408385031215610a91575f5ffd5b823591506020830135610aa381610a6c565b809150509250929050565b5f5f60208385031215610abf575f5ffd5b823567ffffffffffffffff811115610ad5575f5ffd5b8301601f81018513610ae5575f5ffd5b803567ffffffffffffffff811115610afb575f5ffd5b8560208260051b8401011115610b0f575f5ffd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015610bbd57603f1987860301845281518051151586526020810151905060406020870152610ba76040870182610b1f565b9550506020938401939190910190600101610b73565b50929695505050505050565b5f5f5f60608486031215610bdb575f5ffd5b8335610be681610a6c565b92506020840135610bf681610a6c565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112610c43575f5ffd5b9190910192915050565b5f60208284031215610c5d575f5ffd5b8135610a2781610a6c565b5f5f8335601e19843603018112610c7d575f5ffd5b83018035915067ffffffffffffffff821115610c97575f5ffd5b602001915036819003821315610cab575f5ffd5b9250929050565b818382375f9101908152919050565b828152604060208201525f610cd96040830184610b1f565b949350505050565b5f60208284031215610cf1575f5ffd5b5051919050565b5f81518060208401855e5f93019283525090919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f610d406017830185610cf8565b7001034b99036b4b9b9b4b733903937b6329607d1b8152610d646011820185610cf8565b95945050505050565b602081525f610a276020830184610b1f565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761026257610262610d7f565b8082018082111561026257610262610d7f565b5f81610dcb57610dcb610d7f565b505f19019056000000000000000000000000c0939a4ed0129bc5162f6f693935b3f72a46a90d
Deployed Bytecode
0x6080604052600436106100a8575f3560e01c80635c975abb116100625780635c975abb146101975780638456cb59146101ae57806391d14854146101c2578063a217fddf146101e1578063d547741f146101f4578063f58d0b4d14610213575f5ffd5b806301ffc9a7146100b3578063248a9ca3146100e75780632f2ff15d1461012357806336568abe146101445780633f4ba83a146101635780633f707e6b14610177575f5ffd5b366100af57005b5f5ffd5b3480156100be575f5ffd5b506100d26100cd366004610a2e565b610232565b60405190151581526020015b60405180910390f35b3480156100f2575f5ffd5b50610115610101366004610a55565b5f9081526020819052604090206001015490565b6040519081526020016100de565b34801561012e575f5ffd5b5061014261013d366004610a80565b610268565b005b34801561014f575f5ffd5b5061014261015e366004610a80565b610291565b34801561016e575f5ffd5b50610142610314565b61018a610185366004610aae565b610349565b6040516100de9190610b4d565b3480156101a2575f5ffd5b5060015460ff166100d2565b3480156101b9575f5ffd5b506101426104e7565b3480156101cd575f5ffd5b506100d26101dc366004610a80565b610519565b3480156101ec575f5ffd5b506101155f81565b3480156101ff575f5ffd5b5061014261020e366004610a80565b610541565b34801561021e575f5ffd5b5061014261022d366004610bc9565b610565565b5f6001600160e01b03198216637965db0b60e01b148061026257506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f8281526020819052604090206001015461028281610617565b61028c8383610621565b505050565b6001600160a01b03811633146103065760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61031082826106a4565b5050565b7ffe9179cad658aeacaa2a24dfa89614efe9f95669a3a7fac3badb2b51fc9bf70a61033e81610617565b610346610708565b50565b60607f902cbe3a02736af9827fb6a90bada39e955c0941e08f0c63b3a662a7b17a4e2b61037581610617565b61037d61075a565b828067ffffffffffffffff81111561039757610397610c07565b6040519080825280602002602001820160405280156103dc57816020015b604080518082019091525f8152606060208201528152602001906001900390816103b55790505b509250365f5b828110156104dd575f8582815181106103fd576103fd610c1b565b6020026020010151905087878381811061041957610419610c1b565b905060200281019061042b9190610c2f565b925061043a6020840184610c4d565b6001600160a01b031660208401356104556040860186610c68565b604051610463929190610cb2565b5f6040518083038185875af1925050503d805f811461049d576040519150601f19603f3d011682016040523d82523d5f602084013e6104a2565b606091505b50602083018190529015158083528391906104d257604051635c0dee5d60e01b81526004016102fd929190610cc1565b5050506001016103e2565b5050505092915050565b7ffe9179cad658aeacaa2a24dfa89614efe9f95669a3a7fac3badb2b51fc9bf70a61051181610617565b6103466107a2565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8281526020819052604090206001015461055b81610617565b61028c83836106a4565b6040516370a0823160e01b81526001600160a01b0383811660048301525f91908516906370a0823190602401602060405180830381865afa1580156105ac573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d09190610ce1565b90508382828181101561060e5760405162eb9b8760e61b81526001600160a01b039093166004840152602483019190915260448201526064016102fd565b50505050505050565b61034681336107dd565b61062b8282610519565b610310575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106603390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6106ae8282610519565b15610310575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610710610836565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60015460ff16156107a05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102fd565b565b6107aa61075a565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2583361073d565b6107e78282610519565b610310576107f48161087f565b6107ff836020610891565b604051602001610810929190610d0f565b60408051601f198184030181529082905262461bcd60e51b82526102fd91600401610d6d565b60015460ff166107a05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102fd565b60606102626001600160a01b03831660145b60605f61089f836002610d93565b6108aa906002610daa565b67ffffffffffffffff8111156108c2576108c2610c07565b6040519080825280601f01601f1916602001820160405280156108ec576020820181803683370190505b509050600360fc1b815f8151811061090657610906610c1b565b60200101906001600160f81b03191690815f1a905350600f60fb1b8160018151811061093457610934610c1b565b60200101906001600160f81b03191690815f1a9053505f610956846002610d93565b610961906001610daa565b90505b60018111156109d8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061099557610995610c1b565b1a60f81b8282815181106109ab576109ab610c1b565b60200101906001600160f81b03191690815f1a90535060049490941c936109d181610dbd565b9050610964565b508315610a275760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016102fd565b9392505050565b5f60208284031215610a3e575f5ffd5b81356001600160e01b031981168114610a27575f5ffd5b5f60208284031215610a65575f5ffd5b5035919050565b6001600160a01b0381168114610346575f5ffd5b5f5f60408385031215610a91575f5ffd5b823591506020830135610aa381610a6c565b809150509250929050565b5f5f60208385031215610abf575f5ffd5b823567ffffffffffffffff811115610ad5575f5ffd5b8301601f81018513610ae5575f5ffd5b803567ffffffffffffffff811115610afb575f5ffd5b8560208260051b8401011115610b0f575f5ffd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015610bbd57603f1987860301845281518051151586526020810151905060406020870152610ba76040870182610b1f565b9550506020938401939190910190600101610b73565b50929695505050505050565b5f5f5f60608486031215610bdb575f5ffd5b8335610be681610a6c565b92506020840135610bf681610a6c565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112610c43575f5ffd5b9190910192915050565b5f60208284031215610c5d575f5ffd5b8135610a2781610a6c565b5f5f8335601e19843603018112610c7d575f5ffd5b83018035915067ffffffffffffffff821115610c97575f5ffd5b602001915036819003821315610cab575f5ffd5b9250929050565b818382375f9101908152919050565b828152604060208201525f610cd96040830184610b1f565b949350505050565b5f60208284031215610cf1575f5ffd5b5051919050565b5f81518060208401855e5f93019283525090919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f610d406017830185610cf8565b7001034b99036b4b9b9b4b733903937b6329607d1b8152610d646011820185610cf8565b95945050505050565b602081525f610a276020830184610b1f565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761026257610262610d7f565b8082018082111561026257610262610d7f565b5f81610dcb57610dcb610d7f565b505f19019056
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c0939a4ed0129bc5162f6f693935b3f72a46a90d
-----Decoded View---------------
Arg [0] : timelock (address): 0xc0939a4Ed0129bc5162F6f693935B3F72a46a90D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0939a4ed0129bc5162f6f693935b3f72a46a90d
Loading...
Loading
Loading...
Loading

Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 6.33% | $1 | 1,984.7646 | $1,986.75 | |
ETH | 5.87% | $1 | 1,840.8077 | $1,842.65 | |
ETH | 2.92% | $1.1 | 832.2907 | $915.52 | |
ETH | 2.78% | $111,404 | 0.00783759 | $873.14 | |
ETH | 2.77% | $111,440 | 0.00779005 | $868.12 | |
ETH | 2.76% | $0.999531 | 867.3353 | $866.93 | |
ETH | 2.74% | $111,678 | 0.00768603 | $858.36 | |
ETH | 2.65% | $4,319.08 | 0.1927 | $832.31 | |
ETH | 2.63% | $4,531.38 | 0.1824 | $826.45 | |
ETH | 2.58% | $1.13 | 717.4548 | $810.72 | |
ETH | 2.58% | $1.11 | 729.9978 | $810.3 | |
ETH | 2.33% | $110,776 | 0.00660609 | $731.8 | |
ETH | 2.06% | $1.17 | 552.0813 | $645.94 | |
ETH | 1.79% | $4,206.24 | 0.1333 | $560.52 | |
ETH | 1.66% | $111,016 | 0.00469533 | $521.26 | |
ETH | 1.39% | $4,277.37 | 0.1018 | $435.43 | |
ETH | 1.38% | $4,823.28 | 0.09 | $433.94 | |
ETH | 1.09% | $3,949.98 | 0.0865 | $341.8 | |
ETH | 1.00% | $1.2 | 261.0683 | $313.28 | |
ETH | 0.90% | $0.999776 | 283.2343 | $283.17 | |
ETH | 0.75% | $1 | 235.3759 | $235.38 | |
ETH | 0.69% | $0.9273 | 233.4972 | $216.52 | |
ETH | 0.66% | $1.07 | 193.1533 | $206.87 | |
ETH | 0.63% | $0.999901 | 196.2276 | $196.21 | |
ETH | 0.60% | $1.25 | 151.4694 | $189.34 | |
ETH | 0.58% | $0.999722 | 181.1901 | $181.14 | |
ETH | 0.37% | $0.999715 | 117.6359 | $117.6 | |
ETH | 0.23% | $4,205.08 | 0.017 | $71.33 | |
ETH | 0.21% | $3,949.98 | 0.0165 | $65.25 | |
ETH | 0.16% | $4,788.34 | 0.0103 | $49.17 | |
ETH | 0.13% | $4,083.63 | 0.00980353 | $40.03 | |
ETH | 0.11% | $1.07 | 33.0591 | $35.24 | |
ETH | 0.04% | $0.999796 | 12.7554 | $12.75 | |
ETH | 0.03% | $4,128.21 | 0.00212 | $8.75 | |
ETH | 0.02% | $0.993595 | 7.1407 | $7.09 | |
ETH | <0.01% | $1,447.64 | 0.00145392 | $2.1 | |
ETH | <0.01% | $18.53 | 0.096 | $1.78 | |
ETH | <0.01% | $1 | 0.1055 | $0.1056 | |
ARB | 18.23% | $0.999901 | 5,719.1879 | $5,718.62 | |
ARB | 17.47% | $0.002741 | 2,000,000 | $5,481.05 | |
ARB | 0.74% | $3,971.56 | 0.0587 | $233.23 | |
ARB | 0.42% | $3,947.07 | 0.0332 | $131.21 | |
ARB | 0.34% | $0.999901 | 105.2145 | $105.2 | |
ARB | 0.09% | $244.49 | 0.1209 | $29.57 | |
ARB | 0.06% | $3.51 | 5.0904 | $17.87 | |
ARB | 0.05% | $4,532.72 | 0.00326205 | $14.79 | |
ARB | 0.04% | $18.53 | 0.7223 | $13.38 | |
ARB | 0.04% | $110,845 | 0.00011935 | $13.23 | |
ARB | 0.04% | $0.330544 | 39.1941 | $12.96 | |
ARB | 0.03% | $1 | 8.551 | $8.56 | |
ARB | 0.02% | $3,955.53 | 0.00155601 | $6.15 | |
ARB | 0.02% | $6.56 | 0.91 | $5.97 | |
ARB | 0.02% | $4,824.86 | 0.00114954 | $5.55 | |
ARB | 0.02% | $10.9 | 0.4586 | $5 | |
ARB | 0.01% | $111,428 | 0.0000324 | $3.61 | |
ARB | <0.01% | $0.999531 | 1.9743 | $1.97 | |
ARB | <0.01% | $0.021097 | 68.8564 | $1.45 | |
ARB | <0.01% | $1 | 0.74 | $0.7399 | |
ARB | <0.01% | $1 | 0.1228 | $0.1229 | |
POL | 2.68% | $0.999901 | 841.8642 | $841.78 | |
POL | 0.20% | $0.195149 | 315.8704 | $61.64 | |
POL | 0.10% | $243.97 | 0.1244 | $30.36 | |
POL | 0.09% | $3,966.59 | 0.00677083 | $26.86 | |
POL | 0.07% | $0.00 | 23.2207 | $0.00 | |
POL | 0.06% | $0.999651 | 19.5737 | $19.57 | |
POL | 0.05% | $0.999693 | 15.2949 | $15.29 | |
POL | <0.01% | $111,177 | 0.00000883 | $0.9816 | |
POL | <0.01% | $4,814.94 | 0.00004737 | $0.228 | |
OP | 0.25% | $4,824.86 | 0.0161 | $77.72 | |
OP | 0.21% | $3,971.56 | 0.0169 | $67.21 | |
OP | 0.16% | $1 | 49.8303 | $49.83 | |
OP | 0.13% | $0.459586 | 92.0236 | $42.29 | |
OP | 0.11% | $1 | 33.8569 | $33.89 | |
OP | 0.09% | $4,532.72 | 0.00594893 | $26.96 | |
OP | 0.06% | $0.998016 | 19.6322 | $19.59 | |
OP | 0.04% | $244.49 | 0.0493 | $12.05 | |
OP | 0.02% | $0.999901 | 7.0518 | $7.05 | |
OP | <0.01% | $1.96 | 1.1143 | $2.18 | |
OP | <0.01% | $0.999901 | 1.647 | $1.65 | |
OP | <0.01% | $111,428 | 0.00001167 | $1.3 | |
OP | <0.01% | $3,949.07 | 0.00024808 | $0.979701 | |
OP | <0.01% | $4,363.27 | 0.00003263 | $0.1423 | |
BASE | 0.29% | $0.00 | 0.0214 | $0.00 | |
BASE | 0.21% | $3,960.33 | 0.017 | $67.22 | |
BASE | 0.16% | $0.00 | 47.4787 | $0.00 | |
BASE | 0.10% | $0.999901 | 30.1995 | $30.2 | |
BASE | 0.09% | $1.15 | 23.3796 | $26.89 | |
BASE | 0.06% | $0.00 | 0.00445909 | $0.00 | |
BASE | 0.02% | $4,286.07 | 0.00157222 | $6.74 | |
BASE | 0.02% | $111,091 | 0.00005857 | $6.51 | |
BASE | <0.01% | $0.998349 | 2.3293 | $2.33 | |
BASE | <0.01% | $4,270.74 | 0.00046988 | $2.01 | |
BASE | <0.01% | $1 | 1.9127 | $1.91 | |
BASE | <0.01% | $0.000002 | 740,000 | $1.39 | |
BASE | <0.01% | $3,962.41 | 0.000341 | $1.35 | |
BASE | <0.01% | $4,814.94 | 0.000275 | $1.32 | |
BASE | <0.01% | $4,534.34 | 0.00021089 | $0.9562 | |
GNO | 0.22% | $3,963.34 | 0.0174 | $68.9 | |
GNO | 0.20% | $4,819.18 | 0.0128 | $61.56 | |
GNO | 0.14% | $1.2 | 36.3674 | $43.64 | |
GNO | 0.08% | $132.55 | 0.2001 | $26.52 | |
GNO | 0.05% | $1.15 | 14.4187 | $16.58 | |
GNO | 0.05% | $1.15 | 14.4187 | $16.58 | |
GNO | <0.01% | $1 | 3.0232 | $3.02 | |
GNO | <0.01% | $0.999841 | 2.5698 | $2.57 | |
GNO | <0.01% | $1 | 2.0438 | $2.05 | |
GNO | <0.01% | $0.999997 | 0.6877 | $0.6877 | |
LINEA | 0.22% | $1 | 69.1633 | $69.23 | |
LINEA | 0.06% | $3,964.66 | 0.00502982 | $19.94 | |
LINEA | 0.05% | $0.999997 | 15.3641 | $15.36 | |
LINEA | 0.03% | $4,819.18 | 0.00163315 | $7.87 | |
LINEA | <0.01% | $3,949.98 | 0.00032899 | $1.3 | |
LINEA | <0.01% | $0.999825 | 0.5025 | $0.5024 | |
LINEA | <0.01% | $111,172 | 0.00000172 | $0.1912 | |
BSC | 0.08% | $3,973.8 | 0.00660495 | $26.25 | |
BSC | 0.08% | $1,172.13 | 0.0209 | $24.53 | |
BSC | 0.07% | $0.998077 | 22.2307 | $22.19 | |
BSC | 0.02% | $111,216.22 | 0.00005153 | $5.73 | |
AVAX | 0.08% | $0.00 | 25.8641 | $0.00 | |
AVAX | 0.01% | $0.999901 | 4.681 | $4.68 | |
AVAX | 0.01% | $22.33 | 0.156 | $3.48 | |
SCROLL | 0.03% | $0.999997 | 9.6289 | $9.63 | |
SCROLL | 0.03% | $3,963.34 | 0.00233748 | $9.26 | |
SCROLL | 0.03% | $4,831.28 | 0.00189481 | $9.15 | |
SCROLL | <0.01% | $3,949.98 | 0.00059412 | $2.35 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.