Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 53 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Purchase | 14157554 | 1107 days ago | IN | 0 ETH | 0.01201587 | ||||
Purchase | 13796307 | 1163 days ago | IN | 0 ETH | 0.00733138 | ||||
Purchase | 13790425 | 1164 days ago | IN | 0 ETH | 0.00639185 | ||||
Purchase | 13790139 | 1164 days ago | IN | 0 ETH | 0.00725134 | ||||
Purchase | 13790127 | 1164 days ago | IN | 0 ETH | 0.00850642 | ||||
Purchase | 13790022 | 1164 days ago | IN | 0 ETH | 0.00752763 | ||||
Purchase | 13789758 | 1164 days ago | IN | 0 ETH | 0.00778138 | ||||
Purchase | 13789651 | 1164 days ago | IN | 0 ETH | 0.00750182 | ||||
Purchase | 13789525 | 1164 days ago | IN | 0 ETH | 0.00864484 | ||||
Purchase | 13789439 | 1164 days ago | IN | 0 ETH | 0.00823331 | ||||
Purchase | 13769506 | 1167 days ago | IN | 0 ETH | 0.01579565 | ||||
Purchase | 13731778 | 1173 days ago | IN | 0 ETH | 0.01748771 | ||||
Purchase | 13731113 | 1173 days ago | IN | 0 ETH | 0.00204493 | ||||
Purchase | 13730500 | 1173 days ago | IN | 0 ETH | 0.02247878 | ||||
Purchase | 13720711 | 1175 days ago | IN | 0 ETH | 0.02017953 | ||||
Purchase | 13714750 | 1176 days ago | IN | 0 ETH | 0.01345405 | ||||
Purchase | 13708275 | 1177 days ago | IN | 0 ETH | 0.01375157 | ||||
Purchase | 13702486 | 1178 days ago | IN | 0 ETH | 0.01289521 | ||||
Purchase | 13702471 | 1178 days ago | IN | 0 ETH | 0.01180502 | ||||
Purchase | 13702259 | 1178 days ago | IN | 0 ETH | 0.01485614 | ||||
Purchase | 13701493 | 1178 days ago | IN | 0 ETH | 0.01652223 | ||||
Purchase | 13700932 | 1178 days ago | IN | 0 ETH | 0.01325359 | ||||
Purchase | 13700928 | 1178 days ago | IN | 0 ETH | 0.01549864 | ||||
Purchase | 13696939 | 1179 days ago | IN | 0 ETH | 0.00384481 | ||||
Purchase | 13696551 | 1179 days ago | IN | 0 ETH | 0.01821303 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Presale
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-20 */ // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <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 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 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { 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/utils/ReentrancyGuard.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () 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: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <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); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @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 on 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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // 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 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using 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: interfaces/ISlims.sol pragma solidity >=0.6.0; interface ISlims { function safeMint(address _to) external returns (uint256); function safeMintMultiple(address _to, uint256 _amount) external returns (uint256) ; function ownerOf(uint256 tokenId) external view returns (address); } // File: contracts/Presale.sol pragma solidity ^0.6.0; contract Presale is Ownable,ReentrancyGuard{ using SafeMath for uint256; using SafeERC20 for IERC20; ISlims public slims; IERC20 public slm; address public signer; string public constant name = "Presale"; string public constant version = "1"; mapping(address => uint256) public nonces; uint256 public price ; address public ETH; uint256 public presaleDuration; uint256 public presaleStart; address public operator; event Purchase(address indexed user,uint256 amount,uint256 idLast,uint256 kind,uint256 nonce,uint256 free); bytes32 public constant DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); bytes32 public constant PURCHASE_TYPEHASH = keccak256( "Purchase(address account,uint256 amount,uint256 kind,uint256 nonce,uint256 deadline,uint256 free)" ); constructor(address _slm,address _slims,address _signer) public { slims = ISlims(_slims); signer = _signer; ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; slm = IERC20(_slm); } function purchase( uint256 _amount, uint8 v, bytes32 r, bytes32 s, uint256 _kind, uint256 _free, uint256 deadline ) external payable nonReentrant { require(block.timestamp > presaleStart && block.timestamp < presaleStart.add(presaleDuration),"cannot purchase"); require(block.timestamp <= deadline, "Signature expired"); bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(version)), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( PURCHASE_TYPEHASH, address(msg.sender), _amount, _kind, nonces[msg.sender]++, deadline, _free ) ); 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"); uint256 _tokenId = slims.safeMintMultiple(msg.sender,_amount); emit Purchase(msg.sender, _amount, _tokenId,_kind,nonces[msg.sender] -1 ,_free); } function setSigner(address _signer) external onlyOperator { require(_signer != address(0),"zero address"); signer = _signer; } function setPrice(uint256 _price) external onlyOperator { price = _price; } function setPresaleStart(uint256 _start) external onlyOperator { presaleStart = _start; } function setPresaleDuration(uint256 _duration) external onlyOperator { presaleDuration = _duration; } function setOperator(address _operator) external onlyOwner { operator = _operator; } function getChainId() internal pure returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } modifier onlyOperator() { require(msg.sender == operator,"not operator"); _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_slm","type":"address"},{"internalType":"address","name":"_slims","type":"address"},{"internalType":"address","name":"_signer","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"idLast","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"kind","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"free","type":"uint256"}],"name":"Purchase","type":"event"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PURCHASE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"_kind","type":"uint256"},{"internalType":"uint256","name":"_free","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setPresaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"setPresaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","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":"slims","outputs":[{"internalType":"contract ISlims","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slm","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":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516110683803806110688339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6100ff565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b039384166001600160a01b031991821617909155600480549284169282169290921790915560078054821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee17905560038054939092169216919091179055610103565b3390565b610f56806101126000396000f3fe6080604052600436106101355760003560e01c80637eb6f6e1116100ab578063935011441161006f57806393501144146103d9578063a035b1fe146103ee578063af523e4514610403578063b3ab15fb14610418578063de8801e51461044b578063f2fde38b1461046057610135565b80637eb6f6e11461033d5780637ecebe00146103525780638322fff2146103855780638da5cb5b1461039a57806391b7f5ed146103af57610135565b8063570ca735116100fd578063570ca7351461025d5780635868c32a14610272578063648624f2146102875780636c19e783146102cb578063715018a6146102fe57806378152bbe1461031357610135565b80630259dae71461013a57806306fdde031461016657806320606b70146101f0578063238ac9331461021757806354fd4d5014610248575b600080fd5b34801561014657600080fd5b506101646004803603602081101561015d57600080fd5b5035610493565b005b34801561017257600080fd5b5061017b6104e6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101fc57600080fd5b50610205610509565b60408051918252519081900360200190f35b34801561022357600080fd5b5061022c61052d565b604080516001600160a01b039092168252519081900360200190f35b34801561025457600080fd5b5061017b61053c565b34801561026957600080fd5b5061022c610559565b34801561027e57600080fd5b50610205610568565b610164600480360360e081101561029d57600080fd5b5080359060ff6020820135169060408101359060608101359060808101359060a08101359060c0013561056e565b3480156102d757600080fd5b50610164600480360360208110156102ee57600080fd5b50356001600160a01b0316610a4b565b34801561030a57600080fd5b50610164610b05565b34801561031f57600080fd5b506101646004803603602081101561033657600080fd5b5035610bc3565b34801561034957600080fd5b50610205610c16565b34801561035e57600080fd5b506102056004803603602081101561037557600080fd5b50356001600160a01b0316610c3a565b34801561039157600080fd5b5061022c610c4c565b3480156103a657600080fd5b5061022c610c5b565b3480156103bb57600080fd5b50610164600480360360208110156103d257600080fd5b5035610c6a565b3480156103e557600080fd5b5061022c610cbd565b3480156103fa57600080fd5b50610205610ccc565b34801561040f57600080fd5b5061022c610cd2565b34801561042457600080fd5b506101646004803603602081101561043b57600080fd5b50356001600160a01b0316610ce1565b34801561045757600080fd5b50610205610d77565b34801561046c57600080fd5b506101646004803603602081101561048357600080fd5b50356001600160a01b0316610d7d565b600a546001600160a01b031633146104e1576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600855565b6040518060400160405280600781526020016650726573616c6560c81b81525081565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6004546001600160a01b031681565b604051806040016040528060018152602001603160f81b81525081565b600a546001600160a01b031681565b60085481565b600260015414156105c6576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155600954421180156105e957506008546009546105e691610e91565b42105b61062c576040805162461bcd60e51b815260206004820152600f60248201526e63616e6e6f7420707572636861736560881b604482015290519081900360640190fd5b80421115610675576040805162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b604482015290519081900360640190fd5b604080518082018252600781526650726573616c6560c81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fcff8a2a4dc9d8050baca90b7a315a144de7e38fa773edf442d524939ffcce3fa7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610714610ef2565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c08301825280519084012033600081815260058652838120805460018082019092557f837a32d0b79668f20823b0b793e06a290486d289bc0a8960d11f9c5e472a976260e088015261010087019390935261012086018f905261014086018b905261016086019290925261018085018890526101a08086018a9052845180870390910181526101c08601855280519087012061190160f01b6101e08701526101e2860184905261020280870182905285518088039091018152610222870180875281519189019190912090839052610242870180875281905260ff8f1661026288015261028287018e90526102a287018d90529451939750959394909391926102c28083019392601f198301929081900390910190855afa158015610873573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108cf576040805162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b604482015290519081900360640190fd5b6004546001600160a01b03828116911614610920576040805162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6002546040805163da35741f60e01b8152336004820152602481018e905290516000926001600160a01b03169163da35741f91604480830192602092919082900301818787803b15801561097357600080fd5b505af1158015610987573d6000803e3d6000fd5b505050506040513d602081101561099d57600080fd5b81019080805190602001909291905050509050336001600160a01b03167fce9f9735cf311db121203b8990506d127ab9d5731e2f077041e20e74d815033f8d838b600160056000336001600160a01b03166001600160a01b0316815260200190815260200160002054038c604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a250506001805550505050505050505050565b600a546001600160a01b03163314610a99576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b6001600160a01b038116610ae3576040805162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610b0d610ef6565b6001600160a01b0316610b1e610c5b565b6001600160a01b031614610b79576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600a546001600160a01b03163314610c11576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600955565b7f837a32d0b79668f20823b0b793e06a290486d289bc0a8960d11f9c5e472a976281565b60056020526000908152604090205481565b6007546001600160a01b031681565b6000546001600160a01b031690565b600a546001600160a01b03163314610cb8576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600655565b6003546001600160a01b031681565b60065481565b6002546001600160a01b031681565b610ce9610ef6565b6001600160a01b0316610cfa610c5b565b6001600160a01b031614610d55576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60095481565b610d85610ef6565b6001600160a01b0316610d96610c5b565b6001600160a01b031614610df1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e365760405162461bcd60e51b8152600401808060200182810382526026815260200180610efb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610eeb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b4690565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220df01fca88c2367508a5ca9e82a777f898c80920e8383072626e9df796b2d892b64736f6c634300060c00330000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf000000000000000000000000dcdaf8a00414cb2e34d2aa6fb89effd134c39c670000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e
Deployed Bytecode
0x6080604052600436106101355760003560e01c80637eb6f6e1116100ab578063935011441161006f57806393501144146103d9578063a035b1fe146103ee578063af523e4514610403578063b3ab15fb14610418578063de8801e51461044b578063f2fde38b1461046057610135565b80637eb6f6e11461033d5780637ecebe00146103525780638322fff2146103855780638da5cb5b1461039a57806391b7f5ed146103af57610135565b8063570ca735116100fd578063570ca7351461025d5780635868c32a14610272578063648624f2146102875780636c19e783146102cb578063715018a6146102fe57806378152bbe1461031357610135565b80630259dae71461013a57806306fdde031461016657806320606b70146101f0578063238ac9331461021757806354fd4d5014610248575b600080fd5b34801561014657600080fd5b506101646004803603602081101561015d57600080fd5b5035610493565b005b34801561017257600080fd5b5061017b6104e6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b557818101518382015260200161019d565b50505050905090810190601f1680156101e25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101fc57600080fd5b50610205610509565b60408051918252519081900360200190f35b34801561022357600080fd5b5061022c61052d565b604080516001600160a01b039092168252519081900360200190f35b34801561025457600080fd5b5061017b61053c565b34801561026957600080fd5b5061022c610559565b34801561027e57600080fd5b50610205610568565b610164600480360360e081101561029d57600080fd5b5080359060ff6020820135169060408101359060608101359060808101359060a08101359060c0013561056e565b3480156102d757600080fd5b50610164600480360360208110156102ee57600080fd5b50356001600160a01b0316610a4b565b34801561030a57600080fd5b50610164610b05565b34801561031f57600080fd5b506101646004803603602081101561033657600080fd5b5035610bc3565b34801561034957600080fd5b50610205610c16565b34801561035e57600080fd5b506102056004803603602081101561037557600080fd5b50356001600160a01b0316610c3a565b34801561039157600080fd5b5061022c610c4c565b3480156103a657600080fd5b5061022c610c5b565b3480156103bb57600080fd5b50610164600480360360208110156103d257600080fd5b5035610c6a565b3480156103e557600080fd5b5061022c610cbd565b3480156103fa57600080fd5b50610205610ccc565b34801561040f57600080fd5b5061022c610cd2565b34801561042457600080fd5b506101646004803603602081101561043b57600080fd5b50356001600160a01b0316610ce1565b34801561045757600080fd5b50610205610d77565b34801561046c57600080fd5b506101646004803603602081101561048357600080fd5b50356001600160a01b0316610d7d565b600a546001600160a01b031633146104e1576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600855565b6040518060400160405280600781526020016650726573616c6560c81b81525081565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6004546001600160a01b031681565b604051806040016040528060018152602001603160f81b81525081565b600a546001600160a01b031681565b60085481565b600260015414156105c6576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155600954421180156105e957506008546009546105e691610e91565b42105b61062c576040805162461bcd60e51b815260206004820152600f60248201526e63616e6e6f7420707572636861736560881b604482015290519081900360640190fd5b80421115610675576040805162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b604482015290519081900360640190fd5b604080518082018252600781526650726573616c6560c81b602091820152815180830190925260018252603160f81b91015260007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fcff8a2a4dc9d8050baca90b7a315a144de7e38fa773edf442d524939ffcce3fa7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6610714610ef2565b6040805160208082019690965280820194909452606084019290925260808301523060a0808401919091528151808403909101815260c08301825280519084012033600081815260058652838120805460018082019092557f837a32d0b79668f20823b0b793e06a290486d289bc0a8960d11f9c5e472a976260e088015261010087019390935261012086018f905261014086018b905261016086019290925261018085018890526101a08086018a9052845180870390910181526101c08601855280519087012061190160f01b6101e08701526101e2860184905261020280870182905285518088039091018152610222870180875281519189019190912090839052610242870180875281905260ff8f1661026288015261028287018e90526102a287018d90529451939750959394909391926102c28083019392601f198301929081900390910190855afa158015610873573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108cf576040805162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b604482015290519081900360640190fd5b6004546001600160a01b03828116911614610920576040805162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b604482015290519081900360640190fd5b6002546040805163da35741f60e01b8152336004820152602481018e905290516000926001600160a01b03169163da35741f91604480830192602092919082900301818787803b15801561097357600080fd5b505af1158015610987573d6000803e3d6000fd5b505050506040513d602081101561099d57600080fd5b81019080805190602001909291905050509050336001600160a01b03167fce9f9735cf311db121203b8990506d127ab9d5731e2f077041e20e74d815033f8d838b600160056000336001600160a01b03166001600160a01b0316815260200190815260200160002054038c604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390a250506001805550505050505050505050565b600a546001600160a01b03163314610a99576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b6001600160a01b038116610ae3576040805162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610b0d610ef6565b6001600160a01b0316610b1e610c5b565b6001600160a01b031614610b79576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600a546001600160a01b03163314610c11576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600955565b7f837a32d0b79668f20823b0b793e06a290486d289bc0a8960d11f9c5e472a976281565b60056020526000908152604090205481565b6007546001600160a01b031681565b6000546001600160a01b031690565b600a546001600160a01b03163314610cb8576040805162461bcd60e51b815260206004820152600c60248201526b3737ba1037b832b930ba37b960a11b604482015290519081900360640190fd5b600655565b6003546001600160a01b031681565b60065481565b6002546001600160a01b031681565b610ce9610ef6565b6001600160a01b0316610cfa610c5b565b6001600160a01b031614610d55576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60095481565b610d85610ef6565b6001600160a01b0316610d96610c5b565b6001600160a01b031614610df1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610e365760405162461bcd60e51b8152600401808060200182810382526026815260200180610efb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610eeb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b4690565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220df01fca88c2367508a5ca9e82a777f898c80920e8383072626e9df796b2d892b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf000000000000000000000000dcdaf8a00414cb2e34d2aa6fb89effd134c39c670000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e
-----Decoded View---------------
Arg [0] : _slm (address): 0x2Ba7529009487d4752C78Ca4dCF0B7C14ae0fcDf
Arg [1] : _slims (address): 0xDcdaf8A00414Cb2E34d2aa6fB89EFfD134c39c67
Arg [2] : _signer (address): 0x3Bf07f5C239217bdf9165d114036AE5788ff8e5e
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002ba7529009487d4752c78ca4dcf0b7c14ae0fcdf
Arg [1] : 000000000000000000000000dcdaf8a00414cb2e34d2aa6fb89effd134c39c67
Arg [2] : 0000000000000000000000003bf07f5c239217bdf9165d114036ae5788ff8e5e
Deployed Bytecode Sourcemap
28435:3740:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31651:115;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31651:115:0;;:::i;:::-;;28631:39;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29041:166;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;28603:21;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;28603:21:0;;;;;;;;;;;;;;28677:36;;;;;;;;;;;;;:::i;28894:23::-;;;;;;;;;;;;;:::i;28823:30::-;;;;;;;;;;;;;:::i;29638:1639::-;;;;;;;;;;;;;;;;-1:-1:-1;29638:1639:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;31285:150::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31285:150:0;-1:-1:-1;;;;;31285:150:0;;:::i;2752:148::-;;;;;;;;;;;;;:::i;31540:103::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31540:103:0;;:::i;29216:183::-;;;;;;;;;;;;;:::i;28720:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28720:41:0;-1:-1:-1;;;;;28720:41:0;;:::i;28798:18::-;;;;;;;;;;;;;:::i;2101:87::-;;;;;;;;;;;;;:::i;31443:89::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31443:89:0;;:::i;28579:17::-;;;;;;;;;;;;;:::i;28770:20::-;;;;;;;;;;;;;:::i;28553:19::-;;;;;;;;;;;;;:::i;31775:98::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31775:98:0;-1:-1:-1;;;;;31775:98:0;;:::i;28860:27::-;;;;;;;;;;;;;:::i;3055:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3055:244:0;-1:-1:-1;;;;;3055:244:0;;:::i;31651:115::-;32126:8;;-1:-1:-1;;;;;32126:8:0;32112:10;:22;32104:46;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;;;;31731:15:::1;:27:::0;31651:115::o;28631:39::-;;;;;;;;;;;;;;-1:-1:-1;;;28631:39:0;;;;:::o;29041:166::-;29092:115;29041:166;:::o;28603:21::-;;;-1:-1:-1;;;;;28603:21:0;;:::o;28677:36::-;;;;;;;;;;;;;;-1:-1:-1;;;28677:36:0;;;;:::o;28894:23::-;;;-1:-1:-1;;;;;28894:23:0;;:::o;28823:30::-;;;;:::o;29638:1639::-;5058:1;5664:7;;:19;;5656:63;;;;;-1:-1:-1;;;5656:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5058:1;5797:7;:18;29926:12:::1;::::0;29908:15:::1;:30;:85:::0;::::1;;;-1:-1:-1::0;29977:15:0::1;::::0;29960:12:::1;::::0;:33:::1;::::0;:16:::1;:33::i;:::-;29942:15;:51;29908:85;29900:112;;;::::0;;-1:-1:-1;;;29900:112:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29900:112:0;;;;;;;;;;;;;::::1;;30050:8;30031:15;:27;;30023:57;;;::::0;;-1:-1:-1;;;30023:57:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30023:57:0;;;;;;;;;;;;;::::1;;30251:4;::::0;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;30251:4:0::1;::::0;;::::1;::::0;30296:7;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;30296:7:0;::::1;::::0;30097:23:::1;29092:115;30235:22:::0;30280:25;30328:12:::1;:10;:12::i;:::-;30164:231;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;30371:4:::1;30164:231:::0;;;;;;;;;;;;;;;;;;;;;;;30136:274;;;;::::1;::::0;30564:10:::1;-1:-1:-1::0;30656:18:0;;;:6:::1;:18:::0;;;;;:20;;::::1;::::0;;::::1;::::0;;;29269:130:::1;30483:271:::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30455:314;;;;::::1;::::0;-1:-1:-1;;;30838:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30810:100;;;;::::1;::::0;;;;30955:26;;;;;;;;;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;30136:274;;-1:-1:-1;30455:314:0;30810:100;;-1:-1:-1;;30656:20:0;;30955:26;;;;;30164:231;-1:-1:-1;;30955:26:0;;;;;;;;;;;30656:20;30955:26:::1;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;30955:26:0::1;::::0;-1:-1:-1;;30955:26:0;;;-1:-1:-1;;;;;;;31000:23:0;::::1;30992:53;;;::::0;;-1:-1:-1;;;30992:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30992:53:0;;;;;;;;;;;;;::::1;;31077:6;::::0;-1:-1:-1;;;;;31064:19:0;;::::1;31077:6:::0;::::1;31064:19;31056:44;;;::::0;;-1:-1:-1;;;31056:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31056:44:0;;;;;;;;;;;;;::::1;;31137:5;::::0;:42:::1;::::0;;-1:-1:-1;;;31137:42:0;;31160:10:::1;31137:42;::::0;::::1;::::0;;;;;;;;;31117:16:::1;::::0;-1:-1:-1;;;;;31137:5:0::1;::::0;:22:::1;::::0;:42;;;;;::::1;::::0;;;;;;;;31117:16;31137:5;:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;31117:62;;31204:10;-1:-1:-1::0;;;;;31195:74:0::1;;31216:7;31225:8;31234:5;31260:1;31240:6;:18;31247:10;-1:-1:-1::0;;;;;31240:18:0::1;-1:-1:-1::0;;;;;31240:18:0::1;;;;;;;;;;;;;:21;31263:5;31195:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;5014:1:0;5976:22;;-1:-1:-1;;;;;;;;;;29638:1639:0:o;31285:150::-;32126:8;;-1:-1:-1;;;;;32126:8:0;32112:10;:22;32104:46;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;31363:21:0;::::1;31355:45;;;::::0;;-1:-1:-1;;;31355:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31355:45:0;;;;;;;;;;;;;::::1;;31411:6;:16:::0;;-1:-1:-1;;;;;;31411:16:0::1;-1:-1:-1::0;;;;;31411:16:0;;;::::1;::::0;;;::::1;::::0;;31285:150::o;2752:148::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2859:1:::1;2843:6:::0;;2822:40:::1;::::0;-1:-1:-1;;;;;2843:6:0;;::::1;::::0;2822:40:::1;::::0;2859:1;;2822:40:::1;2890:1;2873:19:::0;;-1:-1:-1;;;;;;2873:19:0::1;::::0;;2752:148::o;31540:103::-;32126:8;;-1:-1:-1;;;;;32126:8:0;32112:10;:22;32104:46;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;;;;31614:12:::1;:21:::0;31540:103::o;29216:183::-;29269:130;29216:183;:::o;28720:41::-;;;;;;;;;;;;;:::o;28798:18::-;;;-1:-1:-1;;;;;28798:18:0;;:::o;2101:87::-;2147:7;2174:6;-1:-1:-1;;;;;2174:6:0;2101:87;:::o;31443:89::-;32126:8;;-1:-1:-1;;;;;32126:8:0;32112:10;:22;32104:46;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;-1:-1:-1;;;32104:46:0;;;;;;;;;;;;;;;31510:5:::1;:14:::0;31443:89::o;28579:17::-;;;-1:-1:-1;;;;;28579:17:0;;:::o;28770:20::-;;;;:::o;28553:19::-;;;-1:-1:-1;;;;;28553:19:0;;:::o;31775:98::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31845:8:::1;:20:::0;;-1:-1:-1;;;;;;31845:20:0::1;-1:-1:-1::0;;;;;31845:20:0;;;::::1;::::0;;;::::1;::::0;;31775:98::o;28860:27::-;;;;:::o;3055:244::-;2332:12;:10;:12::i;:::-;-1:-1:-1;;;;;2321:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2321:23:0;;2313:68;;;;;-1:-1:-1;;;2313:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3144:22:0;::::1;3136:73;;;;-1:-1:-1::0;;;3136:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3246:6;::::0;;3225:38:::1;::::0;-1:-1:-1;;;;;3225:38:0;;::::1;::::0;3246:6;::::1;::::0;3225:38:::1;::::0;::::1;3274:6;:17:::0;;-1:-1:-1;;;;;;3274:17:0::1;-1:-1:-1::0;;;;;3274:17:0;;;::::1;::::0;;;::::1;::::0;;3055:244::o;11621:179::-;11679:7;11711:5;;;11735:6;;;;11727:46;;;;;-1:-1:-1;;;11727:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;11791:1;11621:179;-1:-1:-1;;;11621:179:0:o;31883:178::-;32009:9;31883:178;:::o;636:106::-;724:10;636:106;:::o
Swarm Source
ipfs://df01fca88c2367508a5ca9e82a777f898c80920e8383072626e9df796b2d892b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.