More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,093 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 59492100 | 2 hrs ago | IN | 0 ETH | 0.00000685 | ||||
Claim | 59473260 | 15 hrs ago | IN | 0 ETH | 0.00001548 | ||||
Claim | 59440666 | 37 hrs ago | IN | 0 ETH | 0.00000744 | ||||
Claim | 59429907 | 43 hrs ago | IN | 0 ETH | 0.00000585 | ||||
Claim | 59429536 | 43 hrs ago | IN | 0 ETH | 0.00000802 | ||||
Claim | 59423701 | 47 hrs ago | IN | 0 ETH | 0.00000674 | ||||
Claim | 59411405 | 2 days ago | IN | 0 ETH | 0.0000058 | ||||
Claim | 59410575 | 2 days ago | IN | 0 ETH | 0.00000631 | ||||
Claim | 59404915 | 2 days ago | IN | 0 ETH | 0.00000607 | ||||
Claim | 59400531 | 2 days ago | IN | 0 ETH | 0.00000696 | ||||
Claim | 59395306 | 2 days ago | IN | 0 ETH | 0.00000668 | ||||
Claim | 59391313 | 2 days ago | IN | 0 ETH | 0.00000669 | ||||
Claim | 59389696 | 2 days ago | IN | 0 ETH | 0.00000603 | ||||
Claim | 59377358 | 3 days ago | IN | 0 ETH | 0.00000665 | ||||
Claim | 59376389 | 3 days ago | IN | 0 ETH | 0.0000058 | ||||
Claim | 59373802 | 3 days ago | IN | 0 ETH | 0.00000672 | ||||
Claim | 59339598 | 4 days ago | IN | 0 ETH | 0.00000779 | ||||
Claim | 59285465 | 5 days ago | IN | 0 ETH | 0.00000911 | ||||
Claim | 59283450 | 5 days ago | IN | 0 ETH | 0.00000954 | ||||
Claim | 59268982 | 5 days ago | IN | 0 ETH | 0.00000818 | ||||
Claim | 59265158 | 6 days ago | IN | 0 ETH | 0.00000844 | ||||
Claim | 59255114 | 6 days ago | IN | 0 ETH | 0.00000672 | ||||
Claim | 59253029 | 6 days ago | IN | 0 ETH | 0.00000672 | ||||
Claim | 59251126 | 6 days ago | IN | 0 ETH | 0.00000724 | ||||
Claim | 59244928 | 6 days ago | IN | 0 ETH | 0.00000868 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
39813364 | 274 days ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
ZFSwap2EarnRewarder
Compiler Version
v0.8.23+commit.f704f362
ZkSolc Version
v1.3.22
Contract Source Code (Solidity)
/** *Submitted for verification at era.zksync.network on 2024-07-23 */ // Sources flattened with hardhat v2.20.1 https://hardhat.org // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] // Original license: 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; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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); } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/security/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File contracts/rewarder/ZFSwap2EarnRewarder.sol // Original license: SPDX_License_Identifier: MIT pragma solidity 0.8.23; interface IZFToken is IERC20 { function mint(address account, uint256 amount) external; } contract ZFSwap2EarnRewarder is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; mapping(uint256 => bytes32) public merkleRoots; mapping(uint256 => mapping(address => bool)) public isClaimed; uint256 constant public MIN_CYCLE_PERIOD = 10 days; uint256 constant public MAX_CYCLE_PERIOD = 16 days; uint256 constant public MAX_REWARD_RATE = 2.114 ether; uint256 public currentCycle; uint256 public lastMintTime; uint256 public rewardRate = 2.0083 ether; // per second address public rewardToken; bool public isClaimEnabled; event Claimed(uint256 cycleId, address account, uint256 amount); event AddCycle(uint256 cycleId, uint256 cycleReward); event EditCycle(uint256 cycleId, bytes32 merkleRoot); event SetRewardRate(uint256 newRewardRate); constructor( address _rewardToken, uint256 _currentCycle ) { rewardToken = _rewardToken; currentCycle = _currentCycle; isClaimEnabled = true; } function addCycle(bytes32 merkleRoot, uint256 totalCycleReward) external onlyOwner { // Check reward mintable require((block.timestamp >= lastMintTime) && (block.timestamp - lastMintTime >= MIN_CYCLE_PERIOD), "addCycle: invalid mint time"); require(totalCycleReward <= rewardRate * MAX_CYCLE_PERIOD, "addCycle: invalid mint amount"); // Update rewarder info for next cycle merkleRoots[currentCycle] = merkleRoot; lastMintTime = block.timestamp; currentCycle = currentCycle + 1; isClaimEnabled = true; // Mint reward IZFToken(rewardToken).mint(address(this), totalCycleReward); emit AddCycle(currentCycle, totalCycleReward); } function endCycle() external onlyOwner { merkleRoots[currentCycle] = bytes32(0); isClaimEnabled = false; } function claim( address account, uint256 cycleId, uint256 amount, bytes32[] memory merkleProof ) external nonReentrant { require(isClaimEnabled, "claim: claim disabled"); require(cycleId == currentCycle, "claim: invalid cycle"); require(amount > 0, "claim: invalid amount"); require(!isClaimed[cycleId][account], "claim: Reward has already claimed"); require(_verifyClaim(account, cycleId, amount, merkleProof), "claim: Incorrect merkle proof"); isClaimed[cycleId][account] = true; IERC20(rewardToken).safeTransfer(account, amount); emit Claimed(cycleId, account, amount); } function verifyClaim( address account, uint256 cycleId, uint256 amount, bytes32[] memory merkleProof ) public view returns (bool valid) { return _verifyClaim(account, cycleId, amount, merkleProof); } function _verifyClaim( address _account, uint256 _cycle, uint256 _amount, bytes32[] memory _merkleProof ) private view returns (bool valid) { bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(_account, _amount)))); return MerkleProof.verify(_merkleProof, merkleRoots[_cycle], leaf); } function editCycle(uint256 cycleId, bytes32 merkleRoot) external onlyOwner { require(cycleId <= currentCycle, "editCycle: invalid cycleId"); if (cycleId == 0) cycleId = currentCycle; merkleRoots[cycleId] = merkleRoot; emit EditCycle(cycleId, merkleRoot); } function recoverToken(address token, uint256 amount) onlyOwner external { uint256 balance = IERC20(token).balanceOf(address(this)); if (amount > balance) amount = balance; IERC20(token).safeTransfer(msg.sender, amount); } function enableClaim(bool isEnabled) external onlyOwner { isClaimEnabled = isEnabled; } function setRewardRate(uint256 newRewardRate) external onlyOwner { require(newRewardRate <= MAX_REWARD_RATE, "setRewardRate: invalid reward rate"); rewardRate = newRewardRate; emit SetRewardRate(newRewardRate); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_currentCycle","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cycleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cycleReward","type":"uint256"}],"name":"AddCycle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cycleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cycleId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"EditCycle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRewardRate","type":"uint256"}],"name":"SetRewardRate","type":"event"},{"inputs":[],"name":"MAX_CYCLE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_CYCLE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"totalCycleReward","type":"uint256"}],"name":"addCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"cycleId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentCycle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cycleId","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"editCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"enableClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isClaimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"merkleRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRewardRate","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"cycleId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"verifyClaim","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010001fba73b1db36ddbb7c00c34bf42ba67b24ac1e436defd37f513902b6f480000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000004000000000000000000000000031c2c031fdc9d33e974f327ab0d9883eae06ca4a0000000000000000000000000000000000000000000000000000000000000015
Deployed Bytecode
0x00030000000000020006000000000002000000000301001900000060033002700000019b03300197000200000031035500010000000103550000000102200190000000360000c13d0000008002000039000000400020043f000000040430008c000002cd0000413d000000000401043b000000e004400270000001a50540009c000000850000a13d000001a60240009c000000c20000a13d000001a70240009c000000dc0000213d000001ab0240009c000001250000613d000001ac0240009c000001420000613d000001ad0240009c000002cd0000c13d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000200220008c000002cd0000413d0000000401100370000000000601043b0000019d0160009c000002cd0000213d000000000100041a0000019d021001970000000005000411000000000252004b000001d50000c13d000000000206004b000002550000c13d000001c401000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f000001c501000041000000c40010043f000001c601000041000001b50000013d0000000002000416000000000202004b000002cd0000c13d0000009f023000390000019c02200197000000400020043f0000001f0230018f0000000504300272000000480000613d00000000050000190000000506500210000000000761034f000000000707043b000000800660003900000000007604350000000105500039000000000645004b000000400000413d000000000502004b000000570000613d0000000504400210000000000141034f00000003022002100000008004400039000000000504043300000000052501cf000000000525022f000000000101043b0000010002200089000000000121022f00000000012101cf000000000151019f0000000000140435000000400130008c000002cd0000413d000000800400043d0000019d0140009c000002cd0000213d000000000200041a0000019e012001970000000006000411000000000161019f000000a00300043d000500000003001d000000000010041b0000019b010000410000000003000414000600000004001d0000019b0430009c0000000003018019000000c0013002100000019f011001c70000019d052001970000800d020000390000000303000039000001a0040000410665065b0000040f00000006040000290000000101200190000002cd0000613d0000000101000039000000000011041b000001a1010000410000000602000039000000000012041b0000000701000039000000000201041a00000004030000390000000505000029000000000053041b000001a202200197000000000224019f000001a3022001c7000000000021041b000000200100003900000100001004430000012000000443000001a401000041000006660001042e000001b40540009c000000cf0000213d000001bb0540009c000000e80000a13d000001bc0540009c000001530000613d000001bd0240009c000001820000613d000001be0240009c000002cd0000c13d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000400220008c000002cd0000413d0000002401100370000000000301043b000000000100041a0000019d011001970000000002000411000000000121004b000001d50000c13d000500000003001d0000000501000039000400000001001d000000000101041a000600000001001d000001d20100004100000000001004390000019b0100004100000000020004140000019b0320009c0000000002018019000000c001200210000001d3011001c70000800b02000039066506600000040f0000000102200190000003ba0000613d000000000101043b000000060110006c000002660000813d000000400100043d0000004402100039000001e003000041000000000032043500000024021000390000001b030000390000000000320435000001c40200004100000000002104350000000402100039000000200300003900000000003204350000019b020000410000019b0310009c00000000010280190000004001100210000001dd011001c70000066700010430000001ae0240009c000001030000a13d000001af0240009c0000019d0000613d000001b00240009c000001b80000613d000001b10140009c000002cd0000c13d0000000001000416000000000101004b000002cd0000c13d0000000401000039000001f10000013d000001b50240009c0000010c0000a13d000001b60240009c000001de0000613d000001b70240009c000001e30000613d000001b80140009c000002cd0000c13d0000000001000416000000000101004b000002cd0000c13d0000000601000039000001f10000013d000001a80140009c000001f30000613d000001a90140009c000001fc0000613d000001aa0140009c000002cd0000c13d0000000001000416000000000101004b000002cd0000c13d0000000701000039000000000101041a000002180000013d000001bf0240009c000002010000613d000001c00240009c000002cd0000c13d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000200220008c000002cd0000413d0000000401100370000000000101043b000000000201004b0000000002000019000000010200c039000000000221004b000002cd0000c13d000001a302000041000000000101004b0000000002006019000600000002001d066504b90000040f0000000701000039000000000201041a000001d50220019700000006022001af000002110000013d000001b20140009c000002140000613d000001b30140009c000002cd0000c13d0000000001000416000000000101004b000002cd0000c13d0000000501000039000001f10000013d000001b90140009c0000021a0000613d000001ba0140009c000002cd0000c13d0000000001000416000000000101004b000002cd0000c13d000000000100041a0000019d021001970000000005000411000000000252004b000001d50000c13d0000019e01100197000000000010041b0000019b0100004100000000020004140000019b0320009c0000000002018019000000c0012002100000019f011001c70000800d020000390000000303000039000001a0040000410000000006000019000002610000013d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000400220008c000002cd0000413d0000002402100370000000000302043b0000019d0230009c000002cd0000213d0000000401100370000000000101043b00000000001004350000000301000039000000200010043f0000004002000039000600000002001d0000000001000019000500000003001d066506450000040f00000005020000290000000000200435000000200010043f00000000010000190000000602000029066506450000040f000000000101041a000000ff01100190000001f90000013d0000000001000416000000000101004b000002cd0000c13d0000000001030019066504660000040f066504d00000040f000000000101004b0000000001000019000000010100c039000000400200043d00000000001204350000019b010000410000019b0320009c00000000020180190000004001200210000001c8011001c7000006660001042e0000000004000416000000000404004b000002cd0000c13d000000040430008a000000800440008c000002cd0000413d0000000404100370000000000a04043b0000019d04a0009c000002cd0000213d0000004404100370000000000b04043b0000002404100370000000000904043b0000006404100370000000000404043b000001da0540009c000002cd0000213d0000002305400039000001e506000041000000000735004b00000000070000190000000007068019000001e505500197000000000805004b0000000006008019000001e50550009c000000000607c019000000000506004b000002cd0000c13d0000000405400039000000000551034f000000000605043b000001e60560009c0000017c0000813d0000000505600210000000bf07500039000000200800008a000000000787016f000001da0870009c000002c70000a13d000001de0100004100000000001004350000004101000039000000040010043f000001df0100004100000667000104300000000002000416000000000202004b000002cd0000c13d000000040230008a000000400220008c000002cd0000413d0000002402100370000000000402043b0000000401100370000000000101043b000000000200041a0000019d022001970000000003000411000000000232004b000001d50000c13d0000000402000039000000000302041a000000000231004b000002210000a13d000001c401000041000000800010043f0000002001000039000000840010043f0000001a01000039000000a40010043f000001e401000041000001db0000013d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000200220008c000002cd0000413d0000000401100370000000000101043b000000000200041a0000019d022001970000000003000411000000000232004b000001d50000c13d000001cb0210009c000002480000413d000001c401000041000000800010043f0000002001000039000000840010043f0000002201000039000000a40010043f000001ce01000041000000c40010043f000001cf01000041000000e40010043f000001c70100004100000667000104300000000002000416000000000202004b000002cd0000c13d000000040230008a000000400220008c000002cd0000413d0000000402100370000000000202043b0000019d0320009c000002cd0000213d0000002401100370000000000301043b000000000100041a0000019d011001970000000005000411000000000151004b000001d50000c13d000001c901000041000000800010043f0000000001000410000000840010043f0000000001000414000000040420008c000002880000c13d000000000a0000310000002001a0008c00000000040a00190000002004008039000002b90000013d000001c401000041000000800010043f0000002001000039000000840010043f000000a40010043f000001e101000041000000c40010043f000001e20100004100000667000104300000000001000416000000000101004b000002cd0000c13d000001d0010000410000021e0000013d0000000002000416000000000202004b000002cd0000c13d000000040230008a000000200220008c000002cd0000413d0000000401100370000000000101043b00000000001004350000000201000039000000200010043f00000040020000390000000001000019066506450000040f000000000101041a0000021e0000013d0000000001000416000000000101004b000002cd0000c13d0000000701000039000000000101041a000001c3011001980000000001000019000000010100c0390000021e0000013d0000000001000416000000000101004b000002cd0000c13d000001c2010000410000021e0000013d0000000001000416000000000101004b000002cd0000c13d066504b90000040f0000000401000039000000000101041a00000000001004350000000201000039000000200010043f00000040020000390000000001000019066506450000040f000000000001041b0000000701000039000000000201041a000001d502200197000000000021041b0000000001000019000006660001042e0000000001000416000000000101004b000002cd0000c13d000000000100041a0000019d011001970000021e0000013d0000000001000416000000000101004b000002cd0000c13d000001d101000041000000800010043f000001c101000041000006660001042e000600000004001d000000000201004b000000000301c019000500000003001d00000000003004350000000201000039000000200010043f0000019b0300004100000000010004140000019b0210009c0000000001038019000000c001100210000001d4011001c70000801002000039066506600000040f0000000102200190000002cd0000613d000000000101043b0000000603000029000000000031041b000000400100043d000000200210003900000000003204350000000502000029000000000021043500000000020004140000019b0320009c0000019b0400004100000000020480190000019b0310009c00000000010480190000004001100210000000c002200210000000000112019f000001d4011001c70000800d020000390000000103000039000001e304000041000002540000013d0000000602000039000000000012041b000000800010043f0000019b0100004100000000020004140000019b0320009c0000000002018019000000c001200210000001cc011001c70000800d020000390000000103000039000001cd04000041000002610000013d0000019e01100197000000000161019f000000000010041b0000019b0100004100000000020004140000019b0320009c0000000002018019000000c0012002100000019f011001c70000800d020000390000000303000039000001a0040000410665065b0000040f0000000101200190000002cd0000613d0000000001000019000006660001042e000001d20100004100000000001004390000019b0300004100000000010004140000019b0210009c0000000001038019000000c001100210000001d3011001c70000800b02000039066506600000040f0000000102200190000003ba0000613d000000000101043b000300000001001d000001d201000041000000000010043900000000010004140000019b0210009c0000019b01008041000000c001100210000001d3011001c70000800b02000039066506600000040f0000000102200190000003ba0000613d0000000303000029000000060230006a000000000101043b000000000112004b000003060000a13d000001de01000041000000000010043500000011010000390000017f0000013d000400000005001d000500000003001d0000019b040000410000019b0310009c0000000001048019000000c001100210000001ca011001c7000600000002001d066506600000040f000000000301001900000060033002700000019b0a3001970000002004a0008c00000000040a001900000020040080390000001f0540018f0000000506400272000002a30000613d00000000070000190000000508700210000000000981034f000000000909043b000000800880003900000000009804350000000107700039000000000867004b0000029b0000413d000000000705004b000002b20000613d0000000506600210000000000761034f00000003055002100000008006600039000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000000000a001f00020000000103550000000102200190000000060200002900000005030000290000000405000029000002cf0000613d0000001f01400039000000600110018f00000080011001bf000000400010043f0000002001a0008c000002cd0000413d000000800100043d000000000413004b0000000003018019000000000102001900000000020500190665054e0000040f0000000001000019000006660001042e000000400070043f000000800060043f00000024044000390000000005450019000000000335004b000002f20000a13d00000000010000190000066700010430000000400200043d0000001f04a0018f0000000505a00272000002dc0000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000002d40000413d000000000604004b000002eb0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001504350000019b010000410000019b0420009c000000000201801900000040012002100000006002a00210000000000121019f0000066700010430000000000306004b000002fb0000613d000000000341034f000000000303043b000000200220003900000000003204350000002004400039000000000354004b000002f40000413d0000000101000039000000000201041a000000020220008c000003190000c13d000000400100043d0000004402100039000001f003000041000000000032043500000024021000390000001f03000039000000b60000013d000001d10120009c000000b00000413d0000000601000039000000000201041a000001c2312000d1000000000302004b000003100000613d00000000322100d9000001c20220009c000002840000c13d000000050110006b0000033b0000a13d000000400100043d0000004402100039000001dc03000041000000000032043500000024021000390000001d03000039000000b60000013d00060000000b001d00050000000a001d0000000202000039000000000021041b0000000701000039000400000001001d000000000101041a000001c301100198000003290000c13d000000400100043d0000004402100039000001ef03000041000000000032043500000024021000390000001503000039000000b60000013d0000000401000039000000000101041a000300000009001d000000000119004b000003340000c13d000000060100006b000003bb0000c13d000000400100043d0000004402100039000001ee03000041000003250000013d000000400100043d0000004402100039000001e703000041000000000032043500000024021000390000001403000039000000b60000013d0000000402000039000000000102041a00000000001004350000000201000039000000200010043f000300000002001d0000000101200367000000000101043b000600000001001d0000019b0300004100000000010004140000019b0210009c0000000001038019000000c001100210000001d4011001c70000801002000039066506600000040f0000000102200190000002cd0000613d000000000101043b0000000602000029000000000021041b000001d201000041000000000010043900000000010004140000019b0210009c0000019b01008041000000c001100210000001d3011001c70000800b02000039066506600000040f0000000102200190000003ba0000613d000000000101043b0000000402000029000000000012041b0000000301000029000000000101041a000000010200008a000000000221004b000002840000613d00000001011000390000000302000029000000000012041b0000000701000039000000000201041a000001d503200197000001a3033001c7000000000031041b000001d60100004100000000001004390000019d01200197000600000001001d00000004001004430000019b0100004100000000020004140000019b0320009c0000000002018019000000c001200210000001d7011001c70000800202000039066506600000040f0000000102200190000003ba0000613d000000000101043b000000000101004b000002cd0000613d000000400300043d000000240130003900000005020000290000000000210435000001d8010000410000000001130436000200000001001d00000000010004100000019d01100197000400000003001d0000000402300039000000000012043500000000010004140000000602000029000000040220008c000003a10000613d0000019b020000410000019b0310009c000000000102801900000004040000290000019b0340009c00000000020440190000004002200210000000c001100210000000000121019f000001d9011001c700000006020000290665065b0000040f000000000301001900000060033002700000019b0030019d0000019b0330019700020000000103550000000102200190000004430000613d0000000401000029000001da0110009c0000017c0000213d0000000404000029000000400040043f0000000301000029000000000101041a00000005020000290000000203000029000000000023043500000000001404350000019b0100004100000000020004140000019b0320009c00000000020180190000019b0340009c00000000040180190000004001400210000000c002200210000000000112019f000001d4011001c70000800d020000390000000103000039000001db04000041000002540000013d000000000001042f000000030100002900000000001004350000000301000039000200000001001d000000200010043f0000019b0300004100000000010004140000019b0210009c0000000001038019000000c001100210000001d4011001c70000801002000039066506600000040f00000001022001900000000502000029000002cd0000613d000000000101043b0000019d02200197000100000002001d0000000000200435000000200010043f00000000010004140000019b0210009c0000019b01008041000000c001100210000001d4011001c70000801002000039066506600000040f0000000102200190000002cd0000613d000000000101043b000000000101041a000000ff01100190000003e80000c13d0000008004000039000000050100002900000003020000290000000603000029066504d00000040f000000000101004b000003fd0000c13d000000400100043d0000004402100039000001ed03000041000003150000013d000000400100043d0000006402100039000001e80300004100000000003204350000004402100039000001e9030000410000000000320435000000240210003900000021030000390000000000320435000001c40200004100000000002104350000000402100039000000200300003900000000003204350000019b020000410000019b0310009c00000000010280190000004001100210000001ea011001c70000066700010430000000030100002900000000001004350000000201000029000000200010043f0000019b0300004100000000010004140000019b0210009c0000000001038019000000c001100210000001d4011001c70000801002000039066506600000040f0000000102200190000002cd0000613d000000000101043b00000001020000290000000000200435000000200010043f00000000010004140000019b0210009c0000019b01008041000000c001100210000001d4011001c70000801002000039066506600000040f000000060300002900000005050000290000000102200190000002cd0000613d000000000101043b000000000201041a000001000600008a000000000262016f00000001022001bf000000000021041b0000000401000029000000000101041a0000019d0110019700000000020500190665054e0000040f000000400100043d000000400210003900000006030000290000000000320435000000200210003900000001030000290000000000320435000000030200002900000000002104350000019b0200004100000000030004140000019b0430009c00000000030280190000019b0410009c00000000010280190000004001100210000000c002300210000000000112019f000001eb011001c70000800d020000390000000103000039000600000003001d000001ec040000410665065b0000040f0000000101200190000002cd0000613d0000000601000029000000000011041b0000000001000019000006660001042e000000400200043d0000001f0430018f0000000505300272000004500000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000004480000413d000000000604004b0000045f0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001504350000019b010000410000019b0420009c000000000201801900000040012002100000006002300210000000000121019f00000667000104300000000005010019000000040150008a000001e5020000410000007f0310008c00000000030000190000000003022019000001e501100197000000000401004b0000000002008019000001e50110009c000000000203c019000000000102004b000004b10000613d00000001060003670000000401600370000000000101043b0000019d0210009c000004b10000213d0000004402600370000000000302043b0000002402600370000000000202043b0000006404600370000000000704043b000001da0470009c000004b10000213d0000002304700039000001e508000041000000000954004b00000000090000190000000009088019000001e50a500197000001e504400197000000000ba4004b00000000080080190000000004a4013f000001e50440009c000000000809c019000000000408004b000004b10000c13d0000000404700039000000000446034f000000000804043b000001e60480009c000004b30000813d00000005098002100000003f04900039000000200a00008a000000000aa4016f000000400400043d000000000aa40019000000000b4a004b000000000b000019000000010b004039000001da0ca0009c000004b30000213d000000010bb00190000004b30000c13d0000004000a0043f000000000084043500000024077000390000000009970019000000000559004b000004b10000213d000000000508004b000004b00000613d0000000005040019000000000876034f000000000808043b000000200550003900000000008504350000002007700039000000000897004b000004a90000413d000000000001042d00000000010000190000066700010430000001de0100004100000000001004350000004101000039000000040010043f000001df010000410000066700010430000000000100041a0000019d011001970000000002000411000000000121004b000004bf0000c13d000000000001042d000000400100043d0000004402100039000001e1030000410000000000320435000001c4020000410000000000210435000000240210003900000020030000390000000000320435000000040210003900000000003204350000019b020000410000019b0310009c00000000010280190000004001100210000001dd011001c700000667000104300006000000000002000500000004001d000600000002001d000000400200043d00000040042000390000000000340435000000400300003900000000033204360000019d011001970000000000130435000001f10120009c000005480000813d0000006001200039000000400010043f0000019b010000410000019b0430009c0000000003018019000000400330021000000000020204330000019b0420009c00000000020180190000006002200210000000000232019f00000000030004140000019b0430009c0000000003018019000000c001300210000000000121019f0000019f011001c70000801002000039066506600000040f0000000102200190000005460000613d000000000301043b000000400100043d000000200200003900000000022104360000000000320435000001f20310009c000005480000213d0000004003100039000000400030043f0000019b040000410000019b0320009c0000000002048019000000400220021000000000010104330000019b0310009c00000000010480190000006001100210000000000121019f00000000020004140000019b0320009c0000000002048019000000c002200210000000000112019f0000019f011001c70000801002000039066506600000040f0000000102200190000005460000613d000000000101043b000200000001001d000000060100002900000000001004350000000201000039000000200010043f00000000010004140000019b0210009c0000019b01008041000000c001100210000001d4011001c70000801002000039066506600000040f0000000102200190000005460000613d000000000101043b000000000101041a000100000001001d00000005010000290000000021010434000400000002001d000000000101004b0000000203000029000005420000613d000380100000003d0000000002000019000600000002001d000000050120021000000004011000290000000001010433000000000213004b000005300000813d0000000000300435000000200010043f000005320000013d0000000000100435000000200030043f00000000010004140000019b0210009c0000019b01008041000000c001100210000001d4011001c70000000302000029066506600000040f0000000102200190000005460000613d000000000301043b0000000602000029000000010220003900000005010000290000000001010433000000000112004b000005270000413d000000010130006c00000000010000190000000101006039000000000001042d00000000010000190000066700010430000001de0100004100000000001004350000004101000039000000040010043f000001df0100004100000667000104300003000000000002000000400400043d000000440540003900000000003504350000002003400039000001f30500004100000000005304350000019d022001970000002405400039000000000025043500000044020000390000000000240435000001f40240009c000005e50000813d00000080084000390000019d09100197000000400080043f000001f20180009c000005e50000213d000000c001400039000000400010043f00000020050000390000000000580435000000a001400039000001f502000041000000000021043500000000020404330000000001000414000000040490008c000300000005001d000005700000c13d00000001020000390000000001000031000005870000013d0000019b040000410000019b0530009c000000000304801900000040033002100000019b0520009c00000000020480190000006002200210000000000232019f0000019b0310009c0000000001048019000000c001100210000000000112019f0000000002090019000200000008001d000100000009001d0665065b0000040f00000001090000290000000208000029000000010220018f000200000001035500000060011002700000019b0010019d0000019b01100197000000600b000039000000800a000039000000000301004b000005b50000613d0000003f03100039000000200400008a000000000343016f000000400b00043d00000000033b00190000000004b3004b00000000040000190000000104004039000001da0530009c000005e50000213d0000000104400190000005e50000c13d000000400030043f0000001f0310018f000000000a1b043600000002040003670000000501100272000005a60000613d0000000005000019000000050650021000000000076a0019000000000664034f000000000606043b00000000006704350000000105500039000000000615004b0000059e0000413d000000000503004b000005b50000613d0000000501100210000000000414034f00000000011a00190000000303300210000000000501043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f000000000031043500000000010b0433000000000202004b000005ed0000613d000000000201004b000005d10000c13d00020000000b001d00010000000a001d000001d601000041000000000010043900000004009004430000019b0100004100000000020004140000019b0320009c0000000002018019000000c001200210000001d7011001c70000800202000039066506600000040f0000000102200190000006310000613d000000000101043b000000000101004b0000000201000029000006320000613d0000000001010433000000000201004b000000010a000029000005e40000613d000001e502000041000000200310008c00000000030000190000000003024019000001e501100197000000000401004b000000000200a019000001e50110009c000000000203c019000000000102004b000005eb0000c13d00000000010a0433000000000201004b0000000002000019000000010200c039000000000221004b000005eb0000c13d000000000101004b000006130000613d000000000001042d000001de0100004100000000001004350000004101000039000000040010043f000001df01000041000006670001043000000000010000190000066700010430000000000201004b000006280000c13d000000400100043d000001c402000041000000000021043500000004021000390000000303000029000000000032043500000000070800190000000002070433000000240310003900000000002304350000004403100039000000000402004b000006040000613d000000000400001900000000053400190000002004400039000000000674001900000000060604330000000000650435000000000524004b000005fd0000413d0000001f04200039000000200500008a000000000454016f0000000002320019000000000002043500000044024000390000019b030000410000019b0420009c00000000020380190000019b0410009c000000000103801900000040011002100000006002200210000000000112019f0000066700010430000000400100043d0000006402100039000001f60300004100000000003204350000004402100039000001f703000041000000000032043500000024021000390000002a030000390000000000320435000001c40200004100000000002104350000000402100039000000030300002900000000003204350000019b020000410000019b0310009c00000000010280190000004001100210000001ea011001c700000667000104300000019b020000410000019b0310009c00000000010280190000019b03a0009c000000000a0280190000004002a002100000006001100210000000000121019f0000066700010430000000000001042f000000400100043d0000004402100039000001f803000041000000000032043500000024021000390000001d030000390000000000320435000001c40200004100000000002104350000000402100039000000030300002900000000003204350000019b020000410000019b0310009c00000000010280190000004001100210000001dd011001c70000066700010430000000000001042f0000019b030000410000019b0410009c000000000103801900000040011002100000019b0420009c00000000020380190000006002200210000000000112019f00000000020004140000019b0420009c0000000002038019000000c002200210000000000112019f0000019f011001c70000801002000039066506600000040f0000000102200190000006590000613d000000000101043b000000000001042d000000000100001900000667000104300000065e002104210000000102000039000000000001042d0000000002000019000000000001042d00000663002104230000000102000039000000000001042d0000000002000019000000000001042d0000066500000432000006660001042e0000066700010430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000000000000000000000000000000000000000000001bdeea35a66ac000ffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000008da5cb5a00000000000000000000000000000000000000000000000000000000d2ef079400000000000000000000000000000000000000000000000000000000f30e5b2500000000000000000000000000000000000000000000000000000000f30e5b2600000000000000000000000000000000000000000000000000000000f4e5f7d600000000000000000000000000000000000000000000000000000000f7c618c100000000000000000000000000000000000000000000000000000000d2ef079500000000000000000000000000000000000000000000000000000000eb0d07f500000000000000000000000000000000000000000000000000000000f2fde38b000000000000000000000000000000000000000000000000000000009e447fc5000000000000000000000000000000000000000000000000000000009e447fc600000000000000000000000000000000000000000000000000000000b29a814000000000000000000000000000000000000000000000000000000000bab2f552000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000009d4635200000000000000000000000000000000000000000000000000000000053ebc5f600000000000000000000000000000000000000000000000000000000718dc3c200000000000000000000000000000000000000000000000000000000718dc3c30000000000000000000000000000000000000000000000000000000071c5ecb1000000000000000000000000000000000000000000000000000000007b0a47ee0000000000000000000000000000000000000000000000000000000053ebc5f700000000000000000000000000000000000000000000000000000000715018a600000000000000000000000000000000000000000000000000000000172bd6dd00000000000000000000000000000000000000000000000000000000172bd6de0000000000000000000000000000000000000000000000000000000039a4d1c700000000000000000000000000000000000000000000000000000000462e899600000000000000000000000000000000000000000000000000000000084a4faf000000000000000000000000000000000000000000000000000000000ccf0664000000000000000000000000000000000000002000000080000000000000000000000000000000000000000000000000000000000000000000000000001518000000000000000000000000ff000000000000000000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000800000000000000000000000000000000000000000000000000000002000000000000000000000000070a082310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000008000000000000000000000000000000000000000000000000000000000000000001d566fccaf2d000102000000000000000000000000000000000000200000008000000000000000001946fb78c7ca778b54d82cabaac5ba67cf446f58d0ff1f8ceaebb6150e54e44f736574526577617264526174653a20696e76616c69642072657761726420726174650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d566fccaf2d000000000000000000000000000000000000000000000000000000000000000d2f00796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d9553913202000002000000000000000000000000000000040000000000000000000000000200000000000000000000000000000000000040000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83020000020000000000000000000000000000002400000000000000000000000040c10f19000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff13de6e10f43620f2d161a33ae3df3b469a8b4d9c2bfbd66a48df9b49cfa2512d6164644379636c653a20696e76616c6964206d696e7420616d6f756e7400000000000000000000000000000000000000000000640000000000000000000000004e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000006164644379636c653a20696e76616c6964206d696e742074696d6500000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000640000008000000000000000004fa8c7024a70c04bb419a64892dd0e3df99229f239621b40473e0e92dc2e2132656469744379636c653a20696e76616c6964206379636c65496400000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000636c61696d3a20696e76616c6964206379636c650000000000000000000000006400000000000000000000000000000000000000000000000000000000000000636c61696d3a205265776172642068617320616c726561647920636c61696d65000000000000000000000000000000000000008400000000000000000000000002000000000000000000000000000000000000600000000000000000000000004ec90e965519d92681267467f775ada5bd214aa92c0dc93d90a5e880ce9ed026636c61696d3a20496e636f7272656374206d65726b6c652070726f6f66000000636c61696d3a20696e76616c696420616d6f756e740000000000000000000000636c61696d3a20636c61696d2064697361626c656400000000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c00000000000000000000000000000000000000000000000000ffffffffffffffa0000000000000000000000000000000000000000000000000ffffffffffffffbfa9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff805361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000000000000000000000000000000000000000000000000000000000000000000000e03b2a51757523e53ebc3408234f124ab8ea9f62dcaca079632c51974d335f3
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000031c2c031fdc9d33e974f327ab0d9883eae06ca4a0000000000000000000000000000000000000000000000000000000000000015
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x31C2c031fDc9d33e974f327Ab0d9883Eae06cA4A
Arg [1] : _currentCycle (uint256): 21
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000031c2c031fdc9d33e974f327ab0d9883eae06ca4a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000015
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ZKSYNC | 100.00% | $0.002157 | 2,055,959.8724 | $4,434.09 |
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.