Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 15 from a total of 15 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute Token | 7704368 | 132 days ago | IN | 0 ETH | 0 | ||||
Distribute Token | 7704025 | 132 days ago | IN | 0 ETH | 0 | ||||
Transfer | 7703060 | 132 days ago | IN | 0.1 ETH | 0.00000009 | ||||
Transfer | 7703028 | 132 days ago | IN | 0.1 ETH | 0.00000003 | ||||
Grant Role | 7697294 | 132 days ago | IN | 0 ETH | 0.00000006 | ||||
Distribute Token | 6975900 | 149 days ago | IN | 0 ETH | 0.00000009 | ||||
Transfer | 6975875 | 149 days ago | IN | 0.01 ETH | 0.00000002 | ||||
Transfer | 6975826 | 149 days ago | IN | 0.01 ETH | 0.00000002 | ||||
Transfer | 6975162 | 149 days ago | IN | 0.001 ETH | 0.00000009 | ||||
Transfer | 6975120 | 149 days ago | IN | 0.099 ETH | 0.00000002 | ||||
Set ETH Distribu... | 6975065 | 149 days ago | IN | 0 ETH | 0.00000003 | ||||
Grant Role | 6974156 | 149 days ago | IN | 0 ETH | 0.00000002 | ||||
Set Distribution... | 6974153 | 149 days ago | IN | 0 ETH | 0.00000025 | ||||
Set Distribution... | 6974151 | 149 days ago | IN | 0 ETH | 0.00000025 | ||||
0x60c06040 | 6974148 | 149 days ago | IN | 0 ETH | 0.00000223 |
Latest 12 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7703060 | 132 days ago | 0.035 ETH | ||||
7703060 | 132 days ago | 0.015 ETH | ||||
7703060 | 132 days ago | 0.02 ETH | ||||
7703060 | 132 days ago | 0.03 ETH | ||||
6975900 | 149 days ago | 0.007 ETH | ||||
6975900 | 149 days ago | 0.003 ETH | ||||
6975900 | 149 days ago | 0.004 ETH | ||||
6975900 | 149 days ago | 0.006 ETH | ||||
6975162 | 149 days ago | 0.035 ETH | ||||
6975162 | 149 days ago | 0.015 ETH | ||||
6975162 | 149 days ago | 0.02 ETH | ||||
6975162 | 149 days ago | 0.03 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FeeSplitterV3
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 888888 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import {LowLevelWETH} from "@looksrare/contracts-libs/contracts/lowLevelCallers/LowLevelWETH.sol"; import {LowLevelERC20Transfer} from "@looksrare/contracts-libs/contracts/lowLevelCallers/LowLevelERC20Transfer.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IBlast, YieldMode as IBlast__YieldMode, GasMode as IBlast__GasMode} from "./interfaces/IBlast.sol"; import {IERC20Rebasing, YieldMode as IERC20Rebasing__YieldMode} from "./interfaces/IERC20Rebasing.sol"; contract FeeSplitterV3 is LowLevelWETH, LowLevelERC20Transfer, AccessControl { /** * @notice Fee receiver struct * @param recipient Receiver address * @param composition Fee composition */ struct FeeReceiver { address recipient; uint256 composition; } /** * @notice Transfer struct * @param recipient Receiver address * @param amount Transfer amount */ struct Transfer { address recipient; uint256 amount; } /** * @notice Operators are allowed to distribute tokens */ bytes32 private constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); address public immutable WETH; address public immutable USDB; /** * @notice ETH is distributed whenever it receives ETH and the account balance is >= the threshold * or the contract owner can distribute it manually by calling distributeToken(address(0)). */ uint256 public ethDistributionBalanceThreshold = 1 ether; mapping(address token => FeeReceiver[]) public distributions; event DistributionsSet(address token, FeeReceiver[] receivers); event ETHDistributionBalanceThresholdUpdated(uint256 threshold); event ETHWithdrawn(address receiver, uint256 amount); event TokenWithdrawn(address receiver, address token, uint256 amount); event ETHDistributed(Transfer[] transfers); event TokenDistributed(address token, Transfer[] transfers); error EmptyArray(); error NoReceivers(); error NotOneHundredPercent(); error ZeroBalance(); error ZeroComposition(); error ZeroTransferAmount(); /** * @param blast Blast precompile * @param owner Contract owner * @param operator Contract operator * @param weth WETH address * @param usdb USDB address */ constructor(address blast, address owner, address operator, address weth, address usdb) { _grantRole(DEFAULT_ADMIN_ROLE, owner); _grantRole(OPERATOR_ROLE, owner); _grantRole(OPERATOR_ROLE, operator); IBlast(blast).configure(IBlast__YieldMode.CLAIMABLE, IBlast__GasMode.CLAIMABLE, owner); IERC20Rebasing(weth).configure(IERC20Rebasing__YieldMode.CLAIMABLE); IERC20Rebasing(usdb).configure(IERC20Rebasing__YieldMode.CLAIMABLE); WETH = weth; USDB = usdb; } /** * @notice Set fee distribution compositions. * Total composition must be 100%. * Only callable by the owner. * * @param receivers Array of fee receivers */ function setDistributions(address token, FeeReceiver[] calldata receivers) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = receivers.length; if (length == 0) { revert EmptyArray(); } delete distributions[token]; uint256 totalComposition; for (uint256 i; i < length; ++i) { uint256 composition = receivers[i].composition; if (composition == 0) { revert ZeroComposition(); } totalComposition += composition; distributions[token].push(receivers[i]); } if (totalComposition != 10_000) { revert NotOneHundredPercent(); } emit DistributionsSet(token, receivers); } /** * @notice Withdraw ETH. Only callable by the owner. * @param receiver The receiver */ function withdrawETH(address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 balance = address(this).balance; if (balance == 0) { revert ZeroBalance(); } _transferETHAndWrapIfFailWithGasLimit(WETH, receiver, balance, gasleft()); emit ETHWithdrawn(receiver, balance); } /** * @notice Withdraw ERC-20 token. Only callable by the owner. * @param token Token address * @param receiver The receiver */ function withdrawToken(address token, address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 balance = IERC20(token).balanceOf(address(this)); if (balance == 0) { revert ZeroBalance(); } _executeERC20DirectTransfer(token, receiver, balance); emit TokenWithdrawn(receiver, token, balance); } /** * @notice Distribute ERC-20 token to multiple recipients. * @param token Token address */ function distributeToken(address token) external onlyRole(OPERATOR_ROLE) { if (token == address(0)) { _distributeETH(address(this).balance); } else { _distributeERC20(token); } } /** * @notice Claim Blast yield. Only callable by the owner. * @param receiver The receiver */ function claim(address receiver) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 claimableWETH = IERC20Rebasing(WETH).getClaimableAmount(address(this)); if (claimableWETH != 0) { IERC20Rebasing(WETH).claim(receiver, claimableWETH); } uint256 claimableUSDB = IERC20Rebasing(USDB).getClaimableAmount(address(this)); if (claimableUSDB != 0) { IERC20Rebasing(USDB).claim(receiver, claimableUSDB); } } /** * @notice Set ETH distribution balance threshold. * @param threshold ETH distribution balance threshold */ function setETHDistributionBalanceThreshold(uint256 threshold) external onlyRole(DEFAULT_ADMIN_ROLE) { ethDistributionBalanceThreshold = threshold; emit ETHDistributionBalanceThresholdUpdated(threshold); } /** * @notice Distribute received ETH to multiple recipients. * If distributions are not set, the ETH will stay in the contract. */ receive() external payable { uint256 balance = address(this).balance; if (balance >= ethDistributionBalanceThreshold) { _distributeETH(balance); } } /** * @param token Token address */ function _distributeERC20(address token) private { uint256 balance = IERC20(token).balanceOf(address(this)); if (balance == 0) { revert ZeroBalance(); } uint256 distributionsCount = distributions[token].length; Transfer[] memory transfers = new Transfer[](distributionsCount); for (uint256 i; i < distributionsCount; ++i) { FeeReceiver memory receiver = distributions[token][i]; uint256 amount = (balance * receiver.composition) / 10_000; if (amount == 0) { revert ZeroTransferAmount(); } _executeERC20DirectTransfer(token, receiver.recipient, amount); transfers[i] = Transfer(receiver.recipient, amount); } emit TokenDistributed(token, transfers); } /** * @param balance ETH balance to distribute */ function _distributeETH(uint256 balance) private { uint256 distributionsLength = distributions[address(0)].length; if (distributionsLength > 0) { Transfer[] memory transfers = new Transfer[](distributionsLength); for (uint256 i; i < distributionsLength; ++i) { FeeReceiver memory receiver = distributions[address(0)][i]; uint256 amount = (balance * receiver.composition) / 10_000; if (amount == 0) { revert ZeroTransferAmount(); } _transferETHAndWrapIfFailWithGasLimit(WETH, receiver.recipient, amount, gasleft()); transfers[i] = Transfer(receiver.recipient, amount); } emit ETHDistributed(transfers); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /** * @notice It is emitted if the call recipient is not a contract. */ error NotAContract();
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /** * @notice It is emitted if the ETH transfer fails. */ error ETHTransferFail(); /** * @notice It is emitted if the ERC20 approval fails. */ error ERC20ApprovalFail(); /** * @notice It is emitted if the ERC20 transfer fails. */ error ERC20TransferFail(); /** * @notice It is emitted if the ERC20 transferFrom fails. */ error ERC20TransferFromFail(); /** * @notice It is emitted if the ERC721 transferFrom fails. */ error ERC721TransferFromFail(); /** * @notice It is emitted if the ERC1155 safeTransferFrom fails. */ error ERC1155SafeTransferFromFail(); /** * @notice It is emitted if the ERC1155 safeBatchTransferFrom fails. */ error ERC1155SafeBatchTransferFromFail();
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address from, address to, uint256 amount) external returns (bool); function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address dst, uint256 wad) external returns (bool); function withdraw(uint256 wad) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; // Interfaces import {IERC20} from "../interfaces/generic/IERC20.sol"; // Errors import {ERC20TransferFail, ERC20TransferFromFail} from "../errors/LowLevelErrors.sol"; import {NotAContract} from "../errors/GenericErrors.sol"; /** * @title LowLevelERC20Transfer * @notice This contract contains low-level calls to transfer ERC20 tokens. * @author LooksRare protocol team (👀,💎) */ contract LowLevelERC20Transfer { /** * @notice Execute ERC20 transferFrom * @param currency Currency address * @param from Sender address * @param to Recipient address * @param amount Amount to transfer */ function _executeERC20TransferFrom(address currency, address from, address to, uint256 amount) internal { if (currency.code.length == 0) { revert NotAContract(); } (bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transferFrom, (from, to, amount))); if (!status) { revert ERC20TransferFromFail(); } if (data.length > 0) { if (!abi.decode(data, (bool))) { revert ERC20TransferFromFail(); } } } /** * @notice Execute ERC20 (direct) transfer * @param currency Currency address * @param to Recipient address * @param amount Amount to transfer */ function _executeERC20DirectTransfer(address currency, address to, uint256 amount) internal { if (currency.code.length == 0) { revert NotAContract(); } (bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transfer, (to, amount))); if (!status) { revert ERC20TransferFail(); } if (data.length > 0) { if (!abi.decode(data, (bool))) { revert ERC20TransferFail(); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; // Interfaces import {IWETH} from "../interfaces/generic/IWETH.sol"; /** * @title LowLevelWETH * @notice This contract contains a function to transfer ETH with an option to wrap to WETH. * If the ETH transfer fails within a gas limit, the amount in ETH is wrapped to WETH and then transferred. * @author LooksRare protocol team (👀,💎) */ contract LowLevelWETH { /** * @notice It transfers ETH to a recipient with a specified gas limit. * If the original transfers fails, it wraps to WETH and transfers the WETH to recipient. * @param _WETH WETH address * @param _to Recipient address * @param _amount Amount to transfer * @param _gasLimit Gas limit to perform the ETH transfer */ function _transferETHAndWrapIfFailWithGasLimit( address _WETH, address _to, uint256 _amount, uint256 _gasLimit ) internal { bool status; assembly { status := call(_gasLimit, _to, _amount, 0, 0, 0, 0) } if (!status) { IWETH(_WETH).deposit{value: _amount}(); IWETH(_WETH).transfer(_to, _amount); } } }
// 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 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 (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: 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: 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); }
// 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 (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 pragma solidity 0.8.23; enum YieldMode { AUTOMATIC, VOID, CLAIMABLE } enum GasMode { VOID, CLAIMABLE } interface IBlast { // configure function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external; function configure(YieldMode _yield, GasMode gasMode, address governor) external; // base configuration options function configureClaimableYield() external; function configureClaimableYieldOnBehalf(address contractAddress) external; function configureAutomaticYield() external; function configureAutomaticYieldOnBehalf(address contractAddress) external; function configureVoidYield() external; function configureVoidYieldOnBehalf(address contractAddress) external; function configureClaimableGas() external; function configureClaimableGasOnBehalf(address contractAddress) external; function configureVoidGas() external; function configureVoidGasOnBehalf(address contractAddress) external; function configureGovernor(address _governor) external; function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external; // claim yield function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256); function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256); // claim gas function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGasAtMinClaimRate( address contractAddress, address recipientOfGas, uint256 minClaimRateBips ) external returns (uint256); function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGas( address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume ) external returns (uint256); // read functions function readClaimableYield(address contractAddress) external view returns (uint256); function readYieldConfiguration(address contractAddress) external view returns (uint8); function readGasParams( address contractAddress ) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; enum YieldMode { AUTOMATIC, VOID, CLAIMABLE } interface IERC20Rebasing { // changes the yield mode of the caller and update the balance // to reflect the configuration function configure(YieldMode) external returns (uint256); // "claimable" yield mode accounts can call this this claim their yield // to another address function claim(address recipient, uint256 amount) external returns (uint256); // read the claimable amount for an account function getClaimableAmount(address account) external view returns (uint256); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 888888 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"blast","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"weth","type":"address"},{"internalType":"address","name":"usdb","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC20TransferFail","type":"error"},{"inputs":[],"name":"EmptyArray","type":"error"},{"inputs":[],"name":"NoReceivers","type":"error"},{"inputs":[],"name":"NotAContract","type":"error"},{"inputs":[],"name":"NotOneHundredPercent","type":"error"},{"inputs":[],"name":"ZeroBalance","type":"error"},{"inputs":[],"name":"ZeroComposition","type":"error"},{"inputs":[],"name":"ZeroTransferAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV3.FeeReceiver[]","name":"receivers","type":"tuple[]"}],"name":"DistributionsSet","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV3.Transfer[]","name":"transfers","type":"tuple[]"}],"name":"ETHDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"ETHDistributionBalanceThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHWithdrawn","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":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"indexed":false,"internalType":"struct FeeSplitterV3.Transfer[]","name":"transfers","type":"tuple[]"}],"name":"TokenDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenWithdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"distributeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributions","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethDistributionBalanceThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"composition","type":"uint256"}],"internalType":"struct FeeSplitterV3.FeeReceiver[]","name":"receivers","type":"tuple[]"}],"name":"setDistributions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"setETHDistributionBalanceThreshold","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":[{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060409080825234620001cc575f9060a08162002351803803809162000027828562000296565b833981010312620001cc576200003d81620002ba565b91602090620000bd62000052838501620002ba565b6200005f878601620002ba565b906200007c60806200007460608901620002ba565b9701620002ba565b96670de0b6b3a76400006001555f80525f8652620000c3895f209360018060a01b0395848780961696875f528a5260ff8d5f205416156200025f57620002cf565b620002cf565b1690813b15620001cc575f91606483928a51948593849263c8992e6160e01b8452600260048501526001602485015260448401525af18015620002555762000224575b508551631a33757d60e01b80825260026004830152908481602481878a88165af180156200021a57918493918693620001e3575b50602490895195869384928352600260048401528a165af1908115620001d85750620001a5575b505060805260a05251611fc590816200036c823960805181818161029d01528181610ad901528181610efe0152611c3a015260a0518181816102ee01526107330152f35b813d8311620001d0575b620001bb818362000296565b81010312620001cc575f8062000161565b5f80fd5b503d620001af565b8651903d90823e3d90fd5b9092809294503d831162000212575b620001fe818362000296565b81010312620001cc57829184915f6200013a565b503d620001f2565b88513d86823e3d90fd5b9091506001600160401b038111620002415785525f905f62000106565b634e487b7160e01b5f52604160045260245ffd5b87513d5f823e3d90fd5b5f80525f8a528c5f20875f528a528c5f20600160ff1982541617905533875f5f80516020620023318339815191528180a4620002cf565b601f909101601f19168101906001600160401b038211908210176200024157604052565b51906001600160a01b0382168203620001cc57565b6001600160a01b03165f8181527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929919060ff161562000335575050565b815f525f60205260405f20815f5260205260405f20600160ff1982541617905533915f80516020620023318339815191525f80a456fe60806040526004361015610022575b3615610018575f80fd5b610020611394565b005b5f3560e01c806301ffc9a7146101315780631e83409a1461012c578063248a9ca3146101275780632d9b4b25146101225780632f2ff15d1461011d57806331a0edec1461011857806336568abe146101135780633aeac4e11461010e57806358e76d21146101095780635bc50fa214610104578063690d8320146100ff57806386d74037146100fa57806391d14854146100f5578063a10d5fe3146100f0578063a217fddf146100eb578063ad5c4648146100e65763d547741f0361000e57610f22565b610eb4565b610e7c565b610e12565b610d95565b610b2d565b610a65565b610a2a565b6109a7565b61083f565b610757565b6106e9565b6105b3565b61050f565b61047a565b610212565b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004357fffffffff0000000000000000000000000000000000000000000000000000000081168091036101f057807f7965db0b00000000000000000000000000000000000000000000000000000000602092149081156101c6575b506040519015158152f35b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150145f6101bb565b5f80fd5b73ffffffffffffffffffffffffffffffffffffffff8116036101f057565b346101f0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561024e816101f4565b6102566113ad565b6040517fe12f3a6100000000000000000000000000000000000000000000000000000000808252306004830152919073ffffffffffffffffffffffffffffffffffffffff907f00000000000000000000000000000000000000000000000000000000000000008216908581602481855afa80156103b65786915f9161045d575b50806103d8575b5050604051938452503060048401527f000000000000000000000000000000000000000000000000000000000000000016918381602481865afa9081156103b6575f916103bb575b508061032d57005b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9290921660048301526024820152908290829060449082905f905af180156103b65761039057005b8161002092903d106103af575b6103a78183610fe1565b810190611022565b503d61039d565b611031565b6103d29150843d86116103af576103a78183610fe1565b5f610325565b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602481019190915291829060449082905f905af180156103b657610440575b84816102dd565b61045690853d87116103af576103a78183610fe1565b505f610439565b6104749150823d84116103af576103a78183610fe1565b5f6102d6565b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004355f525f6020526020600160405f200154604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805482101561050a575f5260205f209060011b01905f90565b6104c4565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561054a816101f4565b60243573ffffffffffffffffffffffffffffffffffffffff8092165f52600260205260405f2080548210156101f057600191610585916104f1565b508054910154604080519390921673ffffffffffffffffffffffffffffffffffffffff168352602083015290f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576024356004356105f1826101f4565b805f525f602052610608600160405f20015461163d565b805f525f60205260ff61063c8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561064557005b805f525f6020526106778260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b5f9103126101f057565b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602435610792816101f4565b3373ffffffffffffffffffffffffffffffffffffffff8216036107bb576100209060043561170b565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561087a816101f4565b60243590610887826101f4565b61088f6113ad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529160208360248173ffffffffffffffffffffffffffffffffffffffff86165afa9283156103b6575f93610986575b50821561095c57610957836109207f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620958486611862565b6040519384938460409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0390a1005b60046040517f669567ea000000000000000000000000000000000000000000000000000000008152fd5b6109a091935060203d6020116103af576103a78183610fe1565b915f6108e9565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004356109e2816101f4565b6024359067ffffffffffffffff908183116101f057366023840112156101f05782600401359182116101f0573660248360061b850101116101f057602461002093019061103c565b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576020600154604051908152f35b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057600435610aa0816101f4565b610aa86113ad565b47801561095c577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c91610afd5a83837f000000000000000000000000000000000000000000000000000000000000000061195f565b6040805173ffffffffffffffffffffffffffffffffffffffff909216825260208201929092529081908101610957565b346101f0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057600490600435610b6c816101f4565b610b74611552565b73ffffffffffffffffffffffffffffffffffffffff81169182610b9e575050505061002047611bfa565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152939091908190859060249082905afa9384156103b6575f94610d76575b50831561095c57610c178373ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b5491610c2283611aa2565b945f5b848110610c635750505050507fc353cf4d8bce79c17406ed71806eb713bef0f3e2b158e170fb64d2f236cc92ea925061095760405192839283611bb9565b610c9d610c9782610c928973ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b6104f1565b50611b1d565b610cb5610cad86830151856111d5565b612710900490565b908115610d4e5790610d0682610cec83610ce6600197965173ffffffffffffffffffffffffffffffffffffffff1690565b8c611862565b5173ffffffffffffffffffffffffffffffffffffffff1690565b90610d2e610d126117e0565b73ffffffffffffffffffffffffffffffffffffffff9093168352565b86820152610d3c828a611b51565b52610d478189611b51565b5001610c25565b8985517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b81610d8e9295503d86116103af576103a78183610fe1565b925f610be8565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060ff610e06602435610dd7816101f4565b6004355f525f845260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54166040519015158152f35b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0577f31110426a720bbd9afa81d7c99aa97f2513260b87ceae2e0cc88448446a3984f6020600435610e6f6113ad565b80600155604051908152a1005b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760206040515f8152f35b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057610020602435600435610f63826101f4565b805f525f602052610f7a600160405f20015461163d565b61170b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff8111610fc057604052565b610f7f565b6040810190811067ffffffffffffffff821117610fc057604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610fc057604052565b908160209103126101f0575190565b6040513d5f823e3d90fd5b6110446113ad565b821561117e5761107a6110758273ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b6111ed565b5f805b8482106110ee576127109150036110c4576110bf7f98b53af9f2c91284f1d03e5ccd746b4efa195925c47e96435fb1bcd081a2d1609360405193849384611318565b0390a1565b60046040517f396d8287000000000000000000000000000000000000000000000000000000008152fd5b60206110fb838787611252565b01359081156111545760019161111091611262565b9161114d61113c8573ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b611147838989611252565b9061126f565b019061107d565b60046040517fff3f95ef000000000000000000000000000000000000000000000000000000008152fd5b60046040517f521299a9000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818102929181159184041417156111e857565b6111a8565b8054905f8155816111fc575050565b6001907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831683036111e8575f5260205f209160011b8201915b82811061124257505050565b5f80825582820155600201611236565b919081101561050a5760061b0190565b919082018092116111e857565b805468010000000000000000811015610fc057611291916001820181556104f1565b9190916112ec5760208173ffffffffffffffffffffffffffffffffffffffff600193356112bd816101f4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008554161784550135910155565b7f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b90919260406060604084019373ffffffffffffffffffffffffffffffffffffffff80961681528360209560406020840152520194925f905b8382106113605750505050505090565b9091929394969583806001928a8935611378816101f4565b1681528885013585820152989998019796019493920190611350565b476001548110156113a25750565b6113ab90611bfa565b565b335f9081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156113e557565b6113ee33611ef2565b5f906113f8611e08565b91603061140484611e34565b53607861141084611e41565b5360415b600181116115045761150060486114ce856114a2886114338815611e8d565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152611473815180926020603789019101611d86565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190611da7565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610fe1565b6040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301611dbe565b0390fd5b90600f811690601082101561050a577f303132333435363738396162636465660000000000000000000000000000000061154d921a6115438487611e51565b5360041c91611e62565b611414565b335f9081527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299060ff16156115ad5750565b6115b633611ef2565b6115be611e08565b9160306115ca84611e34565b5360786115d684611e41565b5360415b600181116115f95761150060486114ce856114a2886114338815611e8d565b90600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611638921a6115438487611e51565b6115da565b805f525f60205260ff6116713360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561167b5750565b61168433611ef2565b61168c611e08565b91603061169884611e34565b5360786116a484611e41565b5360415b600181116116c75761150060486114ce856114a2886114338815611e8d565b90600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611706921a6115438487611e51565b6116a8565b805f525f60205260ff61173f8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b5416611749575050565b805f525f60205261177b8260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b604051906113ab82610fc5565b3d15611845573d9067ffffffffffffffff8211610fc0576040519161183a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610fe1565b82523d5f602084013e565b606090565b908160209103126101f0575180151581036101f05790565b919091803b15611935576040517fa9059cbb000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff909416602482015260448101929092525f92839283906118cf81606481016114a2565b51925af16118db6117ed565b901561190b578051806118ec575050565b8160208061190193611905950101910161184a565b1590565b61190b57565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9091925f808080878761197196f11590565b61197a57505050565b73ffffffffffffffffffffffffffffffffffffffff1691823b156101f057604051927fd0e30db00000000000000000000000000000000000000000000000000000000084525f8460048185855af19283156103b657611a3594602094611a71575b505f6040518096819582947fa9059cbb000000000000000000000000000000000000000000000000000000008452600484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03925af180156103b657611a465750565b611a679060203d602011611a6a575b611a5f8183610fe1565b81019061184a565b50565b503d611a55565b80611a7e611a8492610fac565b806106df565b5f6119db565b67ffffffffffffffff8111610fc05760051b60200190565b90611aac82611a8a565b604090611abc6040519182610fe1565b8381527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611aea8295611a8a565b01915f5b838110611afb5750505050565b6020908251611b0981610fc5565b5f8152825f81830152828601015201611aee565b90604051611b2a81610fc5565b60206001829473ffffffffffffffffffffffffffffffffffffffff81541684520154910152565b805182101561050a5760209160051b010190565b9081518082526020808093019301915f5b828110611b84575050505090565b8351805173ffffffffffffffffffffffffffffffffffffffff1686528201518583015260409094019392810192600101611b76565b60409073ffffffffffffffffffffffffffffffffffffffff611be694931681528160208201520190611b65565b90565b906020611be6928181520190611b65565b5f805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b549081611c2e575050565b611c3782611aa2565b917f00000000000000000000000000000000000000000000000000000000000000005f5b828110611c9757505050506110bf7f74e25dc4ff8b586f5de80652d544515aad542a49061c99fb77b2acff3583b7a19160405191829182611be9565b5f80526002602052611ccc610c97827fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b6104f1565b906020611cdf610cad82850151886111d5565b8015611d5c57611d1584610cec611d0c6001975173ffffffffffffffffffffffffffffffffffffffff1690565b845a918a61195f565b91611d3d611d216117e0565b73ffffffffffffffffffffffffffffffffffffffff9094168452565b820152611d4a8288611b51565b52611d558187611b51565b5001611c5b565b60046040517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b5f5b838110611d975750505f910152565b8181015183820152602001611d88565b90611dba60209282815194859201611d86565b0190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60409360208452611e018151809281602088015260208888019101611d86565b0116010190565b604051906080820182811067ffffffffffffffff821117610fc057604052604282526060366020840137565b80511561050a5760200190565b80516001101561050a5760210190565b90815181101561050a570160200190565b80156111e8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b15611e9457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117610fc057604052602a825260403660208401376030611f2783611e34565b536078611f3383611e41565b536029905b60018211611f4b57611be6915015611e8d565b600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611f89921a6115438486611e51565b90611f3856fea2646970667358221220f228fbc2c086619e8e32ca931e436a5131f8a5b401543e968c09a88cd152646964736f6c634300081700332f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d000000000000000000000000430000000000000000000000000000000000000200000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b000000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b000000000000000000000000042000000000000000000000000000000000000230000000000000000000000004200000000000000000000000000000000000022
Deployed Bytecode
0x60806040526004361015610022575b3615610018575f80fd5b610020611394565b005b5f3560e01c806301ffc9a7146101315780631e83409a1461012c578063248a9ca3146101275780632d9b4b25146101225780632f2ff15d1461011d57806331a0edec1461011857806336568abe146101135780633aeac4e11461010e57806358e76d21146101095780635bc50fa214610104578063690d8320146100ff57806386d74037146100fa57806391d14854146100f5578063a10d5fe3146100f0578063a217fddf146100eb578063ad5c4648146100e65763d547741f0361000e57610f22565b610eb4565b610e7c565b610e12565b610d95565b610b2d565b610a65565b610a2a565b6109a7565b61083f565b610757565b6106e9565b6105b3565b61050f565b61047a565b610212565b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004357fffffffff0000000000000000000000000000000000000000000000000000000081168091036101f057807f7965db0b00000000000000000000000000000000000000000000000000000000602092149081156101c6575b506040519015158152f35b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150145f6101bb565b5f80fd5b73ffffffffffffffffffffffffffffffffffffffff8116036101f057565b346101f0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561024e816101f4565b6102566113ad565b6040517fe12f3a6100000000000000000000000000000000000000000000000000000000808252306004830152919073ffffffffffffffffffffffffffffffffffffffff907f00000000000000000000000042000000000000000000000000000000000000238216908581602481855afa80156103b65786915f9161045d575b50806103d8575b5050604051938452503060048401527f000000000000000000000000420000000000000000000000000000000000002216918381602481865afa9081156103b6575f916103bb575b508061032d57005b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9290921660048301526024820152908290829060449082905f905af180156103b65761039057005b8161002092903d106103af575b6103a78183610fe1565b810190611022565b503d61039d565b611031565b6103d29150843d86116103af576103a78183610fe1565b5f610325565b6040517faad3ec9600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86166004820152602481019190915291829060449082905f905af180156103b657610440575b84816102dd565b61045690853d87116103af576103a78183610fe1565b505f610439565b6104749150823d84116103af576103a78183610fe1565b5f6102d6565b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004355f525f6020526020600160405f200154604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805482101561050a575f5260205f209060011b01905f90565b6104c4565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561054a816101f4565b60243573ffffffffffffffffffffffffffffffffffffffff8092165f52600260205260405f2080548210156101f057600191610585916104f1565b508054910154604080519390921673ffffffffffffffffffffffffffffffffffffffff168352602083015290f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576024356004356105f1826101f4565b805f525f602052610608600160405f20015461163d565b805f525f60205260ff61063c8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561064557005b805f525f6020526106778260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4005b5f9103126101f057565b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004200000000000000000000000000000000000022168152f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602435610792816101f4565b3373ffffffffffffffffffffffffffffffffffffffff8216036107bb576100209060043561170b565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760043561087a816101f4565b60243590610887826101f4565b61088f6113ad565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529160208360248173ffffffffffffffffffffffffffffffffffffffff86165afa9283156103b6575f93610986575b50821561095c57610957836109207f8210728e7c071f615b840ee026032693858fbcd5e5359e67e438c890f59e5620958486611862565b6040519384938460409194939294606082019573ffffffffffffffffffffffffffffffffffffffff80921683521660208201520152565b0390a1005b60046040517f669567ea000000000000000000000000000000000000000000000000000000008152fd5b6109a091935060203d6020116103af576103a78183610fe1565b915f6108e9565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576004356109e2816101f4565b6024359067ffffffffffffffff908183116101f057366023840112156101f05782600401359182116101f0573660248360061b850101116101f057602461002093019061103c565b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0576020600154604051908152f35b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057600435610aa0816101f4565b610aa86113ad565b47801561095c577f94b2de810873337ed265c5f8cf98c9cffefa06b8607f9a2f1fbaebdfbcfbef1c91610afd5a83837f000000000000000000000000420000000000000000000000000000000000002361195f565b6040805173ffffffffffffffffffffffffffffffffffffffff909216825260208201929092529081908101610957565b346101f0576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057600490600435610b6c816101f4565b610b74611552565b73ffffffffffffffffffffffffffffffffffffffff81169182610b9e575050505061002047611bfa565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152939091908190859060249082905afa9384156103b6575f94610d76575b50831561095c57610c178373ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b5491610c2283611aa2565b945f5b848110610c635750505050507fc353cf4d8bce79c17406ed71806eb713bef0f3e2b158e170fb64d2f236cc92ea925061095760405192839283611bb9565b610c9d610c9782610c928973ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b6104f1565b50611b1d565b610cb5610cad86830151856111d5565b612710900490565b908115610d4e5790610d0682610cec83610ce6600197965173ffffffffffffffffffffffffffffffffffffffff1690565b8c611862565b5173ffffffffffffffffffffffffffffffffffffffff1690565b90610d2e610d126117e0565b73ffffffffffffffffffffffffffffffffffffffff9093168352565b86820152610d3c828a611b51565b52610d478189611b51565b5001610c25565b8985517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b81610d8e9295503d86116103af576103a78183610fe1565b925f610be8565b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060ff610e06602435610dd7816101f4565b6004355f525f845260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54166040519015158152f35b346101f05760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f0577f31110426a720bbd9afa81d7c99aa97f2513260b87ceae2e0cc88448446a3984f6020600435610e6f6113ad565b80600155604051908152a1005b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f05760206040515f8152f35b346101f0575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004200000000000000000000000000000000000023168152f35b346101f05760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101f057610020602435600435610f63826101f4565b805f525f602052610f7a600160405f20015461163d565b61170b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff8111610fc057604052565b610f7f565b6040810190811067ffffffffffffffff821117610fc057604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117610fc057604052565b908160209103126101f0575190565b6040513d5f823e3d90fd5b6110446113ad565b821561117e5761107a6110758273ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b6111ed565b5f805b8482106110ee576127109150036110c4576110bf7f98b53af9f2c91284f1d03e5ccd746b4efa195925c47e96435fb1bcd081a2d1609360405193849384611318565b0390a1565b60046040517f396d8287000000000000000000000000000000000000000000000000000000008152fd5b60206110fb838787611252565b01359081156111545760019161111091611262565b9161114d61113c8573ffffffffffffffffffffffffffffffffffffffff165f52600260205260405f2090565b611147838989611252565b9061126f565b019061107d565b60046040517fff3f95ef000000000000000000000000000000000000000000000000000000008152fd5b60046040517f521299a9000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818102929181159184041417156111e857565b6111a8565b8054905f8155816111fc575050565b6001907f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831683036111e8575f5260205f209160011b8201915b82811061124257505050565b5f80825582820155600201611236565b919081101561050a5760061b0190565b919082018092116111e857565b805468010000000000000000811015610fc057611291916001820181556104f1565b9190916112ec5760208173ffffffffffffffffffffffffffffffffffffffff600193356112bd816101f4565b167fffffffffffffffffffffffff00000000000000000000000000000000000000008554161784550135910155565b7f4e487b71000000000000000000000000000000000000000000000000000000005f525f60045260245ffd5b90919260406060604084019373ffffffffffffffffffffffffffffffffffffffff80961681528360209560406020840152520194925f905b8382106113605750505050505090565b9091929394969583806001928a8935611378816101f4565b1681528885013585820152989998019796019493920190611350565b476001548110156113a25750565b6113ab90611bfa565b565b335f9081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156113e557565b6113ee33611ef2565b5f906113f8611e08565b91603061140484611e34565b53607861141084611e41565b5360415b600181116115045761150060486114ce856114a2886114338815611e8d565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152611473815180926020603789019101611d86565b84017f206973206d697373696e6720726f6c652000000000000000000000000000000060378201520190611da7565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610fe1565b6040519182917f08c379a000000000000000000000000000000000000000000000000000000000835260048301611dbe565b0390fd5b90600f811690601082101561050a577f303132333435363738396162636465660000000000000000000000000000000061154d921a6115438487611e51565b5360041c91611e62565b611414565b335f9081527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f60205260409020547f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299060ff16156115ad5750565b6115b633611ef2565b6115be611e08565b9160306115ca84611e34565b5360786115d684611e41565b5360415b600181116115f95761150060486114ce856114a2886114338815611e8d565b90600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611638921a6115438487611e51565b6115da565b805f525f60205260ff6116713360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b54161561167b5750565b61168433611ef2565b61168c611e08565b91603061169884611e34565b5360786116a484611e41565b5360415b600181116116c75761150060486114ce856114a2886114338815611e8d565b90600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611706921a6115438487611e51565b6116a8565b805f525f60205260ff61173f8360405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b5416611749575050565b805f525f60205261177b8260405f209073ffffffffffffffffffffffffffffffffffffffff165f5260205260405f2090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4565b604051906113ab82610fc5565b3d15611845573d9067ffffffffffffffff8211610fc0576040519161183a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610fe1565b82523d5f602084013e565b606090565b908160209103126101f0575180151581036101f05790565b919091803b15611935576040517fa9059cbb000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff909416602482015260448101929092525f92839283906118cf81606481016114a2565b51925af16118db6117ed565b901561190b578051806118ec575050565b8160208061190193611905950101910161184a565b1590565b61190b57565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9091925f808080878761197196f11590565b61197a57505050565b73ffffffffffffffffffffffffffffffffffffffff1691823b156101f057604051927fd0e30db00000000000000000000000000000000000000000000000000000000084525f8460048185855af19283156103b657611a3594602094611a71575b505f6040518096819582947fa9059cbb000000000000000000000000000000000000000000000000000000008452600484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03925af180156103b657611a465750565b611a679060203d602011611a6a575b611a5f8183610fe1565b81019061184a565b50565b503d611a55565b80611a7e611a8492610fac565b806106df565b5f6119db565b67ffffffffffffffff8111610fc05760051b60200190565b90611aac82611a8a565b604090611abc6040519182610fe1565b8381527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611aea8295611a8a565b01915f5b838110611afb5750505050565b6020908251611b0981610fc5565b5f8152825f81830152828601015201611aee565b90604051611b2a81610fc5565b60206001829473ffffffffffffffffffffffffffffffffffffffff81541684520154910152565b805182101561050a5760209160051b010190565b9081518082526020808093019301915f5b828110611b84575050505090565b8351805173ffffffffffffffffffffffffffffffffffffffff1686528201518583015260409094019392810192600101611b76565b60409073ffffffffffffffffffffffffffffffffffffffff611be694931681528160208201520190611b65565b90565b906020611be6928181520190611b65565b5f805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b549081611c2e575050565b611c3782611aa2565b917f00000000000000000000000042000000000000000000000000000000000000235f5b828110611c9757505050506110bf7f74e25dc4ff8b586f5de80652d544515aad542a49061c99fb77b2acff3583b7a19160405191829182611be9565b5f80526002602052611ccc610c97827fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b6104f1565b906020611cdf610cad82850151886111d5565b8015611d5c57611d1584610cec611d0c6001975173ffffffffffffffffffffffffffffffffffffffff1690565b845a918a61195f565b91611d3d611d216117e0565b73ffffffffffffffffffffffffffffffffffffffff9094168452565b820152611d4a8288611b51565b52611d558187611b51565b5001611c5b565b60046040517f29c54429000000000000000000000000000000000000000000000000000000008152fd5b5f5b838110611d975750505f910152565b8181015183820152602001611d88565b90611dba60209282815194859201611d86565b0190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60409360208452611e018151809281602088015260208888019101611d86565b0116010190565b604051906080820182811067ffffffffffffffff821117610fc057604052604282526060366020840137565b80511561050a5760200190565b80516001101561050a5760210190565b90815181101561050a570160200190565b80156111e8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b15611e9457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff821117610fc057604052602a825260403660208401376030611f2783611e34565b536078611f3383611e41565b536029905b60018211611f4b57611be6915015611e8d565b600f811690601082101561050a577f3031323334353637383961626364656600000000000000000000000000000000611f89921a6115438486611e51565b90611f3856fea2646970667358221220f228fbc2c086619e8e32ca931e436a5131f8a5b401543e968c09a88cd152646964736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000430000000000000000000000000000000000000200000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b000000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b000000000000000000000000042000000000000000000000000000000000000230000000000000000000000004200000000000000000000000000000000000022
-----Decoded View---------------
Arg [0] : blast (address): 0x4300000000000000000000000000000000000002
Arg [1] : owner (address): 0x73A13dC7039add774A636EC17646A56Cd2bbd0B0
Arg [2] : operator (address): 0x73A13dC7039add774A636EC17646A56Cd2bbd0B0
Arg [3] : weth (address): 0x4200000000000000000000000000000000000023
Arg [4] : usdb (address): 0x4200000000000000000000000000000000000022
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004300000000000000000000000000000000000002
Arg [1] : 00000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b0
Arg [2] : 00000000000000000000000073a13dc7039add774a636ec17646a56cd2bbd0b0
Arg [3] : 0000000000000000000000004200000000000000000000000000000000000023
Arg [4] : 0000000000000000000000004200000000000000000000000000000000000022
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.