Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 444 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19726414 | 224 days ago | IN | 0 ETH | 0.00050856 | ||||
Withdraw | 19726403 | 224 days ago | IN | 0 ETH | 0.00097961 | ||||
Withdraw | 16626163 | 659 days ago | IN | 0 ETH | 0.00061342 | ||||
Withdraw | 16626157 | 659 days ago | IN | 0 ETH | 0.00119857 | ||||
Withdraw | 16626145 | 659 days ago | IN | 0 ETH | 0.00054922 | ||||
Deposit | 16623729 | 659 days ago | IN | 0.018402 ETH | 0.00101152 | ||||
Deposit | 16623723 | 659 days ago | IN | 0.072809 ETH | 0.00101433 | ||||
Deposit | 16623712 | 659 days ago | IN | 0.364034 ETH | 0.00092065 | ||||
Deposit | 16623708 | 659 days ago | IN | 0.363939 ETH | 0.00093288 | ||||
Deposit | 16623701 | 659 days ago | IN | 0.363939 ETH | 0.0010102 | ||||
Deposit | 16623694 | 659 days ago | IN | 1.818158 ETH | 0.00108415 | ||||
Deposit | 16623690 | 659 days ago | IN | 1.818703 ETH | 0.00094119 | ||||
Deposit | 16623687 | 659 days ago | IN | 0.399598 ETH | 0.00097539 | ||||
Deposit | 16623686 | 659 days ago | IN | 1.818703 ETH | 0.00089937 | ||||
Deposit | 16623681 | 659 days ago | IN | 1.818073 ETH | 0.00096031 | ||||
Deposit | 16623677 | 659 days ago | IN | 1.81817 ETH | 0.00090604 | ||||
Deposit | 16623607 | 659 days ago | IN | 0.072699 ETH | 0.00137252 | ||||
Deposit | 16623593 | 659 days ago | IN | 0.055121 ETH | 0.00198873 | ||||
Deposit | 16623591 | 659 days ago | IN | 0.075093 ETH | 0.00237263 | ||||
Deposit | 16623560 | 659 days ago | IN | 0.00387 ETH | 0.00106544 | ||||
Deposit | 16623549 | 659 days ago | IN | 0.267758 ETH | 0.00095054 | ||||
Deposit | 16623508 | 659 days ago | IN | 0.362865 ETH | 0.00095249 | ||||
Deposit | 16623494 | 659 days ago | IN | 0.362817 ETH | 0.00094536 | ||||
Deposit | 16623473 | 659 days ago | IN | 1.813712 ETH | 0.00090995 | ||||
Deposit | 16623465 | 659 days ago | IN | 1.809205 ETH | 0.00099664 |
Loading...
Loading
Contract Name:
PaymentCollector
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract PaymentCollector is Ownable { using SafeERC20 for IERC20; mapping(uint => bool) public transactionProcessed; address public signer; event Deposit(uint indexed offchainId, address sender, address token, uint amount); constructor(address _signer) { require(_signer != address(0), "Non zero address!"); signer = _signer; } function deposit( uint offchainId, uint amount, address token, uint timestamp, bytes memory signature ) external payable { require( validateSignature(offchainId, amount, token, timestamp, signature), "Invalid signature." ); require(!transactionProcessed[offchainId], "Transaction already processed."); require(timestamp > block.timestamp, "Signature expired."); transactionProcessed[offchainId] = true; if (token == address(0)) { require(msg.value >= amount, "Insufficient amount."); } else { IERC20(token).safeTransferFrom(msg.sender, address(this), amount); } emit Deposit(offchainId, msg.sender, token, amount); } function withdraw(address token) external onlyOwner { if (token == address(0)) { (bool success, ) = owner().call{value: address(this).balance}(""); require(success, "receiver rejected transfer"); } else { IERC20(token).safeTransfer(owner(), IERC20(token).balanceOf(address(this))); } } /** * @dev Validates signature for sending. * @param offchainId offchainId. * @param amount Amount to be sent. * @param token Token to be sent. * @param timestamp timestamp of expiration. * @param signature Signature of above data. */ function validateSignature( uint offchainId, uint amount, address token, uint timestamp, bytes memory signature ) public view returns (bool) { bytes32 dataHash = keccak256( abi.encodePacked( msg.sender, offchainId, amount, token, timestamp, address(this) ) ); bytes32 message = ECDSA.toEthSignedMessageHash(dataHash); address receivedAddress = ECDSA.recover(message, signature); return receivedAddress == signer; } /** * @dev Sets signer. * @param _signer Address we are setting. */ function setSigner(address _signer) external onlyOwner { require(_signer != address(0), "Non zero address!"); signer = _signer; } }
// 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 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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)); } } /** * @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"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 `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); /** * @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/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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"offchainId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","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"},{"inputs":[{"internalType":"uint256","name":"offchainId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"transactionProcessed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offchainId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"validateSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200250138038062002501833981810160405281019062000037919062000248565b620000576200004b6200011260201b60201c565b6200011a60201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000ca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c190620002db565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620002fd565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200021082620001e3565b9050919050565b620002228162000203565b81146200022e57600080fd5b50565b600081519050620002428162000217565b92915050565b600060208284031215620002615762000260620001de565b5b6000620002718482850162000231565b91505092915050565b600082825260208201905092915050565b7f4e6f6e207a65726f206164647265737321000000000000000000000000000000600082015250565b6000620002c36011836200027a565b9150620002d0826200028b565b602082019050919050565b60006020820190508181036000830152620002f681620002b4565b9050919050565b6121f4806200030d6000396000f3fe6080604052600436106100865760003560e01c806358ddbdf11161005957806358ddbdf1146101385780636c19e78314610175578063715018a61461019e5780638da5cb5b146101b5578063f2fde38b146101e057610086565b806314210b0c1461008b578063238ac933146100c857806334cf3b21146100f357806351cff8d91461010f575b600080fd5b34801561009757600080fd5b506100b260048036038101906100ad9190611469565b610209565b6040516100bf919061151b565b60405180910390f35b3480156100d457600080fd5b506100dd6102b9565b6040516100ea9190611545565b60405180910390f35b61010d60048036038101906101089190611469565b6102df565b005b34801561011b57600080fd5b5061013660048036038101906101319190611560565b6104e7565b005b34801561014457600080fd5b5061015f600480360381019061015a919061158d565b61070f565b60405161016c919061151b565b60405180910390f35b34801561018157600080fd5b5061019c60048036038101906101979190611560565b61072f565b005b3480156101aa57600080fd5b506101b361085f565b005b3480156101c157600080fd5b506101ca6108e7565b6040516101d79190611545565b60405180910390f35b3480156101ec57600080fd5b5061020760048036038101906102029190611560565b610910565b005b60008033878787873060405160200161022796959493929190611623565b604051602081830303815290604052805190602001209050600061024a82610a08565b905060006102588286610a38565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505095945050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102ec8585858585610209565b61032b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610322906116f0565b60405180910390fd5b6001600086815260200190815260200160002060009054906101000a900460ff161561038c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103839061175c565b60405180910390fd5b4282116103ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c5906117c8565b60405180910390fd5b600180600087815260200190815260200160002060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156104765783341015610471576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046890611834565b60405180910390fd5b6104a4565b6104a33330868673ffffffffffffffffffffffffffffffffffffffff16610a5f909392919063ffffffff16565b5b847f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d83385876040516104d893929190611863565b60405180910390a25050505050565b6104ef610ae8565b73ffffffffffffffffffffffffffffffffffffffff1661050d6108e7565b73ffffffffffffffffffffffffffffffffffffffff1614610563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055a906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106515760006105a26108e7565b73ffffffffffffffffffffffffffffffffffffffff16476040516105c590611937565b60006040518083038185875af1925050503d8060008114610602576040519150601f19603f3d011682016040523d82523d6000602084013e610607565b606091505b505090508061064b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064290611998565b60405180910390fd5b5061070c565b61070b61065c6108e7565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106959190611545565b60206040518083038186803b1580156106ad57600080fd5b505afa1580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e591906119cd565b8373ffffffffffffffffffffffffffffffffffffffff16610af09092919063ffffffff16565b5b50565b60016020528060005260406000206000915054906101000a900460ff1681565b610737610ae8565b73ffffffffffffffffffffffffffffffffffffffff166107556108e7565b73ffffffffffffffffffffffffffffffffffffffff16146107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a2906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081290611a46565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610867610ae8565b73ffffffffffffffffffffffffffffffffffffffff166108856108e7565b73ffffffffffffffffffffffffffffffffffffffff16146108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d2906118e6565b60405180910390fd5b6108e56000610b76565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610918610ae8565b73ffffffffffffffffffffffffffffffffffffffff166109366108e7565b73ffffffffffffffffffffffffffffffffffffffff161461098c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610983906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f390611ad8565b60405180910390fd5b610a0581610b76565b50565b600081604051602001610a1b9190611b7a565b604051602081830303815290604052805190602001209050919050565b6000806000610a478585610c3a565b91509150610a5481610cbd565b819250505092915050565b610ae2846323b872dd60e01b858585604051602401610a8093929190611863565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e92565b50505050565b600033905090565b610b718363a9059cbb60e01b8484604051602401610b0f929190611ba0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e92565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080604183511415610c7c5760008060006020860151925060408601519150606086015160001a9050610c7087828585610f59565b94509450505050610cb6565b604083511415610cad576000806020850151915060408501519050610ca2868383611066565b935093505050610cb6565b60006002915091505b9250929050565b60006004811115610cd157610cd0611bc9565b5b816004811115610ce457610ce3611bc9565b5b1415610cef57610e8f565b60016004811115610d0357610d02611bc9565b5b816004811115610d1657610d15611bc9565b5b1415610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90611c44565b60405180910390fd5b60026004811115610d6b57610d6a611bc9565b5b816004811115610d7e57610d7d611bc9565b5b1415610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690611cb0565b60405180910390fd5b60036004811115610dd357610dd2611bc9565b5b816004811115610de657610de5611bc9565b5b1415610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e90611d42565b60405180910390fd5b600480811115610e3a57610e39611bc9565b5b816004811115610e4d57610e4c611bc9565b5b1415610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590611dd4565b60405180910390fd5b5b50565b6000610ef4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110c59092919063ffffffff16565b9050600081511115610f545780806020019051810190610f149190611e20565b610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90611ebf565b60405180910390fd5b5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610f9457600060039150915061105d565b601b8560ff1614158015610fac5750601c8560ff1614155b15610fbe57600060049150915061105d565b600060018787878760405160008152602001604052604051610fe39493929190611f0a565b6020604051602081039080840390855afa158015611005573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110545760006001925092505061105d565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6110a99190611f7e565b90506110b787828885610f59565b935093505050935093915050565b60606110d484846000856110dd565b90509392505050565b606082471015611122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111990612046565b60405180910390fd5b61112b856111f1565b61116a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611161906120b2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111939190612141565b60006040518083038185875af1925050503d80600081146111d0576040519150601f19603f3d011682016040523d82523d6000602084013e6111d5565b606091505b50915091506111e5828286611214565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561122457829050611274565b6000835111156112375782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126b919061219c565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6112a28161128f565b81146112ad57600080fd5b50565b6000813590506112bf81611299565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112f0826112c5565b9050919050565b611300816112e5565b811461130b57600080fd5b50565b60008135905061131d816112f7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113768261132d565b810181811067ffffffffffffffff821117156113955761139461133e565b5b80604052505050565b60006113a861127b565b90506113b4828261136d565b919050565b600067ffffffffffffffff8211156113d4576113d361133e565b5b6113dd8261132d565b9050602081019050919050565b82818337600083830152505050565b600061140c611407846113b9565b61139e565b90508281526020810184848401111561142857611427611328565b5b6114338482856113ea565b509392505050565b600082601f8301126114505761144f611323565b5b81356114608482602086016113f9565b91505092915050565b600080600080600060a0868803121561148557611484611285565b5b6000611493888289016112b0565b95505060206114a4888289016112b0565b94505060406114b58882890161130e565b93505060606114c6888289016112b0565b925050608086013567ffffffffffffffff8111156114e7576114e661128a565b5b6114f38882890161143b565b9150509295509295909350565b60008115159050919050565b61151581611500565b82525050565b6000602082019050611530600083018461150c565b92915050565b61153f816112e5565b82525050565b600060208201905061155a6000830184611536565b92915050565b60006020828403121561157657611575611285565b5b60006115848482850161130e565b91505092915050565b6000602082840312156115a3576115a2611285565b5b60006115b1848285016112b0565b91505092915050565b60008160601b9050919050565b60006115d2826115ba565b9050919050565b60006115e4826115c7565b9050919050565b6115fc6115f7826112e5565b6115d9565b82525050565b6000819050919050565b61161d6116188261128f565b611602565b82525050565b600061162f82896115eb565b60148201915061163f828861160c565b60208201915061164f828761160c565b60208201915061165f82866115eb565b60148201915061166f828561160c565b60208201915061167f82846115eb565b601482019150819050979650505050505050565b600082825260208201905092915050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b60006116da601283611693565b91506116e5826116a4565b602082019050919050565b60006020820190508181036000830152611709816116cd565b9050919050565b7f5472616e73616374696f6e20616c72656164792070726f6365737365642e0000600082015250565b6000611746601e83611693565b915061175182611710565b602082019050919050565b6000602082019050818103600083015261177581611739565b9050919050565b7f5369676e617475726520657870697265642e0000000000000000000000000000600082015250565b60006117b2601283611693565b91506117bd8261177c565b602082019050919050565b600060208201905081810360008301526117e1816117a5565b9050919050565b7f496e73756666696369656e7420616d6f756e742e000000000000000000000000600082015250565b600061181e601483611693565b9150611829826117e8565b602082019050919050565b6000602082019050818103600083015261184d81611811565b9050919050565b61185d8161128f565b82525050565b60006060820190506118786000830186611536565b6118856020830185611536565b6118926040830184611854565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006118d0602083611693565b91506118db8261189a565b602082019050919050565b600060208201905081810360008301526118ff816118c3565b9050919050565b600081905092915050565b50565b6000611921600083611906565b915061192c82611911565b600082019050919050565b600061194282611914565b9150819050919050565b7f72656365697665722072656a6563746564207472616e73666572000000000000600082015250565b6000611982601a83611693565b915061198d8261194c565b602082019050919050565b600060208201905081810360008301526119b181611975565b9050919050565b6000815190506119c781611299565b92915050565b6000602082840312156119e3576119e2611285565b5b60006119f1848285016119b8565b91505092915050565b7f4e6f6e207a65726f206164647265737321000000000000000000000000000000600082015250565b6000611a30601183611693565b9150611a3b826119fa565b602082019050919050565b60006020820190508181036000830152611a5f81611a23565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611ac2602683611693565b9150611acd82611a66565b604082019050919050565b60006020820190508181036000830152611af181611ab5565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611b39601c83611af8565b9150611b4482611b03565b601c82019050919050565b6000819050919050565b6000819050919050565b611b74611b6f82611b4f565b611b59565b82525050565b6000611b8582611b2c565b9150611b918284611b63565b60208201915081905092915050565b6000604082019050611bb56000830185611536565b611bc26020830184611854565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611c2e601883611693565b9150611c3982611bf8565b602082019050919050565b60006020820190508181036000830152611c5d81611c21565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611c9a601f83611693565b9150611ca582611c64565b602082019050919050565b60006020820190508181036000830152611cc981611c8d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d2c602283611693565b9150611d3782611cd0565b604082019050919050565b60006020820190508181036000830152611d5b81611d1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611dbe602283611693565b9150611dc982611d62565b604082019050919050565b60006020820190508181036000830152611ded81611db1565b9050919050565b611dfd81611500565b8114611e0857600080fd5b50565b600081519050611e1a81611df4565b92915050565b600060208284031215611e3657611e35611285565b5b6000611e4484828501611e0b565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611ea9602a83611693565b9150611eb482611e4d565b604082019050919050565b60006020820190508181036000830152611ed881611e9c565b9050919050565b611ee881611b4f565b82525050565b600060ff82169050919050565b611f0481611eee565b82525050565b6000608082019050611f1f6000830187611edf565b611f2c6020830186611efb565b611f396040830185611edf565b611f466060830184611edf565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f898261128f565b9150611f948361128f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611fc957611fc8611f4f565b5b828201905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612030602683611693565b915061203b82611fd4565b604082019050919050565b6000602082019050818103600083015261205f81612023565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061209c601d83611693565b91506120a782612066565b602082019050919050565b600060208201905081810360008301526120cb8161208f565b9050919050565b600081519050919050565b60005b838110156120fb5780820151818401526020810190506120e0565b8381111561210a576000848401525b50505050565b600061211b826120d2565b6121258185611906565b93506121358185602086016120dd565b80840191505092915050565b600061214d8284612110565b915081905092915050565b600081519050919050565b600061216e82612158565b6121788185611693565b93506121888185602086016120dd565b6121918161132d565b840191505092915050565b600060208201905081810360008301526121b68184612163565b90509291505056fea2646970667358221220064e551b9d96e2b2352e24aa80bc45ab4778050cccdf33c175850d975d685cf464736f6c6343000809003300000000000000000000000004981bf52060943cf65eae5ee6684f08df9d4e6c
Deployed Bytecode
0x6080604052600436106100865760003560e01c806358ddbdf11161005957806358ddbdf1146101385780636c19e78314610175578063715018a61461019e5780638da5cb5b146101b5578063f2fde38b146101e057610086565b806314210b0c1461008b578063238ac933146100c857806334cf3b21146100f357806351cff8d91461010f575b600080fd5b34801561009757600080fd5b506100b260048036038101906100ad9190611469565b610209565b6040516100bf919061151b565b60405180910390f35b3480156100d457600080fd5b506100dd6102b9565b6040516100ea9190611545565b60405180910390f35b61010d60048036038101906101089190611469565b6102df565b005b34801561011b57600080fd5b5061013660048036038101906101319190611560565b6104e7565b005b34801561014457600080fd5b5061015f600480360381019061015a919061158d565b61070f565b60405161016c919061151b565b60405180910390f35b34801561018157600080fd5b5061019c60048036038101906101979190611560565b61072f565b005b3480156101aa57600080fd5b506101b361085f565b005b3480156101c157600080fd5b506101ca6108e7565b6040516101d79190611545565b60405180910390f35b3480156101ec57600080fd5b5061020760048036038101906102029190611560565b610910565b005b60008033878787873060405160200161022796959493929190611623565b604051602081830303815290604052805190602001209050600061024a82610a08565b905060006102588286610a38565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505095945050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102ec8585858585610209565b61032b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610322906116f0565b60405180910390fd5b6001600086815260200190815260200160002060009054906101000a900460ff161561038c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103839061175c565b60405180910390fd5b4282116103ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c5906117c8565b60405180910390fd5b600180600087815260200190815260200160002060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156104765783341015610471576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046890611834565b60405180910390fd5b6104a4565b6104a33330868673ffffffffffffffffffffffffffffffffffffffff16610a5f909392919063ffffffff16565b5b847f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d83385876040516104d893929190611863565b60405180910390a25050505050565b6104ef610ae8565b73ffffffffffffffffffffffffffffffffffffffff1661050d6108e7565b73ffffffffffffffffffffffffffffffffffffffff1614610563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055a906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106515760006105a26108e7565b73ffffffffffffffffffffffffffffffffffffffff16476040516105c590611937565b60006040518083038185875af1925050503d8060008114610602576040519150601f19603f3d011682016040523d82523d6000602084013e610607565b606091505b505090508061064b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064290611998565b60405180910390fd5b5061070c565b61070b61065c6108e7565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106959190611545565b60206040518083038186803b1580156106ad57600080fd5b505afa1580156106c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e591906119cd565b8373ffffffffffffffffffffffffffffffffffffffff16610af09092919063ffffffff16565b5b50565b60016020528060005260406000206000915054906101000a900460ff1681565b610737610ae8565b73ffffffffffffffffffffffffffffffffffffffff166107556108e7565b73ffffffffffffffffffffffffffffffffffffffff16146107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a2906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081290611a46565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610867610ae8565b73ffffffffffffffffffffffffffffffffffffffff166108856108e7565b73ffffffffffffffffffffffffffffffffffffffff16146108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d2906118e6565b60405180910390fd5b6108e56000610b76565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610918610ae8565b73ffffffffffffffffffffffffffffffffffffffff166109366108e7565b73ffffffffffffffffffffffffffffffffffffffff161461098c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610983906118e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f390611ad8565b60405180910390fd5b610a0581610b76565b50565b600081604051602001610a1b9190611b7a565b604051602081830303815290604052805190602001209050919050565b6000806000610a478585610c3a565b91509150610a5481610cbd565b819250505092915050565b610ae2846323b872dd60e01b858585604051602401610a8093929190611863565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e92565b50505050565b600033905090565b610b718363a9059cbb60e01b8484604051602401610b0f929190611ba0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e92565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080604183511415610c7c5760008060006020860151925060408601519150606086015160001a9050610c7087828585610f59565b94509450505050610cb6565b604083511415610cad576000806020850151915060408501519050610ca2868383611066565b935093505050610cb6565b60006002915091505b9250929050565b60006004811115610cd157610cd0611bc9565b5b816004811115610ce457610ce3611bc9565b5b1415610cef57610e8f565b60016004811115610d0357610d02611bc9565b5b816004811115610d1657610d15611bc9565b5b1415610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e90611c44565b60405180910390fd5b60026004811115610d6b57610d6a611bc9565b5b816004811115610d7e57610d7d611bc9565b5b1415610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690611cb0565b60405180910390fd5b60036004811115610dd357610dd2611bc9565b5b816004811115610de657610de5611bc9565b5b1415610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e90611d42565b60405180910390fd5b600480811115610e3a57610e39611bc9565b5b816004811115610e4d57610e4c611bc9565b5b1415610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590611dd4565b60405180910390fd5b5b50565b6000610ef4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110c59092919063ffffffff16565b9050600081511115610f545780806020019051810190610f149190611e20565b610f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4a90611ebf565b60405180910390fd5b5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610f9457600060039150915061105d565b601b8560ff1614158015610fac5750601c8560ff1614155b15610fbe57600060049150915061105d565b600060018787878760405160008152602001604052604051610fe39493929190611f0a565b6020604051602081039080840390855afa158015611005573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110545760006001925092505061105d565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6110a99190611f7e565b90506110b787828885610f59565b935093505050935093915050565b60606110d484846000856110dd565b90509392505050565b606082471015611122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111990612046565b60405180910390fd5b61112b856111f1565b61116a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611161906120b2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111939190612141565b60006040518083038185875af1925050503d80600081146111d0576040519150601f19603f3d011682016040523d82523d6000602084013e6111d5565b606091505b50915091506111e5828286611214565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561122457829050611274565b6000835111156112375782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126b919061219c565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6112a28161128f565b81146112ad57600080fd5b50565b6000813590506112bf81611299565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006112f0826112c5565b9050919050565b611300816112e5565b811461130b57600080fd5b50565b60008135905061131d816112f7565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6113768261132d565b810181811067ffffffffffffffff821117156113955761139461133e565b5b80604052505050565b60006113a861127b565b90506113b4828261136d565b919050565b600067ffffffffffffffff8211156113d4576113d361133e565b5b6113dd8261132d565b9050602081019050919050565b82818337600083830152505050565b600061140c611407846113b9565b61139e565b90508281526020810184848401111561142857611427611328565b5b6114338482856113ea565b509392505050565b600082601f8301126114505761144f611323565b5b81356114608482602086016113f9565b91505092915050565b600080600080600060a0868803121561148557611484611285565b5b6000611493888289016112b0565b95505060206114a4888289016112b0565b94505060406114b58882890161130e565b93505060606114c6888289016112b0565b925050608086013567ffffffffffffffff8111156114e7576114e661128a565b5b6114f38882890161143b565b9150509295509295909350565b60008115159050919050565b61151581611500565b82525050565b6000602082019050611530600083018461150c565b92915050565b61153f816112e5565b82525050565b600060208201905061155a6000830184611536565b92915050565b60006020828403121561157657611575611285565b5b60006115848482850161130e565b91505092915050565b6000602082840312156115a3576115a2611285565b5b60006115b1848285016112b0565b91505092915050565b60008160601b9050919050565b60006115d2826115ba565b9050919050565b60006115e4826115c7565b9050919050565b6115fc6115f7826112e5565b6115d9565b82525050565b6000819050919050565b61161d6116188261128f565b611602565b82525050565b600061162f82896115eb565b60148201915061163f828861160c565b60208201915061164f828761160c565b60208201915061165f82866115eb565b60148201915061166f828561160c565b60208201915061167f82846115eb565b601482019150819050979650505050505050565b600082825260208201905092915050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b60006116da601283611693565b91506116e5826116a4565b602082019050919050565b60006020820190508181036000830152611709816116cd565b9050919050565b7f5472616e73616374696f6e20616c72656164792070726f6365737365642e0000600082015250565b6000611746601e83611693565b915061175182611710565b602082019050919050565b6000602082019050818103600083015261177581611739565b9050919050565b7f5369676e617475726520657870697265642e0000000000000000000000000000600082015250565b60006117b2601283611693565b91506117bd8261177c565b602082019050919050565b600060208201905081810360008301526117e1816117a5565b9050919050565b7f496e73756666696369656e7420616d6f756e742e000000000000000000000000600082015250565b600061181e601483611693565b9150611829826117e8565b602082019050919050565b6000602082019050818103600083015261184d81611811565b9050919050565b61185d8161128f565b82525050565b60006060820190506118786000830186611536565b6118856020830185611536565b6118926040830184611854565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006118d0602083611693565b91506118db8261189a565b602082019050919050565b600060208201905081810360008301526118ff816118c3565b9050919050565b600081905092915050565b50565b6000611921600083611906565b915061192c82611911565b600082019050919050565b600061194282611914565b9150819050919050565b7f72656365697665722072656a6563746564207472616e73666572000000000000600082015250565b6000611982601a83611693565b915061198d8261194c565b602082019050919050565b600060208201905081810360008301526119b181611975565b9050919050565b6000815190506119c781611299565b92915050565b6000602082840312156119e3576119e2611285565b5b60006119f1848285016119b8565b91505092915050565b7f4e6f6e207a65726f206164647265737321000000000000000000000000000000600082015250565b6000611a30601183611693565b9150611a3b826119fa565b602082019050919050565b60006020820190508181036000830152611a5f81611a23565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611ac2602683611693565b9150611acd82611a66565b604082019050919050565b60006020820190508181036000830152611af181611ab5565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000611b39601c83611af8565b9150611b4482611b03565b601c82019050919050565b6000819050919050565b6000819050919050565b611b74611b6f82611b4f565b611b59565b82525050565b6000611b8582611b2c565b9150611b918284611b63565b60208201915081905092915050565b6000604082019050611bb56000830185611536565b611bc26020830184611854565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000611c2e601883611693565b9150611c3982611bf8565b602082019050919050565b60006020820190508181036000830152611c5d81611c21565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000611c9a601f83611693565b9150611ca582611c64565b602082019050919050565b60006020820190508181036000830152611cc981611c8d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611d2c602283611693565b9150611d3782611cd0565b604082019050919050565b60006020820190508181036000830152611d5b81611d1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000611dbe602283611693565b9150611dc982611d62565b604082019050919050565b60006020820190508181036000830152611ded81611db1565b9050919050565b611dfd81611500565b8114611e0857600080fd5b50565b600081519050611e1a81611df4565b92915050565b600060208284031215611e3657611e35611285565b5b6000611e4484828501611e0b565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611ea9602a83611693565b9150611eb482611e4d565b604082019050919050565b60006020820190508181036000830152611ed881611e9c565b9050919050565b611ee881611b4f565b82525050565b600060ff82169050919050565b611f0481611eee565b82525050565b6000608082019050611f1f6000830187611edf565b611f2c6020830186611efb565b611f396040830185611edf565b611f466060830184611edf565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611f898261128f565b9150611f948361128f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611fc957611fc8611f4f565b5b828201905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612030602683611693565b915061203b82611fd4565b604082019050919050565b6000602082019050818103600083015261205f81612023565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061209c601d83611693565b91506120a782612066565b602082019050919050565b600060208201905081810360008301526120cb8161208f565b9050919050565b600081519050919050565b60005b838110156120fb5780820151818401526020810190506120e0565b8381111561210a576000848401525b50505050565b600061211b826120d2565b6121258185611906565b93506121358185602086016120dd565b80840191505092915050565b600061214d8284612110565b915081905092915050565b600081519050919050565b600061216e82612158565b6121788185611693565b93506121888185602086016120dd565b6121918161132d565b840191505092915050565b600060208201905081810360008301526121b68184612163565b90509291505056fea2646970667358221220064e551b9d96e2b2352e24aa80bc45ab4778050cccdf33c175850d975d685cf464736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000004981bf52060943cf65eae5ee6684f08df9d4e6c
-----Decoded View---------------
Arg [0] : _signer (address): 0x04981bF52060943CF65eaE5ee6684f08DF9D4E6C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000004981bf52060943cf65eae5ee6684f08df9d4e6c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.