More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,048 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Goldz | 16414521 | 641 days ago | IN | 0 ETH | 0.00122574 | ||||
Withdraw Goldz | 16414512 | 641 days ago | IN | 0 ETH | 0.0012212 | ||||
Claim | 16078649 | 688 days ago | IN | 0 ETH | 0.00075658 | ||||
Claim | 16038605 | 693 days ago | IN | 0 ETH | 0.00080556 | ||||
Claim | 16008006 | 697 days ago | IN | 0 ETH | 0.00115849 | ||||
Claim | 15998447 | 699 days ago | IN | 0 ETH | 0.00122516 | ||||
Claim | 15992069 | 700 days ago | IN | 0 ETH | 0.00238008 | ||||
Claim | 15991423 | 700 days ago | IN | 0 ETH | 0.00169972 | ||||
Claim | 15991080 | 700 days ago | IN | 0 ETH | 0.0012295 | ||||
Claim | 15990759 | 700 days ago | IN | 0 ETH | 0.00201588 | ||||
Claim | 15990480 | 700 days ago | IN | 0 ETH | 0.00098474 | ||||
Claim | 15989380 | 700 days ago | IN | 0 ETH | 0.00151028 | ||||
Claim | 15989026 | 700 days ago | IN | 0 ETH | 0.00084577 | ||||
Claim | 15985091 | 701 days ago | IN | 0 ETH | 0.00110855 | ||||
Claim | 15984595 | 701 days ago | IN | 0 ETH | 0.00148566 | ||||
Claim | 15981900 | 701 days ago | IN | 0 ETH | 0.00113595 | ||||
Claim | 15981829 | 701 days ago | IN | 0 ETH | 0.00086887 | ||||
Claim | 15980663 | 701 days ago | IN | 0 ETH | 0.0011208 | ||||
Claim | 15977171 | 702 days ago | IN | 0 ETH | 0.00120966 | ||||
Claim | 15970192 | 703 days ago | IN | 0 ETH | 0.00163989 | ||||
Claim | 15967834 | 703 days ago | IN | 0 ETH | 0.00083785 | ||||
Claim | 15966058 | 703 days ago | IN | 0 ETH | 0.00082392 | ||||
Claim | 15966049 | 703 days ago | IN | 0 ETH | 0.00131256 | ||||
Claim | 15963054 | 704 days ago | IN | 0 ETH | 0.00199211 | ||||
Claim | 15959710 | 704 days ago | IN | 0 ETH | 0.00147106 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GoldzRewardsV3
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract GoldzRewardsV3 is EIP712, Ownable { IERC20 goldz = IERC20(0x7bE647634A942e73F8492d15Ae492D867Ce5245c); mapping(address => uint) public accountToNonce; mapping(address => uint) public accountToLastWithdrawTimestamp; mapping(address => uint) public accountToDepositedAmount; address _signerAddress; event Withdraw(uint amount, uint nonce, address receiver); constructor() EIP712("GoldzRewards", "3.0.0") { _signerAddress = 0x42bC5465F5b5D4BAa633550e205A1d7D81e6cACf; } function deposit(uint amount) external { require(amount > 0, "depositing 0 golds lol"); goldz.transferFrom(msg.sender, address(this), amount); accountToDepositedAmount[msg.sender] += amount; } function depositedAmountOf(address userAddress) public view returns (uint) { return accountToDepositedAmount[userAddress]; } function claim(uint amount, uint deadline, bytes calldata signature) external { require(amount > 0, "you have nothing to withdraw, do not lose your gas"); require(_signerAddress == recoverAddress(msg.sender, amount, accountToNonce[msg.sender], deadline, signature), "invalid signature"); require(deadline > block.timestamp, "signature expired"); goldz.transfer(msg.sender, amount); emit Withdraw(amount, accountToNonce[msg.sender], msg.sender); accountToLastWithdrawTimestamp[msg.sender] = block.timestamp; accountToNonce[msg.sender]++; } function _hash(address account, uint amount, uint nonce, uint deadline) internal view returns (bytes32) { return _hashTypedDataV4( keccak256( abi.encode( keccak256("Withdraw(uint256 amount,address account,uint256 nonce,uint256 deadline)"), amount, account, nonce, deadline ) ) ); } function recoverAddress(address account, uint amount, uint nonce, uint deadline, bytes calldata signature) public view returns(address) { return ECDSA.recover(_hash(account, amount, nonce, deadline), signature); } function setSignerAddress(address signerAddress) external onlyOwner { _signerAddress = signerAddress; } function withdrawGoldz() external onlyOwner { uint amount = goldz.balanceOf(address(this)); goldz.transfer(msg.sender, amount); } function withdrawGoldz(uint amount) external onlyOwner { goldz.transfer(msg.sender, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountToDepositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountToLastWithdrawTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountToNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"depositedAmountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawGoldz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawGoldz","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610140604052600180546001600160a01b031916737be647634a942e73f8492d15ae492d867ce5245c17905534801561003757600080fd5b50604080518082018252600c81526b476f6c647a5265776172647360a01b6020808301918252835180850190945260058452640332e302e360dc1b908401528151902060e08190527fd7a1ce683065975771bedf401ecab037f4f4c62cc51fefdc8b39dd246ff0343a6101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61011d8184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6080523060601b60c0526101205250610140925061013b9150503390565b61016b565b600580546001600160a01b0319167342bc5465f5b5d4baa633550e205a1d7d81e6cacf1790556101bb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60805160a05160c05160601c60e051610100516101205161105f61020d6000396000610c4401526000610c9301526000610c6e01526000610bc701526000610bf101526000610c1b015261105f6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638f1139491161008c578063a9a02cce11610066578063a9a02cce146101bb578063b6b55f25146101ce578063f2fde38b146101e1578063f8d60d43146101f457600080fd5b80638f1139491461014d578063a377ab5e1461017b578063a586ec411461019b57600080fd5b8063046dc166146100d4578063511387b2146100e95780635eddd157146100f1578063653b803714610104578063715018a6146101345780638da5cb5b1461013c575b600080fd5b6100e76100e2366004610e5b565b61021d565b005b6100e7610272565b6100e76100ff366004610f42565b6103a2565b610117610112366004610e7d565b6105c7565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e761061f565b6000546001600160a01b0316610117565b61016d61015b366004610e5b565b60046020526000908152604090205481565b60405190815260200161012b565b61016d610189366004610e5b565b60036020526000908152604090205481565b61016d6101a9366004610e5b565b60026020526000908152604090205481565b6100e76101c9366004610f10565b610655565b6100e76101dc366004610f10565b6106b6565b6100e76101ef366004610e5b565b6107b1565b61016d610202366004610e5b565b6001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146102505760405162461bcd60e51b815260040161024790610f95565b60405180910390fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461029c5760405162461bcd60e51b815260040161024790610f95565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156102e057600080fd5b505afa1580156102f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103189190610f29565b60015460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044015b602060405180830381600087803b15801561036657600080fd5b505af115801561037a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039e9190610eee565b5050565b6000841161040d5760405162461bcd60e51b815260206004820152603260248201527f796f752068617665206e6f7468696e6720746f2077697468647261772c20646f604482015271206e6f74206c6f736520796f75722067617360701b6064820152608401610247565b3360008181526002602052604090205461042c919086908686866105c7565b6005546001600160a01b0390811691161461047d5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610247565b4283116104c05760405162461bcd60e51b81526020600482015260116024820152701cda59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610247565b60015460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561050c57600080fd5b505af1158015610520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105449190610eee565b50336000818152600260209081526040918290205482518881529182015280820192909252517f71ef96c43343734b1d843bb85d52ef329f5e9143e4d35827771e3b0dd90c5f849181900360600190a1336000908152600360209081526040808320429055600290915281208054916105bc83610fe2565b919050555050505050565b60006106146105d88888888861084c565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506108c792505050565b979650505050505050565b6000546001600160a01b031633146106495760405162461bcd60e51b815260040161024790610f95565b61065360006108eb565b565b6000546001600160a01b0316331461067f5760405162461bcd60e51b815260040161024790610f95565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb9060440161034c565b600081116106ff5760405162461bcd60e51b815260206004820152601660248201527519195c1bdcda5d1a5b99c80c0819dbdb191cc81b1bdb60521b6044820152606401610247565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561075157600080fd5b505af1158015610765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107899190610eee565b5033600090815260046020526040812080548392906107a9908490610fca565b909155505050565b6000546001600160a01b031633146107db5760405162461bcd60e51b815260040161024790610f95565b6001600160a01b0381166108405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610247565b610849816108eb565b50565b604080517fa976f5d82912582b1a7fb12ec4c3ebb579368c0d2456b5ede05358ac272227fb60208201529081018490526001600160a01b03851660608201526080810183905260a081018290526000906108be9060c0016040516020818303038152906040528051906020012061093b565b95945050505050565b60008060006108d6858561098f565b915091506108e3816109ff565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610989610948610bba565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b6000808251604114156109c65760208301516040840151606085015160001a6109ba87828585610ce1565b945094505050506109f8565b8251604014156109f057602083015160408401516109e5868383610dce565b9350935050506109f8565b506000905060025b9250929050565b6000816004811115610a1357610a13611013565b1415610a1c5750565b6001816004811115610a3057610a30611013565b1415610a7e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610247565b6002816004811115610a9257610a92611013565b1415610ae05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610247565b6003816004811115610af457610af4611013565b1415610b4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610247565b6004816004811115610b6157610b61611013565b14156108495760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610247565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610c1357507f000000000000000000000000000000000000000000000000000000000000000046145b15610c3d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d185750600090506003610dc5565b8460ff16601b14158015610d3057508460ff16601c14155b15610d415750600090506004610dc5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610d95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dbe57600060019250925050610dc5565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610def87828885610ce1565b935093505050935093915050565b80356001600160a01b0381168114610e1457600080fd5b919050565b60008083601f840112610e2b57600080fd5b50813567ffffffffffffffff811115610e4357600080fd5b6020830191508360208285010111156109f857600080fd5b600060208284031215610e6d57600080fd5b610e7682610dfd565b9392505050565b60008060008060008060a08789031215610e9657600080fd5b610e9f87610dfd565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff811115610ed057600080fd5b610edc89828a01610e19565b979a9699509497509295939492505050565b600060208284031215610f0057600080fd5b81518015158114610e7657600080fd5b600060208284031215610f2257600080fd5b5035919050565b600060208284031215610f3b57600080fd5b5051919050565b60008060008060608587031215610f5857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610f7d57600080fd5b610f8987828801610e19565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610fdd57610fdd610ffd565b500190565b6000600019821415610ff657610ff6610ffd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e55804703414bfddf5f98950f8a5acc635fdf2570f672201231077673aa149a364736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638f1139491161008c578063a9a02cce11610066578063a9a02cce146101bb578063b6b55f25146101ce578063f2fde38b146101e1578063f8d60d43146101f457600080fd5b80638f1139491461014d578063a377ab5e1461017b578063a586ec411461019b57600080fd5b8063046dc166146100d4578063511387b2146100e95780635eddd157146100f1578063653b803714610104578063715018a6146101345780638da5cb5b1461013c575b600080fd5b6100e76100e2366004610e5b565b61021d565b005b6100e7610272565b6100e76100ff366004610f42565b6103a2565b610117610112366004610e7d565b6105c7565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e761061f565b6000546001600160a01b0316610117565b61016d61015b366004610e5b565b60046020526000908152604090205481565b60405190815260200161012b565b61016d610189366004610e5b565b60036020526000908152604090205481565b61016d6101a9366004610e5b565b60026020526000908152604090205481565b6100e76101c9366004610f10565b610655565b6100e76101dc366004610f10565b6106b6565b6100e76101ef366004610e5b565b6107b1565b61016d610202366004610e5b565b6001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146102505760405162461bcd60e51b815260040161024790610f95565b60405180910390fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461029c5760405162461bcd60e51b815260040161024790610f95565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156102e057600080fd5b505afa1580156102f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103189190610f29565b60015460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb906044015b602060405180830381600087803b15801561036657600080fd5b505af115801561037a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039e9190610eee565b5050565b6000841161040d5760405162461bcd60e51b815260206004820152603260248201527f796f752068617665206e6f7468696e6720746f2077697468647261772c20646f604482015271206e6f74206c6f736520796f75722067617360701b6064820152608401610247565b3360008181526002602052604090205461042c919086908686866105c7565b6005546001600160a01b0390811691161461047d5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610247565b4283116104c05760405162461bcd60e51b81526020600482015260116024820152701cda59db985d1d5c9948195e1c1a5c9959607a1b6044820152606401610247565b60015460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561050c57600080fd5b505af1158015610520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105449190610eee565b50336000818152600260209081526040918290205482518881529182015280820192909252517f71ef96c43343734b1d843bb85d52ef329f5e9143e4d35827771e3b0dd90c5f849181900360600190a1336000908152600360209081526040808320429055600290915281208054916105bc83610fe2565b919050555050505050565b60006106146105d88888888861084c565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506108c792505050565b979650505050505050565b6000546001600160a01b031633146106495760405162461bcd60e51b815260040161024790610f95565b61065360006108eb565b565b6000546001600160a01b0316331461067f5760405162461bcd60e51b815260040161024790610f95565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb9060440161034c565b600081116106ff5760405162461bcd60e51b815260206004820152601660248201527519195c1bdcda5d1a5b99c80c0819dbdb191cc81b1bdb60521b6044820152606401610247565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561075157600080fd5b505af1158015610765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107899190610eee565b5033600090815260046020526040812080548392906107a9908490610fca565b909155505050565b6000546001600160a01b031633146107db5760405162461bcd60e51b815260040161024790610f95565b6001600160a01b0381166108405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610247565b610849816108eb565b50565b604080517fa976f5d82912582b1a7fb12ec4c3ebb579368c0d2456b5ede05358ac272227fb60208201529081018490526001600160a01b03851660608201526080810183905260a081018290526000906108be9060c0016040516020818303038152906040528051906020012061093b565b95945050505050565b60008060006108d6858561098f565b915091506108e3816109ff565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610989610948610bba565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b92915050565b6000808251604114156109c65760208301516040840151606085015160001a6109ba87828585610ce1565b945094505050506109f8565b8251604014156109f057602083015160408401516109e5868383610dce565b9350935050506109f8565b506000905060025b9250929050565b6000816004811115610a1357610a13611013565b1415610a1c5750565b6001816004811115610a3057610a30611013565b1415610a7e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610247565b6002816004811115610a9257610a92611013565b1415610ae05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610247565b6003816004811115610af457610af4611013565b1415610b4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610247565b6004816004811115610b6157610b61611013565b14156108495760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610247565b6000306001600160a01b037f00000000000000000000000039fbe39fbf836ef35408cf86da62f39257fa79da16148015610c1357507f000000000000000000000000000000000000000000000000000000000000000146145b15610c3d57507f0053e5841d2753be67d01b422200043fb0de58b45abf82ae7ada19509fe75ea590565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527ff146e0e8fbe42b37605e718eb089abb9b45dacbf201e3bd92164d8902698bb5c828401527fd7a1ce683065975771bedf401ecab037f4f4c62cc51fefdc8b39dd246ff0343a60608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610d185750600090506003610dc5565b8460ff16601b14158015610d3057508460ff16601c14155b15610d415750600090506004610dc5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610d95573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610dbe57600060019250925050610dc5565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610def87828885610ce1565b935093505050935093915050565b80356001600160a01b0381168114610e1457600080fd5b919050565b60008083601f840112610e2b57600080fd5b50813567ffffffffffffffff811115610e4357600080fd5b6020830191508360208285010111156109f857600080fd5b600060208284031215610e6d57600080fd5b610e7682610dfd565b9392505050565b60008060008060008060a08789031215610e9657600080fd5b610e9f87610dfd565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff811115610ed057600080fd5b610edc89828a01610e19565b979a9699509497509295939492505050565b600060208284031215610f0057600080fd5b81518015158114610e7657600080fd5b600060208284031215610f2257600080fd5b5035919050565b600060208284031215610f3b57600080fd5b5051919050565b60008060008060608587031215610f5857600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610f7d57600080fd5b610f8987828801610e19565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610fdd57610fdd610ffd565b500190565b6000600019821415610ff657610ff6610ffd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e55804703414bfddf5f98950f8a5acc635fdf2570f672201231077673aa149a364736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.