More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 112 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 20396853 | 14 days ago | IN | 0 ETH | 0.00016479 | ||||
Claim | 20340488 | 22 days ago | IN | 0 ETH | 0.00064495 | ||||
Claim | 20206479 | 41 days ago | IN | 0 ETH | 0.00038859 | ||||
Claim | 19970703 | 74 days ago | IN | 0 ETH | 0.0015194 | ||||
Claim | 19762430 | 103 days ago | IN | 0 ETH | 0.00120092 | ||||
Claim | 19539988 | 134 days ago | IN | 0 ETH | 0.00300915 | ||||
Claim | 19471758 | 144 days ago | IN | 0 ETH | 0.00370947 | ||||
Claim | 19334600 | 163 days ago | IN | 0 ETH | 0.00781169 | ||||
Claim | 19201834 | 181 days ago | IN | 0 ETH | 0.00264438 | ||||
Claim | 18930238 | 219 days ago | IN | 0 ETH | 0.00302095 | ||||
Claim | 18886490 | 226 days ago | IN | 0 ETH | 0.00220984 | ||||
Claim | 18759297 | 243 days ago | IN | 0 ETH | 0.00240025 | ||||
Claim | 18734285 | 247 days ago | IN | 0 ETH | 0.00389469 | ||||
Claim | 18602462 | 265 days ago | IN | 0 ETH | 0.00187788 | ||||
Claim | 18427395 | 290 days ago | IN | 0 ETH | 0.00210325 | ||||
Claim | 18287758 | 309 days ago | IN | 0 ETH | 0.00084856 | ||||
Claim | 18146771 | 329 days ago | IN | 0 ETH | 0.00092932 | ||||
Claim | 18037835 | 344 days ago | IN | 0 ETH | 0.00177372 | ||||
Claim | 17977255 | 353 days ago | IN | 0 ETH | 0.00144552 | ||||
Claim | 17898118 | 364 days ago | IN | 0 ETH | 0.00146095 | ||||
Claim | 17703862 | 391 days ago | IN | 0 ETH | 0.00156635 | ||||
Claim | 17550401 | 413 days ago | IN | 0 ETH | 0.00459009 | ||||
Claim | 17498319 | 420 days ago | IN | 0 ETH | 0.0015847 | ||||
Claim | 17390305 | 435 days ago | IN | 0 ETH | 0.0027425 | ||||
Claim | 17301076 | 448 days ago | IN | 0 ETH | 0.00375003 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ClaimPurchaseMint
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-06 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.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); } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/math/Math.sol pragma solidity ^0.6.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.6.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: contracts/interfaces/INsure.sol pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; interface INsure { function burn(uint256 amount) external ; function transfer(address recipient, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function mint(address _to, uint256 _amount) external returns (bool); function balanceOf(address account) external view returns (uint256); } // File: contracts/ClaimPurchaseMint.sol /** * @author Nsure.Network <[email protected]> * * @dev A contract for claiming purchase cover rewards. */ pragma solidity ^0.6.0; contract ClaimPurchaseMint is Ownable, ReentrancyGuard{ using SafeMath for uint256; using SafeERC20 for IERC20; address public signer; string constant public name = "Claim"; string public constant version = "1"; uint256 public nsurePerBlock = 2 * 1e17; uint256 public deadlineDuration = 30 minutes; /// @notice A record of states for signing / validating signatures mapping (address => uint256) public nonces; INsure public Nsure; uint256 private _totalSupply; uint256 public claimDuration = 60 minutes; uint256 lastRewardBlock; mapping(address => uint256) private _balances; mapping(address => uint256) public claimAt; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the permit struct used by the contract bytes32 public constant CLAIM_TYPEHASH = keccak256("Claim(address account,uint256 amount,uint256 nonce,uint256 deadline)"); constructor(address _signer,address _nsure, uint256 startBlock) public { Nsure = INsure(_nsure); lastRewardBlock = block.number > startBlock ? block.number : startBlock; signer = _signer; } function totalSupply() external view returns (uint256) { return _totalSupply; } function balanceOf(address account) external view returns (uint256) { return _balances[account]; } function setClaimDuration(uint256 _duration)external onlyOwner { require(claimDuration != _duration, "the same duration"); claimDuration = _duration; emit SetClaimDuration(_duration); } function setSigner(address _signer) external onlyOwner { require(_signer != address(0),"_signer is zero"); signer = _signer; emit SetSigner(_signer); } function setDeadlineDuration(uint256 _duration) external onlyOwner { deadlineDuration = _duration; emit SetDeadlineDuration(_duration); } function updateBlockReward(uint256 _newReward) external onlyOwner { nsurePerBlock = _newReward; emit UpdateBlockReward(_newReward); } function mintPurchaseNsure() internal { if (block.number <= lastRewardBlock) { return ; } uint256 nsureReward = nsurePerBlock.mul(block.number.sub(lastRewardBlock)); // to avoid 0 reward of minting. if(nsureReward > 0) { Nsure.mint(address(this), nsureReward); } lastRewardBlock = block.number; } // claim rewards of purchase rewards function claim(uint256 _amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant { require(block.timestamp > claimAt[msg.sender].add(claimDuration), "wait" ); require(block.timestamp.add(deadlineDuration) > deadline, "expired"); require(block.timestamp <= deadline, "signature expired"); // mint nsure to address(this) first. mintPurchaseNsure(); bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(version)), getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(CLAIM_TYPEHASH,address(msg.sender), _amount, nonces[msg.sender]++, deadline)); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "invalid signature"); require(signatory == signer, "unauthorized"); claimAt[msg.sender] = block.timestamp; Nsure.transfer(msg.sender, _amount); emit Claim(msg.sender, _amount, nonces[msg.sender]-1); } function getChainId() internal pure returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } event Claim(address indexed user, uint256 amount, uint256 nonce); event SetClaimDuration(uint256 duration); event SetSigner(address indexed signer); event SetDeadlineDuration(uint256 duration); event UpdateBlockReward(uint256 reward); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address","name":"_nsure","type":"address"},{"internalType":"uint256","name":"startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"SetClaimDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"SetDeadlineDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"}],"name":"SetSigner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"UpdateBlockReward","type":"event"},{"inputs":[],"name":"CLAIM_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Nsure","outputs":[{"internalType":"contract INsure","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadlineDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nsurePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_duration","type":"uint256"}],"name":"setClaimDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDeadlineDuration","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newReward","type":"uint256"}],"name":"updateBlockReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526702c68af0bb140000600355610708600455610e1060085534801561002857600080fd5b50604051620011d2380380620011d283398101604081905261004991610116565b60006100536100f5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600680546001600160a01b0319166001600160a01b0384161790554381106100c957806100cb565b435b6009555050600280546001600160a01b0319166001600160a01b0392909216919091179055610153565b3390565b80516001600160a01b038116811461011057600080fd5b92915050565b60008060006060848603121561012a578283fd5b61013485856100f9565b925061014385602086016100f9565b9150604084015190509250925092565b61106f80620001636000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063ab1a4d941161007c578063ab1a4d9414610228578063b702711914610230578063ba71ae9f14610238578063f2fde38b14610240578063f580ffcb14610253578063fa6b3b531461026657610137565b8063715018a6146101ea5780637ecebe00146101f25780638da5cb5b1461020557806397c8cd931461020d57806398016b511461022057610137565b806354fd4d50116100ff57806354fd4d50146101a157806358a6a893146101a95780636b0509b1146101bc5780636c19e783146101c457806370a08231146101d757610137565b806306fdde031461013c57806318160ddd1461015a57806320606b701461016f578063238ac933146101775780633edba6ee1461018c575b600080fd5b610144610279565b6040516101519190610d9f565b60405180910390f35b61016261029a565b6040516101519190610d20565b6101626102a0565b61017f6102c4565b6040516101519190610cf3565b61019f61019a366004610c73565b6102d3565b005b610144610351565b6101626101b7366004610c2c565b61036e565b610162610380565b61019f6101d2366004610c2c565b6103a4565b6101626101e5366004610c2c565b610449565b61019f610464565b610162610200366004610c2c565b6104e3565b61017f6104f5565b61019f61021b366004610c73565b610504565b610162610590565b610162610596565b61017f61059c565b6101626105ab565b61019f61024e366004610c2c565b6105b1565b61019f610261366004610c73565b610667565b61019f610274366004610c8b565b6106d1565b60405180604001604052806005815260200164436c61696d60d81b81525081565b60075490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6002546001600160a01b031681565b6102db610a87565b6000546001600160a01b039081169116146103115760405162461bcd60e51b815260040161030890610f69565b60405180910390fd5b60048190556040517f0f94ac0902239229bbd473ea5f9e71ea7b9314f5047d6e49a8359ce3e578e84290610346908390610d20565b60405180910390a150565b604051806040016040528060018152602001603160f81b81525081565b600b6020526000908152604090205481565b7f59ab0198ee5acabc4b507660abee57e25793713a925b00881a239217fc3b93d381565b6103ac610a87565b6000546001600160a01b039081169116146103d95760405162461bcd60e51b815260040161030890610f69565b6001600160a01b0381166103ff5760405162461bcd60e51b815260040161030890610e9a565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fbb10aee7ef5a307b8097c6a7f2892b909ff1736fd24a6a5260640c185f7153b690600090a250565b6001600160a01b03166000908152600a602052604090205490565b61046c610a87565b6000546001600160a01b039081169116146104995760405162461bcd60e51b815260040161030890610f69565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60056020526000908152604090205481565b6000546001600160a01b031690565b61050c610a87565b6000546001600160a01b039081169116146105395760405162461bcd60e51b815260040161030890610f69565b80600854141561055b5760405162461bcd60e51b815260040161030890610f9e565b60088190556040517f36c99a63aaaf7a98bb0eaaecb5fa7040272a5bb21656e4cda67af3f91c9d74ef90610346908390610d20565b60035481565b60085481565b6006546001600160a01b031681565b60045481565b6105b9610a87565b6000546001600160a01b039081169116146105e65760405162461bcd60e51b815260040161030890610f69565b6001600160a01b03811661060c5760405162461bcd60e51b815260040161030890610e1d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61066f610a87565b6000546001600160a01b0390811691161461069c5760405162461bcd60e51b815260040161030890610f69565b60038190556040517f543f86787e6d3c156a65872c718d4d286227ce0eb2d59eac9e1ba1d33028379590610346908390610d20565b600260015414156106f45760405162461bcd60e51b815260040161030890610fc9565b6002600155600854336000908152600b602052604090205461071591610a8b565b42116107335760405162461bcd60e51b815260040161030890610f25565b8361074960045442610a8b90919063ffffffff16565b116107665760405162461bcd60e51b815260040161030890610ec3565b834211156107865760405162461bcd60e51b815260040161030890611000565b61078e610ab9565b6040805180820182526005815264436c61696d60d81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f5c2db6855baf6c374b9d0065771a33d4c31a8627d7b9d40f3fc6aa5dbd7b8a487fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc661082b610b80565b30604051602001610840959493929190610d55565b60408051601f1981840301815282825280516020918201203360008181526005845293842080546001810190915591955092936108a7937f59ab0198ee5acabc4b507660abee57e25793713a925b00881a239217fc3b93d39390928c9290918c9101610d29565b604051602081830303815290604052805190602001209050600082826040516020016108d4929190610cd8565b6040516020818303038152906040528051906020012090506000600182888888604051600081526020016040526040516109119493929190610d81565b6020604051602081039080840390855afa158015610933573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109665760405162461bcd60e51b815260040161030890610df2565b6002546001600160a01b038281169116146109935760405162461bcd60e51b815260040161030890610f43565b336000818152600b602052604090819020429055600654905163a9059cbb60e01b81526001600160a01b039091169163a9059cbb916109d791908d90600401610d07565b602060405180830381600087803b1580156109f157600080fd5b505af1158015610a05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a299190610c53565b5033600081815260056020526040908190205490517f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf791610a70918d91600019019061102b565b60405180910390a250506001805550505050505050565b3390565b600082820183811015610ab05760405162461bcd60e51b815260040161030890610e63565b90505b92915050565b6009544311610ac757610b7e565b6000610aea610ae160095443610b8490919063ffffffff16565b60035490610bc6565b90508015610b78576006546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990610b249030908590600401610d07565b602060405180830381600087803b158015610b3e57600080fd5b505af1158015610b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b769190610c53565b505b50436009555b565b4690565b6000610ab083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c00565b600082610bd557506000610ab3565b82820282848281610be257fe5b0414610ab05760405162461bcd60e51b815260040161030890610ee4565b60008184841115610c245760405162461bcd60e51b81526004016103089190610d9f565b505050900390565b600060208284031215610c3d578081fd5b81356001600160a01b0381168114610ab0578182fd5b600060208284031215610c64578081fd5b81518015158114610ab0578182fd5b600060208284031215610c84578081fd5b5035919050565b600080600080600060a08688031215610ca2578081fd5b8535945060208601359350604086013560ff81168114610cc0578182fd5b94979396509394606081013594506080013592915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b9485526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015610dcb57858101830151858201604001528201610daf565b81811115610ddc5783604083870101525b50601f01601f1916929092016040019392505050565b602080825260119082015270696e76616c6964207369676e617475726560781b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600f908201526e5f7369676e6572206973207a65726f60881b604082015260600190565b602080825260079082015266195e1c1a5c995960ca1b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252600490820152631dd85a5d60e21b604082015260600190565b6020808252600c908201526b1d5b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152703a34329039b0b6b290323ab930ba34b7b760791b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601190820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604082015260600190565b91825260208201526040019056fea26469706673582212203d0990181175c7b851025be70a35db3942d7b62fc71603303f3af88c03e5e03864736f6c634300060c0033000000000000000000000000bb826fb86fae53be90f0b711c6a506860b7bdbe300000000000000000000000020945ca1df56d237fd40036d47e866c7dccd21140000000000000000000000000000000000000000000000000000000000ba5338
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063ab1a4d941161007c578063ab1a4d9414610228578063b702711914610230578063ba71ae9f14610238578063f2fde38b14610240578063f580ffcb14610253578063fa6b3b531461026657610137565b8063715018a6146101ea5780637ecebe00146101f25780638da5cb5b1461020557806397c8cd931461020d57806398016b511461022057610137565b806354fd4d50116100ff57806354fd4d50146101a157806358a6a893146101a95780636b0509b1146101bc5780636c19e783146101c457806370a08231146101d757610137565b806306fdde031461013c57806318160ddd1461015a57806320606b701461016f578063238ac933146101775780633edba6ee1461018c575b600080fd5b610144610279565b6040516101519190610d9f565b60405180910390f35b61016261029a565b6040516101519190610d20565b6101626102a0565b61017f6102c4565b6040516101519190610cf3565b61019f61019a366004610c73565b6102d3565b005b610144610351565b6101626101b7366004610c2c565b61036e565b610162610380565b61019f6101d2366004610c2c565b6103a4565b6101626101e5366004610c2c565b610449565b61019f610464565b610162610200366004610c2c565b6104e3565b61017f6104f5565b61019f61021b366004610c73565b610504565b610162610590565b610162610596565b61017f61059c565b6101626105ab565b61019f61024e366004610c2c565b6105b1565b61019f610261366004610c73565b610667565b61019f610274366004610c8b565b6106d1565b60405180604001604052806005815260200164436c61696d60d81b81525081565b60075490565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6002546001600160a01b031681565b6102db610a87565b6000546001600160a01b039081169116146103115760405162461bcd60e51b815260040161030890610f69565b60405180910390fd5b60048190556040517f0f94ac0902239229bbd473ea5f9e71ea7b9314f5047d6e49a8359ce3e578e84290610346908390610d20565b60405180910390a150565b604051806040016040528060018152602001603160f81b81525081565b600b6020526000908152604090205481565b7f59ab0198ee5acabc4b507660abee57e25793713a925b00881a239217fc3b93d381565b6103ac610a87565b6000546001600160a01b039081169116146103d95760405162461bcd60e51b815260040161030890610f69565b6001600160a01b0381166103ff5760405162461bcd60e51b815260040161030890610e9a565b600280546001600160a01b0319166001600160a01b0383169081179091556040517fbb10aee7ef5a307b8097c6a7f2892b909ff1736fd24a6a5260640c185f7153b690600090a250565b6001600160a01b03166000908152600a602052604090205490565b61046c610a87565b6000546001600160a01b039081169116146104995760405162461bcd60e51b815260040161030890610f69565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60056020526000908152604090205481565b6000546001600160a01b031690565b61050c610a87565b6000546001600160a01b039081169116146105395760405162461bcd60e51b815260040161030890610f69565b80600854141561055b5760405162461bcd60e51b815260040161030890610f9e565b60088190556040517f36c99a63aaaf7a98bb0eaaecb5fa7040272a5bb21656e4cda67af3f91c9d74ef90610346908390610d20565b60035481565b60085481565b6006546001600160a01b031681565b60045481565b6105b9610a87565b6000546001600160a01b039081169116146105e65760405162461bcd60e51b815260040161030890610f69565b6001600160a01b03811661060c5760405162461bcd60e51b815260040161030890610e1d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61066f610a87565b6000546001600160a01b0390811691161461069c5760405162461bcd60e51b815260040161030890610f69565b60038190556040517f543f86787e6d3c156a65872c718d4d286227ce0eb2d59eac9e1ba1d33028379590610346908390610d20565b600260015414156106f45760405162461bcd60e51b815260040161030890610fc9565b6002600155600854336000908152600b602052604090205461071591610a8b565b42116107335760405162461bcd60e51b815260040161030890610f25565b8361074960045442610a8b90919063ffffffff16565b116107665760405162461bcd60e51b815260040161030890610ec3565b834211156107865760405162461bcd60e51b815260040161030890611000565b61078e610ab9565b6040805180820182526005815264436c61696d60d81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f5c2db6855baf6c374b9d0065771a33d4c31a8627d7b9d40f3fc6aa5dbd7b8a487fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc661082b610b80565b30604051602001610840959493929190610d55565b60408051601f1981840301815282825280516020918201203360008181526005845293842080546001810190915591955092936108a7937f59ab0198ee5acabc4b507660abee57e25793713a925b00881a239217fc3b93d39390928c9290918c9101610d29565b604051602081830303815290604052805190602001209050600082826040516020016108d4929190610cd8565b6040516020818303038152906040528051906020012090506000600182888888604051600081526020016040526040516109119493929190610d81565b6020604051602081039080840390855afa158015610933573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166109665760405162461bcd60e51b815260040161030890610df2565b6002546001600160a01b038281169116146109935760405162461bcd60e51b815260040161030890610f43565b336000818152600b602052604090819020429055600654905163a9059cbb60e01b81526001600160a01b039091169163a9059cbb916109d791908d90600401610d07565b602060405180830381600087803b1580156109f157600080fd5b505af1158015610a05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a299190610c53565b5033600081815260056020526040908190205490517f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf791610a70918d91600019019061102b565b60405180910390a250506001805550505050505050565b3390565b600082820183811015610ab05760405162461bcd60e51b815260040161030890610e63565b90505b92915050565b6009544311610ac757610b7e565b6000610aea610ae160095443610b8490919063ffffffff16565b60035490610bc6565b90508015610b78576006546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990610b249030908590600401610d07565b602060405180830381600087803b158015610b3e57600080fd5b505af1158015610b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b769190610c53565b505b50436009555b565b4690565b6000610ab083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c00565b600082610bd557506000610ab3565b82820282848281610be257fe5b0414610ab05760405162461bcd60e51b815260040161030890610ee4565b60008184841115610c245760405162461bcd60e51b81526004016103089190610d9f565b505050900390565b600060208284031215610c3d578081fd5b81356001600160a01b0381168114610ab0578182fd5b600060208284031215610c64578081fd5b81518015158114610ab0578182fd5b600060208284031215610c84578081fd5b5035919050565b600080600080600060a08688031215610ca2578081fd5b8535945060208601359350604086013560ff81168114610cc0578182fd5b94979396509394606081013594506080013592915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b9485526001600160a01b0393909316602085015260408401919091526060830152608082015260a00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015610dcb57858101830151858201604001528201610daf565b81811115610ddc5783604083870101525b50601f01601f1916929092016040019392505050565b602080825260119082015270696e76616c6964207369676e617475726560781b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600f908201526e5f7369676e6572206973207a65726f60881b604082015260600190565b602080825260079082015266195e1c1a5c995960ca1b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252600490820152631dd85a5d60e21b604082015260600190565b6020808252600c908201526b1d5b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152703a34329039b0b6b290323ab930ba34b7b760791b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601190820152701cda59db985d1d5c9948195e1c1a5c9959607a1b604082015260600190565b91825260208201526040019056fea26469706673582212203d0990181175c7b851025be70a35db3942d7b62fc71603303f3af88c03e5e03864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bb826fb86fae53be90f0b711c6a506860b7bdbe300000000000000000000000020945ca1df56d237fd40036d47e866c7dccd21140000000000000000000000000000000000000000000000000000000000ba5338
-----Decoded View---------------
Arg [0] : _signer (address): 0xbB826fB86FaE53be90f0b711C6a506860b7bDbE3
Arg [1] : _nsure (address): 0x20945cA1df56D237fD40036d47E866C7DcCD2114
Arg [2] : startBlock (uint256): 12211000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000bb826fb86fae53be90f0b711c6a506860b7bdbe3
Arg [1] : 00000000000000000000000020945ca1df56d237fd40036d47e866c7dccd2114
Arg [2] : 0000000000000000000000000000000000000000000000000000000000ba5338
Deployed Bytecode Sourcemap
25509:4444:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25677:37;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26912:93;;;:::i;:::-;;;;;;;:::i;26320:137::-;;;:::i;25648:21::-;;;:::i;:::-;;;;;;;:::i;27551:160::-;;;;;;:::i;:::-;;:::i;:::-;;25721:36;;;:::i;26200:42::-;;;;;;:::i;:::-;;:::i;26548:122::-;;;:::i;27360:183::-;;;;;;:::i;:::-;;:::i;27013:112::-;;;;;;:::i;:::-;;:::i;8104:148::-;;;:::i;25950:42::-;;;;;;:::i;:::-;;:::i;7462:79::-;;;:::i;27133:219::-;;;;;;:::i;:::-;;:::i;25766:42::-;;;:::i;26068:41::-;;;:::i;26007:19::-;;;:::i;25821:44::-;;;:::i;8407:244::-;;;;;;:::i;:::-;;:::i;27719:158::-;;;;;;:::i;:::-;;:::i;28332:1182::-;;;;;;:::i;:::-;;:::i;25677:37::-;;;;;;;;;;;;;;-1:-1:-1;;;25677:37:0;;;;:::o;26912:93::-;26985:12;;26912:93;:::o;26320:137::-;26362:95;26320:137;:::o;25648:21::-;;;-1:-1:-1;;;;;25648:21:0;;:::o;27551:160::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;;;;;;;;;27629:16:::1;:28:::0;;;27673:30:::1;::::0;::::1;::::0;::::1;::::0;27648:9;;27673:30:::1;:::i;:::-;;;;;;;;27551:160:::0;:::o;25721:36::-;;;;;;;;;;;;;;-1:-1:-1;;;25721:36:0;;;;:::o;26200:42::-;;;;;;;;;;;;;:::o;26548:122::-;26589:81;26548:122;:::o;27360:183::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;27434:21:0;::::1;27426:48;;;;-1:-1:-1::0;;;27426:48:0::1;;;;;;;:::i;:::-;27485:6;:16:::0;;-1:-1:-1;;;;;;27485:16:0::1;-1:-1:-1::0;;;;;27485:16:0;::::1;::::0;;::::1;::::0;;;27517:18:::1;::::0;::::1;::::0;-1:-1:-1;;27517:18:0::1;27360:183:::0;:::o;27013:112::-;-1:-1:-1;;;;;27099:18:0;27072:7;27099:18;;;:9;:18;;;;;;;27013:112::o;8104:148::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;8211:1:::1;8195:6:::0;;8174:40:::1;::::0;-1:-1:-1;;;;;8195:6:0;;::::1;::::0;8174:40:::1;::::0;8211:1;;8174:40:::1;8242:1;8225:19:::0;;-1:-1:-1;;;;;;8225:19:0::1;::::0;;8104:148::o;25950:42::-;;;;;;;;;;;;;:::o;7462:79::-;7500:7;7527:6;-1:-1:-1;;;;;7527:6:0;7462:79;:::o;27133:219::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;27232:9:::1;27215:13;;:26;;27207:56;;;;-1:-1:-1::0;;;27207:56:0::1;;;;;;;:::i;:::-;27276:13;:25:::0;;;27317:27:::1;::::0;::::1;::::0;::::1;::::0;27292:9;;27317:27:::1;:::i;25766:42::-:0;;;;:::o;26068:41::-;;;;:::o;26007:19::-;;;-1:-1:-1;;;;;26007:19:0;;:::o;25821:44::-;;;;:::o;8407:244::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;8496:22:0;::::1;8488:73;;;;-1:-1:-1::0;;;8488:73:0::1;;;;;;;:::i;:::-;8598:6;::::0;;8577:38:::1;::::0;-1:-1:-1;;;;;8577:38:0;;::::1;::::0;8598:6;::::1;::::0;8577:38:::1;::::0;::::1;8626:6;:17:::0;;-1:-1:-1;;;;;;8626:17:0::1;-1:-1:-1::0;;;;;8626:17:0;;;::::1;::::0;;;::::1;::::0;;8407:244::o;27719:158::-;7684:12;:10;:12::i;:::-;7674:6;;-1:-1:-1;;;;;7674:6:0;;;:22;;;7666:67;;;;-1:-1:-1;;;7666:67:0;;;;;;;:::i;:::-;27796:13:::1;:28:::0;;;27840:29:::1;::::0;::::1;::::0;::::1;::::0;27814:10;;27840:29:::1;:::i;28332:1182::-:0;23827:1;24433:7;;:19;;24425:63;;;;-1:-1:-1;;;24425:63:0;;;;;;;:::i;:::-;23827:1;24566:7;:18;28496:13:::1;::::0;28480:10:::1;28472:19;::::0;;;:7:::1;:19;::::0;;;;;:38:::1;::::0;:23:::1;:38::i;:::-;28454:15;:56;28446:74;;;;-1:-1:-1::0;;;28446:74:0::1;;;;;;;:::i;:::-;28579:8;28539:37;28559:16;;28539:15;:19;;:37;;;;:::i;:::-;:48;28531:68;;;;-1:-1:-1::0;;;28531:68:0::1;;;;;;;:::i;:::-;28639:8;28620:15;:27;;28612:57;;;;-1:-1:-1::0;;;28612:57:0::1;;;;;;;:::i;:::-;28727:19;:17;:19::i;:::-;28841:4;::::0;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;28841:4:0::1;::::0;;::::1;::::0;28865:7;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;28865:7:0;::::1;::::0;28759:23:::1;26362:95;28825:22:::0;28849:25;28876:12:::1;:10;:12::i;:::-;28898:4;28797:107;;;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;28797:107:0;;::::1;::::0;;;;;;28787:118;;28797:107:::1;28787:118:::0;;::::1;::::0;28989:10:::1;28916:18;29011::::0;;;:6:::1;:18:::0;;;;;:20;;::::1;::::0;::::1;::::0;;;28787:118;;-1:-1:-1;28916:18:0;;28955:87:::1;::::0;26589:81:::1;::::0;28989:10;;29002:7;;29011:20;;29033:8;;28955:87:::1;;:::i;:::-;;;;;;;;;;;;;28945:98;;;;;;28916:127;;29056:14;29117:15;29134:10;29088:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;29078:68;;;;;;29056:90;;29157:17;29179:26;29189:6;29197:1;29200;29203;29179:26;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;29179:26:0::1;::::0;-1:-1:-1;;29179:26:0;;;-1:-1:-1;;;;;;;29226:23:0;::::1;29218:53;;;;-1:-1:-1::0;;;29218:53:0::1;;;;;;;:::i;:::-;29303:6;::::0;-1:-1:-1;;;;;29290:19:0;;::::1;29303:6:::0;::::1;29290:19;29282:44;;;;-1:-1:-1::0;;;29282:44:0::1;;;;;;;:::i;:::-;29357:10;29349:19;::::0;;;:7:::1;:19;::::0;;;;;;29371:15:::1;29349:37:::0;;29405:5:::1;::::0;:35;;-1:-1:-1;;;29405:35:0;;-1:-1:-1;;;;;29405:5:0;;::::1;::::0;:14:::1;::::0;:35:::1;::::0;29357:10;29432:7;;29405:35:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;29464:10:0::1;29485:18;::::0;;;:6:::1;:18;::::0;;;;;;;29458:48;;::::1;::::0;::::1;::::0;29476:7;;-1:-1:-1;;29485:20:0;;29458:48:::1;:::i;:::-;;;;;;;;-1:-1:-1::0;;23783:1:0;24745:22;;-1:-1:-1;;;;;;;28332:1182:0:o;6011:106::-;6099:10;6011:106;:::o;925:181::-;983:7;1015:5;;;1039:6;;;;1031:46;;;;-1:-1:-1;;;1031:46:0;;;;;;;:::i;:::-;1097:1;-1:-1:-1;925:181:0;;;;;:::o;27885:397::-;27955:15;;27939:12;:31;27935:71;;27987:8;;27935:71;28018:19;28040:52;28058:33;28075:15;;28058:12;:16;;:33;;;;:::i;:::-;28040:13;;;:17;:52::i;:::-;28018:74;-1:-1:-1;28150:15:0;;28147:85;;28182:5;;:38;;-1:-1:-1;;;28182:38:0;;-1:-1:-1;;;;;28182:5:0;;;;:10;;:38;;28201:4;;28208:11;;28182:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;28147:85;-1:-1:-1;28262:12:0;28244:15;:30;27885:397;:::o;29522:156::-;29635:9;29522:156;:::o;1389:136::-;1447:7;1474:43;1478:1;1481;1474:43;;;;;;;;;;;;;;;;;:3;:43::i;2279:471::-;2337:7;2582:6;2578:47;;-1:-1:-1;2612:1:0;2605:8;;2578:47;2649:5;;;2653:1;2649;:5;:1;2673:5;;;;;:10;2665:56;;;;-1:-1:-1;;;2665:56:0;;;;;;;:::i;1828:192::-;1914:7;1950:12;1942:6;;;;1934:29;;;;-1:-1:-1;;;1934:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;1986:5:0;;;1828:192::o;684:241:-1:-;;788:2;776:9;767:7;763:23;759:32;756:2;;;-1:-1;;794:12;756:2;72:20;;-1:-1;;;;;18654:54;;20073:35;;20063:2;;-1:-1;;20112:12;932:257;;1044:2;1032:9;1023:7;1019:23;1015:32;1012:2;;;-1:-1;;1050:12;1012:2;223:6;217:13;20219:5;18487:13;18480:21;20197:5;20194:32;20184:2;;-1:-1;;20230:12;1196:241;;1300:2;1288:9;1279:7;1275:23;1271:32;1268:2;;;-1:-1;;1306:12;1268:2;-1:-1;481:20;;1262:175;-1:-1;1262:175::o;1444:739::-;;;;;;1614:3;1602:9;1593:7;1589:23;1585:33;1582:2;;;-1:-1;;1621:12;1582:2;494:6;481:20;1673:63;;1773:2;1816:9;1812:22;481:20;1781:63;;1881:2;1922:9;1918:22;616:20;18870:4;20587:5;18859:16;20564:5;20561:33;20551:2;;-1:-1;;20598:12;20551:2;1576:607;;;;-1:-1;1889:61;;1987:2;2026:22;;344:20;;-1:-1;2095:3;2135:22;344:20;;1576:607;-1:-1;;1576:607::o;7924:659::-;-1:-1;;;4239:87;;4224:1;4345:11;;2530:37;;;;8435:12;;;2530:37;8546:12;;;8169:414::o;8590:222::-;-1:-1;;;;;18654:54;;;;2410:37;;8717:2;8702:18;;8688:124::o;8819:349::-;-1:-1;;;;;18654:54;;;;2269:58;;9154:2;9139:18;;2530:37;8982:2;8967:18;;8953:215::o;9515:222::-;2530:37;;;9642:2;9627:18;;9613:124::o;9744:668::-;2530:37;;;-1:-1;;;;;18654:54;;;;10148:2;10133:18;;2410:37;10231:2;10216:18;;2530:37;;;;10314:2;10299:18;;2530:37;10397:3;10382:19;;2530:37;9983:3;9968:19;;9954:458::o;10419:668::-;2530:37;;;10823:2;10808:18;;2530:37;;;;10906:2;10891:18;;2530:37;;;;10989:2;10974:18;;2530:37;-1:-1;;;;;18654:54;11072:3;11057:19;;2410:37;10658:3;10643:19;;10629:458::o;11094:548::-;2530:37;;;18870:4;18859:16;;;;11462:2;11447:18;;7877:35;11545:2;11530:18;;2530:37;11628:2;11613:18;;2530:37;11301:3;11286:19;;11272:370::o;11906:310::-;;12053:2;;12074:17;12067:47;3044:5;17956:12;18113:6;12053:2;12042:9;12038:18;18101:19;-1:-1;19624:101;19638:6;19635:1;19632:13;19624:101;;;19705:11;;;;;19699:18;19686:11;;;18141:14;19686:11;19679:39;19653:10;;19624:101;;;19740:6;19737:1;19734:13;19731:2;;;-1:-1;18141:14;19796:6;12042:9;19787:16;;19780:27;19731:2;-1:-1;19993:7;19977:14;-1:-1;;19973:28;3202:39;;;;18141:14;3202:39;;12024:192;-1:-1;;;12024:192::o;12223:416::-;12423:2;12437:47;;;3478:2;12408:18;;;18101:19;-1:-1;;;18141:14;;;3494:40;3553:12;;;12394:245::o;12646:416::-;12846:2;12860:47;;;3804:2;12831:18;;;18101:19;3840:34;18141:14;;;3820:55;-1:-1;;;3895:12;;;3888:30;3937:12;;;12817:245::o;13069:416::-;13269:2;13283:47;;;4595:2;13254:18;;;18101:19;4631:29;18141:14;;;4611:50;4680:12;;;13240:245::o;13492:416::-;13692:2;13706:47;;;4931:2;13677:18;;;18101:19;-1:-1;;;18141:14;;;4947:38;5004:12;;;13663:245::o;13915:416::-;14115:2;14129:47;;;5255:1;14100:18;;;18101:19;-1:-1;;;18141:14;;;5270:30;5319:12;;;14086:245::o;14338:416::-;14538:2;14552:47;;;5570:2;14523:18;;;18101:19;5606:34;18141:14;;;5586:55;-1:-1;;;5661:12;;;5654:25;5698:12;;;14509:245::o;14761:416::-;14961:2;14975:47;;;5949:1;14946:18;;;18101:19;-1:-1;;;18141:14;;;5964:27;6010:12;;;14932:245::o;15184:416::-;15384:2;15398:47;;;6261:2;15369:18;;;18101:19;-1:-1;;;18141:14;;;6277:35;6331:12;;;15355:245::o;15607:416::-;15807:2;15821:47;;;15792:18;;;18101:19;6618:34;18141:14;;;6598:55;6672:12;;;15778:245::o;16030:416::-;16230:2;16244:47;;;6923:2;16215:18;;;18101:19;-1:-1;;;18141:14;;;6939:40;6998:12;;;16201:245::o;16453:416::-;16653:2;16667:47;;;7249:2;16638:18;;;18101:19;7285:33;18141:14;;;7265:54;7338:12;;;16624:245::o;16876:416::-;17076:2;17090:47;;;7589:2;17061:18;;;18101:19;-1:-1;;;18141:14;;;7605:40;7664:12;;;17047:245::o;17528:333::-;2530:37;;;17847:2;17832:18;;2530:37;17683:2;17668:18;;17654:207::o
Swarm Source
ipfs://3d0990181175c7b851025be70a35db3942d7b62fc71603303f3af88c03e5e038
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.00284 | 132,526.0734 | $376.44 |
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.