Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 343 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 19517218 | 220 days ago | IN | 0 ETH | 0.00172148 | ||||
Unstake | 19475738 | 226 days ago | IN | 0 ETH | 0.00300051 | ||||
Unstake | 17477844 | 506 days ago | IN | 0 ETH | 0.0009181 | ||||
Unstake | 17225876 | 542 days ago | IN | 0 ETH | 0.00801856 | ||||
Unstake | 16903820 | 587 days ago | IN | 0 ETH | 0.00124628 | ||||
Unstake | 16902880 | 588 days ago | IN | 0 ETH | 0.00133162 | ||||
Unstake | 16676960 | 619 days ago | IN | 0 ETH | 0.00150054 | ||||
Unstake | 16598887 | 630 days ago | IN | 0 ETH | 0.00262267 | ||||
Unstake | 16598882 | 630 days ago | IN | 0 ETH | 0.00288998 | ||||
Unstake | 16598859 | 630 days ago | IN | 0 ETH | 0.0034578 | ||||
Unstake | 16518499 | 641 days ago | IN | 0 ETH | 0.00088882 | ||||
Unstake Users | 16502715 | 644 days ago | IN | 0 ETH | 0.00138796 | ||||
Unstake | 16492601 | 645 days ago | IN | 0 ETH | 0.00219914 | ||||
Unstake | 16479718 | 647 days ago | IN | 0 ETH | 0.00344386 | ||||
Unstake | 16477148 | 647 days ago | IN | 0 ETH | 0.00136102 | ||||
Unstake | 16467995 | 649 days ago | IN | 0 ETH | 0.00103821 | ||||
Unstake | 16462200 | 649 days ago | IN | 0 ETH | 0.00133931 | ||||
Unstake | 16460392 | 650 days ago | IN | 0 ETH | 0.00146662 | ||||
Unstake | 16442757 | 652 days ago | IN | 0 ETH | 0.00140096 | ||||
Unstake | 16441480 | 652 days ago | IN | 0 ETH | 0.00139645 | ||||
Unstake | 16440924 | 652 days ago | IN | 0 ETH | 0.00141628 | ||||
Unstake | 16439214 | 653 days ago | IN | 0 ETH | 0.00086667 | ||||
Unstake | 16037621 | 709 days ago | IN | 0 ETH | 0.00074288 | ||||
Unstake | 16032734 | 709 days ago | IN | 0 ETH | 0.00079602 | ||||
Unstake | 15887492 | 730 days ago | IN | 0 ETH | 0.00130527 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
IDStaking
Compiler Version
v0.8.4+commit.c7e474f2
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.0 <0.9.0; import {Staking} from "./Staking.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import {EIP712} from "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; contract IDStaking is Staking, EIP712, Ownable { uint256 public latestRound; // 0x7ba1e5E9d013EaE624D274bfbAC886459F291081 address public trustedSigner; struct Round { string meta; uint256 tvl; uint256 start; uint256 duration; } mapping(uint256 => mapping(bytes32 => uint256)) public xStakes; mapping(uint256 => Round) rounds; mapping(bytes32 => bool) usedDigest; event signerUpdated(address signer); event roundCreated(uint256 id); event selfStake( uint256 roundId, address staker, uint256 amount, bool staked ); event xStake( uint256 roundId, address staker, address user, uint256 amount, bool staked ); event tokenMigrated( address staker, uint256 amount, uint256 fromRound, uint256 toRound ); modifier roundExists(uint256 roundId) { require(roundId > 0 && roundId <= latestRound, "Round does not exist"); _; } modifier canStakeRound(uint256 roundId) { require(roundId > 0 && roundId <= latestRound, "Round does not exist"); require( rounds[roundId].start + rounds[roundId].duration > block.timestamp, "Can't stake on this round" ); _; } modifier canUnstakeRound(uint256 roundId) { require(roundId > 0 && roundId <= latestRound, "Round does not exist"); require( rounds[roundId].start + rounds[roundId].duration < block.timestamp, "Can't unstake an active round" ); _; } constructor(IERC20 _token, address _trustedSigner) EIP712("IDStaking", "1.0") { token = _token; updateSigner(_trustedSigner); } function updateSigner(address signer) public onlyOwner { trustedSigner = signer; emit signerUpdated(signer); } function createRound( uint256 start, uint256 duration, string calldata meta ) external onlyOwner { if (latestRound > 0) { require( start > rounds[latestRound].start + rounds[latestRound].duration, "new rounds have to start after old rounds" ); } require(start >= block.timestamp, "new rounds should be in the future"); latestRound++; uint256 currentRound = latestRound; rounds[currentRound].start = start; rounds[currentRound].duration = duration; rounds[currentRound].meta = meta; emit roundCreated(currentRound); } // stake function stake(uint256 roundId, uint256 amount) external canStakeRound(roundId) { _stake(roundId, amount); rounds[roundId].tvl += amount; emit selfStake(roundId, msg.sender, amount, true); } // unstake function unstake(uint256 roundId, uint256 amount) external canUnstakeRound(roundId) { require( stakes[roundId][msg.sender] >= amount, "Not enough balance to withdraw" ); rounds[roundId].tvl -= amount; _unstake(roundId, amount); emit selfStake(roundId, msg.sender, amount, false); } // stakeUser function stakeUsers( bytes calldata signature, string calldata nonce, uint256 timestamp, uint256 roundId, address[] calldata users, uint256[] calldata amounts ) external canStakeRound(roundId) { require(users.length == amounts.length, "Unequal users and amount"); require(timestamp > block.timestamp, "Signature timestamp is expired"); // TODO : validate signature here bytes32 digest = _hashTypedDataV4( keccak256( abi.encode( keccak256( "Data(string nonce,uint256 timestamp,address user)" ), keccak256(bytes(nonce)), timestamp, msg.sender ) ) ); require(!usedDigest[digest], "This signature has been used"); address signer = ECDSA.recover(digest, signature); require(signer == trustedSigner, "Signature not from a trusted signer"); usedDigest[digest] = true; uint256 totalAmount; for (uint256 i = 0; i < users.length; i++) { address user = users[i]; uint256 amount = amounts[i]; require( amount > 0, "You can't stake nothing on a selected address" ); require(address(0) != user, "can't stake the zero address"); require(user != msg.sender, "You can't stake on your address here"); xStakes[roundId][getStakeId(msg.sender, user)] += amount; totalAmount += amount; emit xStake(roundId, msg.sender, user, amount, true); } require( token.transferFrom(msg.sender, address(this), totalAmount), "unable to stake users" ); rounds[roundId].tvl += totalAmount; } // unstakeUser function unstakeUsers(uint256 roundId, address[] calldata users) external canUnstakeRound(roundId) { uint256 totalAmount = 0; for (uint256 i = 0; i < users.length; i++) { require(address(0) != users[i], "can't unstake the zero address"); require( users[i] != msg.sender, "You can't unstake on your address here" ); bytes32 stakeId = getStakeId(msg.sender, users[i]); uint256 unstakeBalance = xStakes[roundId][stakeId]; if (unstakeBalance > 0) { xStakes[roundId][stakeId] -= unstakeBalance; totalAmount += unstakeBalance; emit xStake( roundId, msg.sender, users[i], unstakeBalance, false ); } } rounds[roundId].tvl -= totalAmount; require( token.transfer(msg.sender, totalAmount), "unable to unstake users" ); } // migrateStake function migrateStake(uint256 fromRound) external canUnstakeRound(fromRound) { uint256 toRound = latestRound; require(fromRound < toRound, "Can't migrate from an active round"); uint256 balance = stakes[fromRound][msg.sender]; require(balance > 0, "Not enough balance to migrate"); rounds[fromRound].tvl -= balance; stakes[fromRound][msg.sender] = 0; rounds[toRound].tvl += balance; stakes[toRound][msg.sender] = balance; emit selfStake(fromRound, msg.sender, balance, false); emit selfStake(toRound, msg.sender, balance, true); emit tokenMigrated(msg.sender, balance, fromRound, toRound); } // VIEW function fetchRoundMeta(uint256 roundId) public view roundExists(roundId) returns ( uint256 start, uint256 duration, uint256 tvl, string memory meta ) { return ( rounds[roundId].start, rounds[roundId].duration, rounds[roundId].tvl, rounds[roundId].meta ); } function isActiveRound(uint256 roundId) public view returns (bool isActive) { (uint256 start, uint256 duration, , ) = fetchRoundMeta(roundId); isActive = start < block.timestamp && start + duration > block.timestamp; } function getUserStakeForRound(uint256 roundId, address user) public view roundExists(roundId) returns (uint256) { return _getUserStakeForRound(roundId, user); } function getUserXStakeForRound( uint256 roundId, address staker, address user ) external view returns (uint256) { return xStakes[roundId][getStakeId(staker, user)]; } function getStakeId(address staker, address user) public pure returns (bytes32) { return keccak256(abi.encode(staker, user)); } }
//SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Staking { IERC20 public token; mapping(uint256 => mapping(address => uint256)) public stakes; // stake function _stake(uint256 roundId, uint256 amount) internal { require( token.transferFrom(msg.sender, address(this), amount), "unable to stake amount" ); stakes[roundId][msg.sender] += amount; } // unstake function _unstake(uint256 roundId, uint256 amount) internal { stakes[roundId][msg.sender] -= amount; require(token.transfer(msg.sender, amount), "unable to unstake amount"); } function _getUserStakeForRound(uint256 roundId, address user) internal view returns (uint256) { return stakes[roundId][user]; } }
// 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 (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/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 (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" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_trustedSigner","type":"address"}],"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":"id","type":"uint256"}],"name":"roundCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"staked","type":"bool"}],"name":"selfStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"}],"name":"signerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fromRound","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toRound","type":"uint256"}],"name":"tokenMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"staked","type":"bool"}],"name":"xStake","type":"event"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"string","name":"meta","type":"string"}],"name":"createRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"}],"name":"fetchRoundMeta","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"tvl","type":"uint256"},{"internalType":"string","name":"meta","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"getStakeId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"getUserStakeForRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"},{"internalType":"address","name":"staker","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"getUserXStakeForRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"}],"name":"isActiveRound","outputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromRound","type":"uint256"}],"name":"migrateStake","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"roundId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"roundId","type":"uint256"},{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"stakeUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"},{"internalType":"address[]","name":"users","type":"address[]"}],"name":"unstakeUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"xStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101406040523480156200001257600080fd5b50604051620026d1380380620026d183398101604081905262000035916200026f565b604080518082018252600981526849445374616b696e6760b81b6020808301918252835180850190945260038452620312e360ec1b908401528151902060e08190527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b36101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001168184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6080523060601b60c05261012052506200013c9250620001369150503390565b6200016a565b600080546001600160a01b0319166001600160a01b0384161790556200016281620001bc565b5050620002c6565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002546001600160a01b031633146200021b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f58df529e94457075f675d7cb1a7234cc93b05c50d14cad337c8e3a494ac6dbb99060200160405180910390a150565b6000806040838503121562000282578182fd5b82516200028f81620002ad565b6020840151909250620002a281620002ad565b809150509250929050565b6001600160a01b0381168114620002c357600080fd5b50565b60805160a05160c05160601c60e05161010051610120516123b862000319600039600061198c015260006119db015260006119b60152600061190f015260006119390152600061196301526123b86000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c806385a68681116100ad578063e5f8b15611610071578063e5f8b1561461029f578063f23d829b146102b2578063f2fde38b146102d5578063f74d5480146102e8578063fc0c546a146102fb57600080fd5b806385a68681146101fe5780638da5cb5b146102295780639e2c8a5b1461024e578063a7ecd37e14610261578063a9a3bba41461027457600080fd5b806362dfb7bb116100f457806362dfb7bb146101a4578063668a0f02146101b757806366abc2a6146101c0578063715018a6146101e35780637b0472f0146101eb57600080fd5b806202069e1461013057806329b09f27146101455780633029e04d1461016b578063565cd0941461017e57806358dd737314610191575b600080fd5b61014361013e36600461213d565b61030e565b005b610158610153366004612075565b6104a5565b6040519081526020015b60405180910390f35b610158610179366004612097565b610502565b61014361018c36600461205d565b610533565b61014361019f366004611f88565b610788565b6101436101b23660046120d2565b610dad565b61015860035481565b6101d36101ce36600461205d565b61118a565b6040519015158152602001610162565b6101436111bc565b6101436101f936600461211c565b6111f2565b61015861020c36600461211c565b600560209081526000928352604080842090915290825290205481565b6002546001600160a01b03165b6040516001600160a01b039091168152602001610162565b61014361025c36600461211c565b6112f0565b61014361026f366004611f15565b61141e565b610158610282366004612075565b600160209081526000928352604080842090915290825290205481565b6101586102ad366004611f36565b61149c565b6102c56102c036600461205d565b6114de565b604051610162949392919061225e565b6101436102e3366004611f15565b6115d5565b600454610236906001600160a01b031681565b600054610236906001600160a01b031681565b6002546001600160a01b031633146103415760405162461bcd60e51b81526004016103389061219e565b60405180910390fd5b600354156103cf576003805460009081526006602052604090209081015460029091015461036f91906122c7565b84116103cf5760405162461bcd60e51b815260206004820152602960248201527f6e657720726f756e6473206861766520746f207374617274206166746572206f6044820152686c6420726f756e647360b81b6064820152608401610338565b4284101561042a5760405162461bcd60e51b815260206004820152602260248201527f6e657720726f756e64732073686f756c6420626520696e207468652066757475604482015261726560f01b6064820152608401610338565b6003805490600061043a83612331565b9091555050600380546000818152600660205260409020600281018790559182018590559061046a908484611ddd565b506040518181527ff9465e09a9cd4cd6a0d6a75077f9781249102ba59ba6631015ceebee6616e0be9060200160405180910390a15050505050565b6000826000811180156104ba57506003548111155b6104d65760405162461bcd60e51b8152600401610338906121d3565b60008481526001602090815260408083206001600160a01b03871684529091529020545b949350505050565b60008381526005602052604081208161051b858561149c565b81526020019081526020016000205490509392505050565b8060008111801561054657506003548111155b6105625760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291610586916122c7565b106105a35760405162461bcd60e51b815260040161033890612201565b6003548083106106005760405162461bcd60e51b815260206004820152602260248201527f43616e2774206d6967726174652066726f6d20616e2061637469766520726f756044820152611b9960f21b6064820152608401610338565b6000838152600160209081526040808320338452909152902054806106675760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f7567682062616c616e636520746f206d6967726174650000006044820152606401610338565b600084815260066020526040812060010180548392906106889084906122df565b909155505060008481526001602081815260408084203385528252808420849055858452600690915282200180548392906106c49084906122c7565b90915550506000828152600160209081526040808320338085529252808320849055516000805160206123638339815191529261070692889290918691612238565b60405180910390a160008051602061236383398151915282338360016040516107329493929190612238565b60405180910390a16040805133815260208101839052908101859052606081018390527f98d2b1d29e5031a0e15170f32c6a62e031a004cdaa9ed8273c35d24a6b4256059060800160405180910390a150505050565b8460008111801561079b57506003548111155b6107b75760405162461bcd60e51b8152600401610338906121d3565b6000818152600660205260409020600381015460029091015442916107db916122c7565b116108245760405162461bcd60e51b815260206004820152601960248201527810d85b89dd081cdd185ad9481bdb881d1a1a5cc81c9bdd5b99603a1b6044820152606401610338565b8382146108735760405162461bcd60e51b815260206004820152601860248201527f556e657175616c20757365727320616e6420616d6f756e7400000000000000006044820152606401610338565b4287116108c25760405162461bcd60e51b815260206004820152601e60248201527f5369676e61747572652074696d657374616d70206973206578706972656400006044820152606401610338565b600061093b7f125dc503ce2b69c523e50afff3666a9f5c25748c13c6d58aef6966b48ef093158b8b6040516108f892919061218e565b604080519182900382206020830193909352810191909152606081018a905233608082015260a00160405160208183030381529060405280519060200120611670565b60008181526007602052604090205490915060ff161561099d5760405162461bcd60e51b815260206004820152601c60248201527f54686973207369676e617475726520686173206265656e2075736564000000006044820152606401610338565b60006109df828e8e8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061168992505050565b6004549091506001600160a01b03808316911614610a4b5760405162461bcd60e51b815260206004820152602360248201527f5369676e6174757265206e6f742066726f6d20612074727573746564207369676044820152623732b960e91b6064820152608401610338565b6000828152600760205260408120805460ff19166001179055805b87811015610ca8576000898983818110610a9057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610aa59190611f15565b90506000888884818110610ac957634e487b7160e01b600052603260045260246000fd5b90506020020135905060008111610b385760405162461bcd60e51b815260206004820152602d60248201527f596f752063616e2774207374616b65206e6f7468696e67206f6e20612073656c60448201526c6563746564206164647265737360981b6064820152608401610338565b6001600160a01b038216610b8e5760405162461bcd60e51b815260206004820152601c60248201527f63616e2774207374616b6520746865207a65726f2061646472657373000000006044820152606401610338565b6001600160a01b038216331415610bf35760405162461bcd60e51b8152602060048201526024808201527f596f752063616e2774207374616b65206f6e20796f75722061646472657373206044820152636865726560e01b6064820152608401610338565b60008c81526005602052604081208291610c0d338661149c565b81526020019081526020016000206000828254610c2a91906122c7565b90915550610c3a905081856122c7565b604080518e81523360208201526001600160a01b03851681830152606081018490526001608082015290519195507f178123d39dce6e2b64dc524173d382bbaa21eeb3f2e27ecf9d5ff72e10e6eb03919081900360a00190a150508080610ca090612331565b915050610a66565b506000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610cfb57600080fd5b505af1158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d339190611f68565b610d775760405162461bcd60e51b8152602060048201526015602482015274756e61626c6520746f207374616b6520757365727360581b6044820152606401610338565b60008981526006602052604081206001018054839290610d989084906122c7565b90915550505050505050505050505050505050565b82600081118015610dc057506003548111155b610ddc5760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291610e00916122c7565b10610e1d5760405162461bcd60e51b815260040161033890612201565b6000805b8381101561108c57848482818110610e4957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e5e9190611f15565b6001600160a01b0316610eb35760405162461bcd60e51b815260206004820152601e60248201527f63616e277420756e7374616b6520746865207a65726f206164647265737300006044820152606401610338565b33858583818110610ed457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ee99190611f15565b6001600160a01b03161415610f4f5760405162461bcd60e51b815260206004820152602660248201527f596f752063616e277420756e7374616b65206f6e20796f75722061646472657360448201526573206865726560d01b6064820152608401610338565b6000610f8a33878785818110610f7557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906102ad9190611f15565b6000888152600560209081526040808320848452909152902054909150801561107757600088815260056020908152604080832085845290915281208054839290610fd69084906122df565b90915550610fe6905081856122c7565b93507f178123d39dce6e2b64dc524173d382bbaa21eeb3f2e27ecf9d5ff72e10e6eb03883389898781811061102b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110409190611f15565b604080519384526001600160a01b039283166020850152911690820152606081018390526000608082015260a00160405180910390a15b5050808061108490612331565b915050610e21565b50600085815260066020526040812060010180548392906110ae9084906122df565b909155505060005460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156110ff57600080fd5b505af1158015611113573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111379190611f68565b6111835760405162461bcd60e51b815260206004820152601760248201527f756e61626c6520746f20756e7374616b652075736572730000000000000000006044820152606401610338565b5050505050565b6000806000611198846114de565b50509150915042821080156104fa5750426111b382846122c7565b11949350505050565b6002546001600160a01b031633146111e65760405162461bcd60e51b81526004016103389061219e565b6111f060006116ad565b565b8160008111801561120557506003548111155b6112215760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291611245916122c7565b1161128e5760405162461bcd60e51b815260206004820152601960248201527810d85b89dd081cdd185ad9481bdb881d1a1a5cc81c9bdd5b99603a1b6044820152606401610338565b61129883836116ff565b600083815260066020526040812060010180548492906112b99084906122c7565b9091555050604051600080516020612363833981519152906112e390859033908690600190612238565b60405180910390a1505050565b8160008111801561130357506003548111155b61131f5760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291611343916122c7565b106113605760405162461bcd60e51b815260040161033890612201565b60008381526001602090815260408083203384529091529020548211156113c95760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f7567682062616c616e636520746f20776974686472617700006044820152606401610338565b600083815260066020526040812060010180548492906113ea9084906122df565b909155506113fa90508383611800565b60008051602061236383398151915283338460006040516112e39493929190612238565b6002546001600160a01b031633146114485760405162461bcd60e51b81526004016103389061219e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f58df529e94457075f675d7cb1a7234cc93b05c50d14cad337c8e3a494ac6dbb99060200160405180910390a150565b604080516001600160a01b0380851660208301528316918101919091526000906060015b60405160208183030381529060405280519060200120905092915050565b60008060006060846000811180156114f857506003548111155b6115145760405162461bcd60e51b8152600401610338906121d3565b60008681526006602052604090206002810154600382015460018301548354929391929091908190611545906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611571906122f6565b80156115be5780601f10611593576101008083540402835291602001916115be565b820191906000526020600020905b8154815290600101906020018083116115a157829003601f168201915b505050505090509450945094509450509193509193565b6002546001600160a01b031633146115ff5760405162461bcd60e51b81526004016103389061219e565b6001600160a01b0381166116645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610338565b61166d816116ad565b50565b600061168361167d611902565b83611a29565b92915050565b60008060006116988585611a50565b915091506116a581611ac0565b509392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117899190611f68565b6117ce5760405162461bcd60e51b81526020600482015260166024820152751d5b98589b19481d1bc81cdd185ad948185b5bdd5b9d60521b6044820152606401610338565b6000828152600160209081526040808320338452909152812080548392906117f79084906122c7565b90915550505050565b6000828152600160209081526040808320338452909152812080548392906118299084906122df565b909155505060005460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561187a57600080fd5b505af115801561188e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b29190611f68565b6118fe5760405162461bcd60e51b815260206004820152601860248201527f756e61626c6520746f20756e7374616b6520616d6f756e7400000000000000006044820152606401610338565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561195b57507f000000000000000000000000000000000000000000000000000000000000000046145b1561198557507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60405161190160f01b602082015260228101839052604281018290526000906062016114c0565b600080825160411415611a875760208301516040840151606085015160001a611a7b87828585611cc1565b94509450505050611ab9565b825160401415611ab15760208301516040840151611aa6868383611dae565b935093505050611ab9565b506000905060025b9250929050565b6000816004811115611ae257634e487b7160e01b600052602160045260246000fd5b1415611aeb5750565b6001816004811115611b0d57634e487b7160e01b600052602160045260246000fd5b1415611b5b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610338565b6002816004811115611b7d57634e487b7160e01b600052602160045260246000fd5b1415611bcb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610338565b6003816004811115611bed57634e487b7160e01b600052602160045260246000fd5b1415611c465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610338565b6004816004811115611c6857634e487b7160e01b600052602160045260246000fd5b141561166d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610338565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cf85750600090506003611da5565b8460ff16601b14158015611d1057508460ff16601c14155b15611d215750600090506004611da5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d75573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d9e57600060019250925050611da5565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611dcf87828885611cc1565b935093505050935093915050565b828054611de9906122f6565b90600052602060002090601f016020900481019282611e0b5760008555611e51565b82601f10611e245782800160ff19823516178555611e51565b82800160010185558215611e51579182015b82811115611e51578235825591602001919060010190611e36565b50611e5d929150611e61565b5090565b5b80821115611e5d5760008155600101611e62565b80356001600160a01b0381168114611e8d57600080fd5b919050565b60008083601f840112611ea3578182fd5b50813567ffffffffffffffff811115611eba578182fd5b6020830191508360208260051b8501011115611ab957600080fd5b60008083601f840112611ee6578182fd5b50813567ffffffffffffffff811115611efd578182fd5b602083019150836020828501011115611ab957600080fd5b600060208284031215611f26578081fd5b611f2f82611e76565b9392505050565b60008060408385031215611f48578081fd5b611f5183611e76565b9150611f5f60208401611e76565b90509250929050565b600060208284031215611f79578081fd5b81518015158114611f2f578182fd5b60008060008060008060008060008060c08b8d031215611fa6578586fd5b8a3567ffffffffffffffff80821115611fbd578788fd5b611fc98e838f01611ed5565b909c509a5060208d0135915080821115611fe1578788fd5b611fed8e838f01611ed5565b909a50985060408d0135975060608d0135965060808d0135915080821115612013578586fd5b61201f8e838f01611e92565b909650945060a08d0135915080821115612037578384fd5b506120448d828e01611e92565b915080935050809150509295989b9194979a5092959850565b60006020828403121561206e578081fd5b5035919050565b60008060408385031215612087578182fd5b82359150611f5f60208401611e76565b6000806000606084860312156120ab578283fd5b833592506120bb60208501611e76565b91506120c960408501611e76565b90509250925092565b6000806000604084860312156120e6578283fd5b83359250602084013567ffffffffffffffff811115612103578283fd5b61210f86828701611e92565b9497909650939450505050565b6000806040838503121561212e578182fd5b50508035926020909101359150565b60008060008060608587031215612152578384fd5b8435935060208501359250604085013567ffffffffffffffff811115612176578283fd5b61218287828801611ed5565b95989497509550505050565b8183823760009101908152919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273149bdd5b9908191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252601d908201527f43616e277420756e7374616b6520616e2061637469766520726f756e64000000604082015260600190565b9384526001600160a01b0392909216602084015260408301521515606082015260800190565b848152600060208581840152846040840152608060608401528351806080850152825b8181101561229d5785810183015185820160a001528201612281565b818111156122ae578360a083870101525b50601f01601f19169290920160a0019695505050505050565b600082198211156122da576122da61234c565b500190565b6000828210156122f1576122f161234c565b500390565b600181811c9082168061230a57607f821691505b6020821081141561232b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123455761234561234c565b5060010190565b634e487b7160e01b600052601160045260246000fdfedcf891885e788b94db6de05809e1c074e1396e919fa3ef010342de9dfbdd8361a264697066735822122008f42fe628b816f3cfbf73cc8ce2d2d2b5bff58d33a0c537f0add07914711aea64736f6c63430008040033000000000000000000000000de30da39c46104798bb5aa3fe8b9e0e1f348163f000000000000000000000000b9598aca9eda4e229924726a11b38d8073184899
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012b5760003560e01c806385a68681116100ad578063e5f8b15611610071578063e5f8b1561461029f578063f23d829b146102b2578063f2fde38b146102d5578063f74d5480146102e8578063fc0c546a146102fb57600080fd5b806385a68681146101fe5780638da5cb5b146102295780639e2c8a5b1461024e578063a7ecd37e14610261578063a9a3bba41461027457600080fd5b806362dfb7bb116100f457806362dfb7bb146101a4578063668a0f02146101b757806366abc2a6146101c0578063715018a6146101e35780637b0472f0146101eb57600080fd5b806202069e1461013057806329b09f27146101455780633029e04d1461016b578063565cd0941461017e57806358dd737314610191575b600080fd5b61014361013e36600461213d565b61030e565b005b610158610153366004612075565b6104a5565b6040519081526020015b60405180910390f35b610158610179366004612097565b610502565b61014361018c36600461205d565b610533565b61014361019f366004611f88565b610788565b6101436101b23660046120d2565b610dad565b61015860035481565b6101d36101ce36600461205d565b61118a565b6040519015158152602001610162565b6101436111bc565b6101436101f936600461211c565b6111f2565b61015861020c36600461211c565b600560209081526000928352604080842090915290825290205481565b6002546001600160a01b03165b6040516001600160a01b039091168152602001610162565b61014361025c36600461211c565b6112f0565b61014361026f366004611f15565b61141e565b610158610282366004612075565b600160209081526000928352604080842090915290825290205481565b6101586102ad366004611f36565b61149c565b6102c56102c036600461205d565b6114de565b604051610162949392919061225e565b6101436102e3366004611f15565b6115d5565b600454610236906001600160a01b031681565b600054610236906001600160a01b031681565b6002546001600160a01b031633146103415760405162461bcd60e51b81526004016103389061219e565b60405180910390fd5b600354156103cf576003805460009081526006602052604090209081015460029091015461036f91906122c7565b84116103cf5760405162461bcd60e51b815260206004820152602960248201527f6e657720726f756e6473206861766520746f207374617274206166746572206f6044820152686c6420726f756e647360b81b6064820152608401610338565b4284101561042a5760405162461bcd60e51b815260206004820152602260248201527f6e657720726f756e64732073686f756c6420626520696e207468652066757475604482015261726560f01b6064820152608401610338565b6003805490600061043a83612331565b9091555050600380546000818152600660205260409020600281018790559182018590559061046a908484611ddd565b506040518181527ff9465e09a9cd4cd6a0d6a75077f9781249102ba59ba6631015ceebee6616e0be9060200160405180910390a15050505050565b6000826000811180156104ba57506003548111155b6104d65760405162461bcd60e51b8152600401610338906121d3565b60008481526001602090815260408083206001600160a01b03871684529091529020545b949350505050565b60008381526005602052604081208161051b858561149c565b81526020019081526020016000205490509392505050565b8060008111801561054657506003548111155b6105625760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291610586916122c7565b106105a35760405162461bcd60e51b815260040161033890612201565b6003548083106106005760405162461bcd60e51b815260206004820152602260248201527f43616e2774206d6967726174652066726f6d20616e2061637469766520726f756044820152611b9960f21b6064820152608401610338565b6000838152600160209081526040808320338452909152902054806106675760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420656e6f7567682062616c616e636520746f206d6967726174650000006044820152606401610338565b600084815260066020526040812060010180548392906106889084906122df565b909155505060008481526001602081815260408084203385528252808420849055858452600690915282200180548392906106c49084906122c7565b90915550506000828152600160209081526040808320338085529252808320849055516000805160206123638339815191529261070692889290918691612238565b60405180910390a160008051602061236383398151915282338360016040516107329493929190612238565b60405180910390a16040805133815260208101839052908101859052606081018390527f98d2b1d29e5031a0e15170f32c6a62e031a004cdaa9ed8273c35d24a6b4256059060800160405180910390a150505050565b8460008111801561079b57506003548111155b6107b75760405162461bcd60e51b8152600401610338906121d3565b6000818152600660205260409020600381015460029091015442916107db916122c7565b116108245760405162461bcd60e51b815260206004820152601960248201527810d85b89dd081cdd185ad9481bdb881d1a1a5cc81c9bdd5b99603a1b6044820152606401610338565b8382146108735760405162461bcd60e51b815260206004820152601860248201527f556e657175616c20757365727320616e6420616d6f756e7400000000000000006044820152606401610338565b4287116108c25760405162461bcd60e51b815260206004820152601e60248201527f5369676e61747572652074696d657374616d70206973206578706972656400006044820152606401610338565b600061093b7f125dc503ce2b69c523e50afff3666a9f5c25748c13c6d58aef6966b48ef093158b8b6040516108f892919061218e565b604080519182900382206020830193909352810191909152606081018a905233608082015260a00160405160208183030381529060405280519060200120611670565b60008181526007602052604090205490915060ff161561099d5760405162461bcd60e51b815260206004820152601c60248201527f54686973207369676e617475726520686173206265656e2075736564000000006044820152606401610338565b60006109df828e8e8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061168992505050565b6004549091506001600160a01b03808316911614610a4b5760405162461bcd60e51b815260206004820152602360248201527f5369676e6174757265206e6f742066726f6d20612074727573746564207369676044820152623732b960e91b6064820152608401610338565b6000828152600760205260408120805460ff19166001179055805b87811015610ca8576000898983818110610a9057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610aa59190611f15565b90506000888884818110610ac957634e487b7160e01b600052603260045260246000fd5b90506020020135905060008111610b385760405162461bcd60e51b815260206004820152602d60248201527f596f752063616e2774207374616b65206e6f7468696e67206f6e20612073656c60448201526c6563746564206164647265737360981b6064820152608401610338565b6001600160a01b038216610b8e5760405162461bcd60e51b815260206004820152601c60248201527f63616e2774207374616b6520746865207a65726f2061646472657373000000006044820152606401610338565b6001600160a01b038216331415610bf35760405162461bcd60e51b8152602060048201526024808201527f596f752063616e2774207374616b65206f6e20796f75722061646472657373206044820152636865726560e01b6064820152608401610338565b60008c81526005602052604081208291610c0d338661149c565b81526020019081526020016000206000828254610c2a91906122c7565b90915550610c3a905081856122c7565b604080518e81523360208201526001600160a01b03851681830152606081018490526001608082015290519195507f178123d39dce6e2b64dc524173d382bbaa21eeb3f2e27ecf9d5ff72e10e6eb03919081900360a00190a150508080610ca090612331565b915050610a66565b506000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610cfb57600080fd5b505af1158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d339190611f68565b610d775760405162461bcd60e51b8152602060048201526015602482015274756e61626c6520746f207374616b6520757365727360581b6044820152606401610338565b60008981526006602052604081206001018054839290610d989084906122c7565b90915550505050505050505050505050505050565b82600081118015610dc057506003548111155b610ddc5760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291610e00916122c7565b10610e1d5760405162461bcd60e51b815260040161033890612201565b6000805b8381101561108c57848482818110610e4957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e5e9190611f15565b6001600160a01b0316610eb35760405162461bcd60e51b815260206004820152601e60248201527f63616e277420756e7374616b6520746865207a65726f206164647265737300006044820152606401610338565b33858583818110610ed457634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ee99190611f15565b6001600160a01b03161415610f4f5760405162461bcd60e51b815260206004820152602660248201527f596f752063616e277420756e7374616b65206f6e20796f75722061646472657360448201526573206865726560d01b6064820152608401610338565b6000610f8a33878785818110610f7557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906102ad9190611f15565b6000888152600560209081526040808320848452909152902054909150801561107757600088815260056020908152604080832085845290915281208054839290610fd69084906122df565b90915550610fe6905081856122c7565b93507f178123d39dce6e2b64dc524173d382bbaa21eeb3f2e27ecf9d5ff72e10e6eb03883389898781811061102b57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906110409190611f15565b604080519384526001600160a01b039283166020850152911690820152606081018390526000608082015260a00160405180910390a15b5050808061108490612331565b915050610e21565b50600085815260066020526040812060010180548392906110ae9084906122df565b909155505060005460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156110ff57600080fd5b505af1158015611113573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111379190611f68565b6111835760405162461bcd60e51b815260206004820152601760248201527f756e61626c6520746f20756e7374616b652075736572730000000000000000006044820152606401610338565b5050505050565b6000806000611198846114de565b50509150915042821080156104fa5750426111b382846122c7565b11949350505050565b6002546001600160a01b031633146111e65760405162461bcd60e51b81526004016103389061219e565b6111f060006116ad565b565b8160008111801561120557506003548111155b6112215760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291611245916122c7565b1161128e5760405162461bcd60e51b815260206004820152601960248201527810d85b89dd081cdd185ad9481bdb881d1a1a5cc81c9bdd5b99603a1b6044820152606401610338565b61129883836116ff565b600083815260066020526040812060010180548492906112b99084906122c7565b9091555050604051600080516020612363833981519152906112e390859033908690600190612238565b60405180910390a1505050565b8160008111801561130357506003548111155b61131f5760405162461bcd60e51b8152600401610338906121d3565b600081815260066020526040902060038101546002909101544291611343916122c7565b106113605760405162461bcd60e51b815260040161033890612201565b60008381526001602090815260408083203384529091529020548211156113c95760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f7567682062616c616e636520746f20776974686472617700006044820152606401610338565b600083815260066020526040812060010180548492906113ea9084906122df565b909155506113fa90508383611800565b60008051602061236383398151915283338460006040516112e39493929190612238565b6002546001600160a01b031633146114485760405162461bcd60e51b81526004016103389061219e565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527f58df529e94457075f675d7cb1a7234cc93b05c50d14cad337c8e3a494ac6dbb99060200160405180910390a150565b604080516001600160a01b0380851660208301528316918101919091526000906060015b60405160208183030381529060405280519060200120905092915050565b60008060006060846000811180156114f857506003548111155b6115145760405162461bcd60e51b8152600401610338906121d3565b60008681526006602052604090206002810154600382015460018301548354929391929091908190611545906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611571906122f6565b80156115be5780601f10611593576101008083540402835291602001916115be565b820191906000526020600020905b8154815290600101906020018083116115a157829003601f168201915b505050505090509450945094509450509193509193565b6002546001600160a01b031633146115ff5760405162461bcd60e51b81526004016103389061219e565b6001600160a01b0381166116645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610338565b61166d816116ad565b50565b600061168361167d611902565b83611a29565b92915050565b60008060006116988585611a50565b915091506116a581611ac0565b509392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561175157600080fd5b505af1158015611765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117899190611f68565b6117ce5760405162461bcd60e51b81526020600482015260166024820152751d5b98589b19481d1bc81cdd185ad948185b5bdd5b9d60521b6044820152606401610338565b6000828152600160209081526040808320338452909152812080548392906117f79084906122c7565b90915550505050565b6000828152600160209081526040808320338452909152812080548392906118299084906122df565b909155505060005460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561187a57600080fd5b505af115801561188e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b29190611f68565b6118fe5760405162461bcd60e51b815260206004820152601860248201527f756e61626c6520746f20756e7374616b6520616d6f756e7400000000000000006044820152606401610338565b5050565b6000306001600160a01b037f00000000000000000000000049e401841d0b4f5884131d634c1d17a1f7371e411614801561195b57507f000000000000000000000000000000000000000000000000000000000000000146145b1561198557507f0ae9b555ec108791c26c3981fa43e65044bcf2cc16e533dcfd7c2755d617f68b90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f6955bbe5f09da2e342c4468d939d98ff0c032d3b0ed454ac46700d5adcecc7a3828401527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b360608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60405161190160f01b602082015260228101839052604281018290526000906062016114c0565b600080825160411415611a875760208301516040840151606085015160001a611a7b87828585611cc1565b94509450505050611ab9565b825160401415611ab15760208301516040840151611aa6868383611dae565b935093505050611ab9565b506000905060025b9250929050565b6000816004811115611ae257634e487b7160e01b600052602160045260246000fd5b1415611aeb5750565b6001816004811115611b0d57634e487b7160e01b600052602160045260246000fd5b1415611b5b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610338565b6002816004811115611b7d57634e487b7160e01b600052602160045260246000fd5b1415611bcb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610338565b6003816004811115611bed57634e487b7160e01b600052602160045260246000fd5b1415611c465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610338565b6004816004811115611c6857634e487b7160e01b600052602160045260246000fd5b141561166d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610338565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cf85750600090506003611da5565b8460ff16601b14158015611d1057508460ff16601c14155b15611d215750600090506004611da5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d75573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d9e57600060019250925050611da5565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611dcf87828885611cc1565b935093505050935093915050565b828054611de9906122f6565b90600052602060002090601f016020900481019282611e0b5760008555611e51565b82601f10611e245782800160ff19823516178555611e51565b82800160010185558215611e51579182015b82811115611e51578235825591602001919060010190611e36565b50611e5d929150611e61565b5090565b5b80821115611e5d5760008155600101611e62565b80356001600160a01b0381168114611e8d57600080fd5b919050565b60008083601f840112611ea3578182fd5b50813567ffffffffffffffff811115611eba578182fd5b6020830191508360208260051b8501011115611ab957600080fd5b60008083601f840112611ee6578182fd5b50813567ffffffffffffffff811115611efd578182fd5b602083019150836020828501011115611ab957600080fd5b600060208284031215611f26578081fd5b611f2f82611e76565b9392505050565b60008060408385031215611f48578081fd5b611f5183611e76565b9150611f5f60208401611e76565b90509250929050565b600060208284031215611f79578081fd5b81518015158114611f2f578182fd5b60008060008060008060008060008060c08b8d031215611fa6578586fd5b8a3567ffffffffffffffff80821115611fbd578788fd5b611fc98e838f01611ed5565b909c509a5060208d0135915080821115611fe1578788fd5b611fed8e838f01611ed5565b909a50985060408d0135975060608d0135965060808d0135915080821115612013578586fd5b61201f8e838f01611e92565b909650945060a08d0135915080821115612037578384fd5b506120448d828e01611e92565b915080935050809150509295989b9194979a5092959850565b60006020828403121561206e578081fd5b5035919050565b60008060408385031215612087578182fd5b82359150611f5f60208401611e76565b6000806000606084860312156120ab578283fd5b833592506120bb60208501611e76565b91506120c960408501611e76565b90509250925092565b6000806000604084860312156120e6578283fd5b83359250602084013567ffffffffffffffff811115612103578283fd5b61210f86828701611e92565b9497909650939450505050565b6000806040838503121561212e578182fd5b50508035926020909101359150565b60008060008060608587031215612152578384fd5b8435935060208501359250604085013567ffffffffffffffff811115612176578283fd5b61218287828801611ed5565b95989497509550505050565b8183823760009101908152919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273149bdd5b9908191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252601d908201527f43616e277420756e7374616b6520616e2061637469766520726f756e64000000604082015260600190565b9384526001600160a01b0392909216602084015260408301521515606082015260800190565b848152600060208581840152846040840152608060608401528351806080850152825b8181101561229d5785810183015185820160a001528201612281565b818111156122ae578360a083870101525b50601f01601f19169290920160a0019695505050505050565b600082198211156122da576122da61234c565b500190565b6000828210156122f1576122f161234c565b500390565b600181811c9082168061230a57607f821691505b6020821081141561232b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123455761234561234c565b5060010190565b634e487b7160e01b600052601160045260246000fdfedcf891885e788b94db6de05809e1c074e1396e919fa3ef010342de9dfbdd8361a264697066735822122008f42fe628b816f3cfbf73cc8ce2d2d2b5bff58d33a0c537f0add07914711aea64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000de30da39c46104798bb5aa3fe8b9e0e1f348163f000000000000000000000000b9598aca9eda4e229924726a11b38d8073184899
-----Decoded View---------------
Arg [0] : _token (address): 0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F
Arg [1] : _trustedSigner (address): 0xb9598Aca9eDA4e229924726A11b38d8073184899
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000de30da39c46104798bb5aa3fe8b9e0e1f348163f
Arg [1] : 000000000000000000000000b9598aca9eda4e229924726a11b38d8073184899
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.604956 | 6,260.6657 | $3,787.43 |
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.