More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 371 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Burn Unsold Teng... | 18574887 | 1331 days ago | IN | 0 POL | 0.00005491 | ||||
Claim Tengu | 18569570 | 1331 days ago | IN | 0 POL | 0.00012285 | ||||
Claim Tengu | 18526594 | 1332 days ago | IN | 0 POL | 0.00417025 | ||||
Claim Tengu | 18505411 | 1333 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18505401 | 1333 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18489105 | 1333 days ago | IN | 0 POL | 0.00502525 | ||||
Claim Tengu | 18487579 | 1333 days ago | IN | 0 POL | 0.00020101 | ||||
Claim Tengu | 18484823 | 1333 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18477960 | 1334 days ago | IN | 0 POL | 0.0005578 | ||||
Claim Tengu | 18467360 | 1334 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18467099 | 1334 days ago | IN | 0 POL | 0.0001206 | ||||
Claim Tengu | 18465421 | 1334 days ago | IN | 0 POL | 0.00221111 | ||||
Claim Tengu | 18465157 | 1334 days ago | IN | 0 POL | 0.00011167 | ||||
Claim Tengu | 18459266 | 1334 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18458858 | 1334 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18457071 | 1334 days ago | IN | 0 POL | 0.00552777 | ||||
Claim Tengu | 18455749 | 1334 days ago | IN | 0 POL | 0.00170852 | ||||
Claim Tengu | 18454746 | 1334 days ago | IN | 0 POL | 0.00002796 | ||||
Claim Tengu | 18453783 | 1334 days ago | IN | 0 POL | 0.00100505 | ||||
Claim Tengu | 18452930 | 1334 days ago | IN | 0 POL | 0.00021901 | ||||
Claim Tengu | 18452843 | 1334 days ago | IN | 0 POL | 0.0001005 | ||||
Claim Tengu | 18452775 | 1334 days ago | IN | 0 POL | 0.00100505 | ||||
Claim Tengu | 18452602 | 1334 days ago | IN | 0 POL | 0.0020101 | ||||
Claim Tengu | 18452135 | 1334 days ago | IN | 0 POL | 0.00020101 | ||||
Claim Tengu | 18451764 | 1334 days ago | IN | 0 POL | 0.0001005 |
Loading...
Loading
Contract Name:
TenguPresale
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2021-08-23 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; // /* * @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; } } // /** * @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; } } // /** * @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; } } // interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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); } // /** * @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); } } } } // /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 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( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } // contract TenguPresale is Ownable { using SafeBEP20 for IBEP20; using SafeMath for uint256; IBEP20 public immutable tenguToken; IBEP20 public immutable busdToken; address public immutable collector; address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; struct UserInfo { uint256 tier; uint256 totalTenguAmountBought; uint256 totalBUSDAmountSpent; bool hasClaimed; } mapping(address => UserInfo) public userInfo; uint256 public immutable startBlock; uint256 public constant BUSD_RATIO = 833; // $0.12 uint256 public constant MAX_BUSD_AMOUNT = 1000 ether; // $1000 uint256 public immutable blockDuration; // 43200 = 1d uint256 public immutable presaleBUSDHardcap; uint256 public soldBUSDAmount = 0 ether; // in $ uint256 public soldTenguAmount = 0 ether; // in TENGU uint256 public tenguTotalClaimed = 0 ether; // in TENGU bool public isClaimable = false; event ActivateClaim(); event BurnUnsoldTengu(uint256 tenguAmount); event BuyTengu(address indexed account, uint256 busdAmount, uint256 tenguAmount); event ClaimTengu(address indexed account, uint256 tenguAmount); event DrainBEP20Token(address token, uint256 amount, address to); event SetUserTier(address indexed account, uint256 indexed tier); constructor(uint256 startBlock_, IBEP20 tenguToken_, IBEP20 busdToken_, address collector_, uint256 hardcap_, uint256 blockDuration_) public { startBlock = startBlock_; tenguToken = tenguToken_; busdToken = busdToken_; collector = collector_; presaleBUSDHardcap = hardcap_; blockDuration = blockDuration_; } // End of the presale / of the second phase function presaleEndBlock() public view returns (uint256) { return startBlock.add(blockDuration); } function hasEnded() external view returns (bool) { return block.number >= presaleEndBlock(); } function hasReachedHardcap() public view returns (bool) { return soldBUSDAmount >= presaleBUSDHardcap; } function isActive() public view returns (bool) { return block.number >= startBlock && block.number < presaleEndBlock() && !hasReachedHardcap(); } function activateClaim() external onlyOwner { require(block.number > presaleEndBlock(), "TENGU::activateClaim: presale has not ended yet"); isClaimable = true; emit ActivateClaim(); } function _setUserTier(address account, uint256 tier) internal { require(tier <= 3, "TENGU::_setUserTIer: tier cannot be higher than 3"); userInfo[account].tier = tier; emit SetUserTier(account, tier); } function setUserTier(address account, uint256 tier) external onlyOwner { _setUserTier(account, tier); } function setAllUserTiers(address[] calldata accounts, uint256[] calldata tiers) external onlyOwner { require(accounts.length == tiers.length, "TENGU::setAllUserTiers: invalid params"); for (uint256 i = 0; i < accounts.length; i++) { _setUserTier(accounts[i], tiers[i]); } } function buyTengu(uint256 usdcAmount) external { uint busdAmount = usdcAmount.mul(1e12); require(busdAmount > 0, "TENGU::buyTengu: 0 amount"); require(isActive(), "TENGU::buyTengu: presale is not active"); UserInfo storage user = userInfo[msg.sender]; require(user.totalBUSDAmountSpent.add(busdAmount) <= MAX_BUSD_AMOUNT, "TENGU::buyTengu: max buying amount reached"); // If hardcap is topped with this transaction, sold only the remaining TENGU available if (soldBUSDAmount.add(busdAmount) > presaleBUSDHardcap) { usdcAmount = presaleBUSDHardcap.sub(soldBUSDAmount).div(1e12); busdAmount = usdcAmount.mul(1e12); } uint256 tenguAmountToBuy = busdAmount.mul(BUSD_RATIO).div(100); // handle user discount depending on his tier (GTENGU holdings) tenguAmountToBuy = tenguAmountToBuy.mul(10 + user.tier).div(10); user.totalTenguAmountBought = user.totalTenguAmountBought.add(tenguAmountToBuy); user.totalBUSDAmountSpent = user.totalBUSDAmountSpent.add(busdAmount); soldBUSDAmount = soldBUSDAmount.add(busdAmount); soldTenguAmount = soldTenguAmount.add(tenguAmountToBuy); busdToken.safeTransferFrom(msg.sender, collector, usdcAmount); emit BuyTengu(msg.sender, usdcAmount, tenguAmountToBuy); } function claimTengu() external { require(isClaimable, "TENGU::claimTengu: token is not claimable yet"); UserInfo storage user = userInfo[msg.sender]; require(user.totalTenguAmountBought > 0, "TENGU::claimTengu: no TENGU bought"); require(!user.hasClaimed, "TENGU::claimTengu: TENGU already claimed"); user.hasClaimed = true; tenguTotalClaimed = tenguTotalClaimed.add(user.totalTenguAmountBought); tenguToken.safeTransfer(msg.sender, user.totalTenguAmountBought); emit ClaimTengu(msg.sender, user.totalTenguAmountBought); } function burnUnsoldTengu() external onlyOwner { uint256 tenguBalance = tenguToken.balanceOf(address(this)); require(tenguBalance > 0, "TENGU::burnUnsoldTengu: contract balance is empty"); require(block.number > presaleEndBlock(), "TENGU::burnUnsoldTengu: presale has not ended yet"); uint256 unsoldTengu = tenguBalance.sub(soldTenguAmount.sub(tenguTotalClaimed)); require(unsoldTengu > 0, "TENGU::burnUnsoldTengu: nothing to burn"); tenguToken.safeTransfer(BURN_ADDRESS, unsoldTengu); emit BurnUnsoldTengu(unsoldTengu); } // Owner can drain tokens that are sent here by mistake function drainBEP20Token(IBEP20 token, uint256 amount, address to) external onlyOwner { token.safeTransfer(to, amount); emit DrainBEP20Token(address(token), amount, to); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"startBlock_","type":"uint256"},{"internalType":"contract IBEP20","name":"tenguToken_","type":"address"},{"internalType":"contract IBEP20","name":"busdToken_","type":"address"},{"internalType":"address","name":"collector_","type":"address"},{"internalType":"uint256","name":"hardcap_","type":"uint256"},{"internalType":"uint256","name":"blockDuration_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"ActivateClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tenguAmount","type":"uint256"}],"name":"BurnUnsoldTengu","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"busdAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tenguAmount","type":"uint256"}],"name":"BuyTengu","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tenguAmount","type":"uint256"}],"name":"ClaimTengu","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"DrainBEP20Token","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":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"tier","type":"uint256"}],"name":"SetUserTier","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BUSD_RATIO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BUSD_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnUnsoldTengu","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"busdToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdcAmount","type":"uint256"}],"name":"buyTengu","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTengu","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"drainBEP20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hasEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasReachedHardcap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleBUSDHardcap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"tiers","type":"uint256[]"}],"name":"setAllUserTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"setUserTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soldBUSDAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soldTenguAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tenguToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tenguTotalClaimed","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":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"uint256","name":"totalTenguAmountBought","type":"uint256"},{"internalType":"uint256","name":"totalBUSDAmountSpent","type":"uint256"},{"internalType":"bool","name":"hasClaimed","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101406040526000600255600060035560006004556000600560006101000a81548160ff02191690831515021790555034801561003b57600080fd5b50604051612842380380612842833981810160405260c081101561005e57600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505060006100b161021960201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508560e081815250508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050816101208181525050806101008181525050505050505050610221565b600033905090565b60805160601c60a05160601c60c05160601c60e05161010051610120516125986102aa60003980611632528061167d528061189b5280611ad65250806107335280610fa052508061075952806109ff5280610fc152508061145e52806117aa5250806117cc52806118755250806109645280610d115280610f1a528061129e52506125986000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638ae12da8116100f9578063de0e701411610097578063f2fde38b11610071578063f2fde38b1461063a578063f8ebe1f11461067e578063fccc28131461069c578063fd1a846f146106d0576101c4565b8063de0e7014146105c6578063e379c3d9146105fa578063ecb70fb71461061a576101c4565b8063913e77ad116100d3578063913e77ad14610528578063a9ed540c1461055c578063d4fc60851461057a578063dbf0eecf146105a8576101c4565b80638ae12da8146103f25780638da5cb5b1461042657806390f83f9d1461045a576101c4565b8063498c35fd11610166578063759ff72e11610140578063759ff72e1461035257806375ac3b081461035c578063795476281461037a57806382e78a89146103e8576101c4565b8063498c35fd146102da578063715018a61461032857806374478bb314610332576101c4565b806322f3e2d4116101a257806322f3e2d414610274578063365d1de714610294578063434681e4146102b257806348cd4cb1146102bc576101c4565b8063051cadc0146101c95780631959a002146101e7578063201e908e14610256575b600080fd5b6101d16106ee565b6040518082815260200191505060405180910390f35b610229600480360360208110156101fd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106f4565b60405180858152602001848152602001838152602001821515815260200194505050505060405180910390f35b61025e610731565b6040518082815260200191505060405180910390f35b61027c610755565b60405180821515815260200191505060405180910390f35b61029c6107a3565b6040518082815260200191505060405180910390f35b6102ba6107b0565b005b6102c46109fd565b6040518082815260200191505060405180910390f35b610326600480360360408110156102f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a21565b005b610330610ade565b005b61033a610c4b565b60405180821515815260200191505060405180910390f35b61035a610c5e565b005b610364610f99565b6040518082815260200191505060405180910390f35b6103e66004803603606081101561039057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ff3565b005b6103f0611145565b005b6103fa61129c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61042e6112c0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105266004803603604081101561047057600080fd5b810190808035906020019064010000000081111561048d57600080fd5b82018360208201111561049f57600080fd5b803590602001918460208302840111640100000000831117156104c157600080fd5b9091929391929390803590602001906401000000008111156104e257600080fd5b8201836020820111156104f457600080fd5b8035906020019184602083028401116401000000008311171561051657600080fd5b90919293919293905050506112e9565b005b61053061145c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610564611480565b6040518082815260200191505060405180910390f35b6105a66004803603602081101561059057600080fd5b8101908080359060200190929190505050611486565b005b6105b061186d565b6040518082815260200191505060405180910390f35b6105ce611873565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610602611897565b60405180821515815260200191505060405180910390f35b6106226118c4565b60405180821515815260200191505060405180910390f35b61067c6004803603602081101561065057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118d6565b005b610686611ac8565b6040518082815260200191505060405180910390f35b6106a4611ace565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106d8611ad4565b6040518082815260200191505060405180910390f35b60035481565b60016020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f0000000000000000000000000000000000000000000000000000000000000000431015801561078d575061078a610f99565b43105b801561079e575061079c611897565b155b905090565b683635c9adc5dea0000081565b600560009054906101000a900460ff16610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806124dd602d913960400191505060405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160010154116108b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061248a6022913960400191505060405180910390fd5b8060030160009054906101000a900460ff161561091d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806124106028913960400191505060405180910390fd5b60018160030160006101000a81548160ff0219169083151502179055506109538160010154600454611af890919063ffffffff16565b6004819055506109a83382600101547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f26d618948b6f7f92dfe1033e07257806c279fc998bd0910f33f754c55459bfdd82600101546040518082815260200191505060405180910390a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b610a29611c22565b73ffffffffffffffffffffffffffffffffffffffff16610a476112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610ad0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610ada8282611c2a565b5050565b610ae6611c22565b73ffffffffffffffffffffffffffffffffffffffff16610b046112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610b8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600560009054906101000a900460ff1681565b610c66611c22565b73ffffffffffffffffffffffffffffffffffffffff16610c846112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610d0d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d9657600080fd5b505afa158015610daa573d6000803e3d6000fd5b505050506040513d6020811015610dc057600080fd5b8101908080519060200190929190505050905060008111610e2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806122f66031913960400191505060405180910390fd5b610e34610f99565b4311610e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806124ac6031913960400191505060405180910390fd5b6000610eb6610ea7600454600354611d1390919063ffffffff16565b83611d1390919063ffffffff16565b905060008111610f11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061239d6027913960400191505060405180910390fd5b610f5e61dead827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b7fe5e4dc5b058c7ab437b6b1cabedf307108fca1f26bf636e0cf4351d02154aeb3816040518082815260200191505060405180910390a15050565b6000610fee7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611af890919063ffffffff16565b905090565b610ffb611c22565b73ffffffffffffffffffffffffffffffffffffffff166110196112c0565b73ffffffffffffffffffffffffffffffffffffffff16146110a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6110cd81838573ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b7fa4d88ddde89d651810f0139f6cdf1c65223b682315b0f7245e80b212fb468768838383604051808473ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b61114d611c22565b73ffffffffffffffffffffffffffffffffffffffff1661116b6112c0565b73ffffffffffffffffffffffffffffffffffffffff16146111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6111fc610f99565b4311611253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612534602f913960400191505060405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f846ffa05d5fd60811026c49efe11dc981e8cbf890220638ed68f3b9f411d7b3e60405160405180910390a1565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112f1611c22565b73ffffffffffffffffffffffffffffffffffffffff1661130f6112c0565b73ffffffffffffffffffffffffffffffffffffffff1614611398576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8181905084849050146113f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123c46026913960400191505060405180910390fd5b60005b848490508110156114555761144885858381811061141357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1684848481811061143c57fe5b90506020020135611c2a565b80806001019150506113f9565b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b60006114a064e8d4a5100083611d9690919063ffffffff16565b905060008111611518576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f54454e47553a3a62757954656e67753a203020616d6f756e740000000000000081525060200191505060405180910390fd5b611520610755565b611575576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123276026913960400191505060405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050683635c9adc5dea000006115d9838360020154611af890919063ffffffff16565b1115611630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061250a602a913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000061166683600254611af890919063ffffffff16565b11156116d5576116b864e8d4a510006116aa6002547f0000000000000000000000000000000000000000000000000000000000000000611d1390919063ffffffff16565b611e1c90919063ffffffff16565b92506116d264e8d4a5100084611d9690919063ffffffff16565b91505b60006116ff60646116f161034186611d9690919063ffffffff16565b611e1c90919063ffffffff16565b905061172e600a6117208460000154600a0184611d9690919063ffffffff16565b611e1c90919063ffffffff16565b9050611747818360010154611af890919063ffffffff16565b8260010181905550611766838360020154611af890919063ffffffff16565b826002018190555061178383600254611af890919063ffffffff16565b60028190555061179e81600354611af890919063ffffffff16565b600381905550611811337f0000000000000000000000000000000000000000000000000000000000000000867f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611ea5909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f68504b458c1761309b4ee82b640e90d34d047a2135319af6bc2b100f4d15e2038583604051808381526020018281526020019250505060405180910390a250505050565b60045481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006002541015905090565b60006118ce610f99565b431015905090565b6118de611c22565b73ffffffffffffffffffffffffffffffffffffffff166118fc6112c0565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a0b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123776026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61034181565b61dead81565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080828401905083811015611b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611c1d8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611f66565b505050565b600033905090565b6003811115611c84576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806124386031913960400191505060405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550808273ffffffffffffffffffffffffffffffffffffffff167f9bb6bc318999fe9f03afa03a57afc3d33411b07990b9d414e647ad97973549f160405160405180910390a35050565b600082821115611d8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080831415611da95760009050611e16565b6000828402905082848281611dba57fe5b0414611e11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124696021913960400191505060405180910390fd5b809150505b92915050565b6000808211611e93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381611e9c57fe5b04905092915050565b611f60846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611f66565b50505050565b6060611fc8826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120559092919063ffffffff16565b905060008151111561205057808060200190516020811015611fe957600080fd5b810190808051906020019092919050505061204f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061234d602a913960400191505060405180910390fd5b5b505050565b6060612064848460008561206d565b90509392505050565b6060824710156120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123ea6026913960400191505060405180910390fd5b6120d185612216565b612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106121935780518252602082019150602081019050602083039250612170565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146121f5576040519150601f19603f3d011682016040523d82523d6000602084013e6121fa565b606091505b509150915061220a828286612229565b92505050949350505050565b600080823b905060008111915050919050565b60608315612239578290506122ee565b60008351111561224c5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122b3578082015181840152602081019050612298565b50505050905090810190601f1680156122e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe54454e47553a3a6275726e556e736f6c6454656e67753a20636f6e74726163742062616c616e636520697320656d70747954454e47553a3a62757954656e67753a2070726573616c65206973206e6f74206163746976655361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737354454e47553a3a6275726e556e736f6c6454656e67753a206e6f7468696e6720746f206275726e54454e47553a3a736574416c6c5573657254696572733a20696e76616c696420706172616d73416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c54454e47553a3a636c61696d54656e67753a2054454e475520616c726561647920636c61696d656454454e47553a3a5f73657455736572544965723a20746965722063616e6e6f7420626520686967686572207468616e2033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754454e47553a3a636c61696d54656e67753a206e6f2054454e475520626f7567687454454e47553a3a6275726e556e736f6c6454656e67753a2070726573616c6520686173206e6f7420656e6465642079657454454e47553a3a636c61696d54656e67753a20746f6b656e206973206e6f7420636c61696d61626c652079657454454e47553a3a62757954656e67753a206d617820627579696e6720616d6f756e74207265616368656454454e47553a3a6163746976617465436c61696d3a2070726573616c6520686173206e6f7420656e64656420796574a26469706673582212205329a74083e70958004bdc06a02a44192d51985b2acf3ae4255c8bf53431611064736f6c634300060c0033000000000000000000000000000000000000000000000000000000000117869f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000001266d7d91b4b00e2ea98a0352ed56adcc1accf7c00000000000000000000000000000000000000000000152d02c7e14af68000000000000000000000000000000000000000000000000000000000000000015180
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638ae12da8116100f9578063de0e701411610097578063f2fde38b11610071578063f2fde38b1461063a578063f8ebe1f11461067e578063fccc28131461069c578063fd1a846f146106d0576101c4565b8063de0e7014146105c6578063e379c3d9146105fa578063ecb70fb71461061a576101c4565b8063913e77ad116100d3578063913e77ad14610528578063a9ed540c1461055c578063d4fc60851461057a578063dbf0eecf146105a8576101c4565b80638ae12da8146103f25780638da5cb5b1461042657806390f83f9d1461045a576101c4565b8063498c35fd11610166578063759ff72e11610140578063759ff72e1461035257806375ac3b081461035c578063795476281461037a57806382e78a89146103e8576101c4565b8063498c35fd146102da578063715018a61461032857806374478bb314610332576101c4565b806322f3e2d4116101a257806322f3e2d414610274578063365d1de714610294578063434681e4146102b257806348cd4cb1146102bc576101c4565b8063051cadc0146101c95780631959a002146101e7578063201e908e14610256575b600080fd5b6101d16106ee565b6040518082815260200191505060405180910390f35b610229600480360360208110156101fd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106f4565b60405180858152602001848152602001838152602001821515815260200194505050505060405180910390f35b61025e610731565b6040518082815260200191505060405180910390f35b61027c610755565b60405180821515815260200191505060405180910390f35b61029c6107a3565b6040518082815260200191505060405180910390f35b6102ba6107b0565b005b6102c46109fd565b6040518082815260200191505060405180910390f35b610326600480360360408110156102f057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610a21565b005b610330610ade565b005b61033a610c4b565b60405180821515815260200191505060405180910390f35b61035a610c5e565b005b610364610f99565b6040518082815260200191505060405180910390f35b6103e66004803603606081101561039057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ff3565b005b6103f0611145565b005b6103fa61129c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61042e6112c0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105266004803603604081101561047057600080fd5b810190808035906020019064010000000081111561048d57600080fd5b82018360208201111561049f57600080fd5b803590602001918460208302840111640100000000831117156104c157600080fd5b9091929391929390803590602001906401000000008111156104e257600080fd5b8201836020820111156104f457600080fd5b8035906020019184602083028401116401000000008311171561051657600080fd5b90919293919293905050506112e9565b005b61053061145c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610564611480565b6040518082815260200191505060405180910390f35b6105a66004803603602081101561059057600080fd5b8101908080359060200190929190505050611486565b005b6105b061186d565b6040518082815260200191505060405180910390f35b6105ce611873565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610602611897565b60405180821515815260200191505060405180910390f35b6106226118c4565b60405180821515815260200191505060405180910390f35b61067c6004803603602081101561065057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118d6565b005b610686611ac8565b6040518082815260200191505060405180910390f35b6106a4611ace565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106d8611ad4565b6040518082815260200191505060405180910390f35b60035481565b60016020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b7f000000000000000000000000000000000000000000000000000000000001518081565b60007f000000000000000000000000000000000000000000000000000000000117869f431015801561078d575061078a610f99565b43105b801561079e575061079c611897565b155b905090565b683635c9adc5dea0000081565b600560009054906101000a900460ff16610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d8152602001806124dd602d913960400191505060405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160010154116108b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061248a6022913960400191505060405180910390fd5b8060030160009054906101000a900460ff161561091d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806124106028913960400191505060405180910390fd5b60018160030160006101000a81548160ff0219169083151502179055506109538160010154600454611af890919063ffffffff16565b6004819055506109a83382600101547f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b73ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f26d618948b6f7f92dfe1033e07257806c279fc998bd0910f33f754c55459bfdd82600101546040518082815260200191505060405180910390a250565b7f000000000000000000000000000000000000000000000000000000000117869f81565b610a29611c22565b73ffffffffffffffffffffffffffffffffffffffff16610a476112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610ad0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610ada8282611c2a565b5050565b610ae6611c22565b73ffffffffffffffffffffffffffffffffffffffff16610b046112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610b8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600560009054906101000a900460ff1681565b610c66611c22565b73ffffffffffffffffffffffffffffffffffffffff16610c846112c0565b73ffffffffffffffffffffffffffffffffffffffff1614610d0d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60007f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d9657600080fd5b505afa158015610daa573d6000803e3d6000fd5b505050506040513d6020811015610dc057600080fd5b8101908080519060200190929190505050905060008111610e2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806122f66031913960400191505060405180910390fd5b610e34610f99565b4311610e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806124ac6031913960400191505060405180910390fd5b6000610eb6610ea7600454600354611d1390919063ffffffff16565b83611d1390919063ffffffff16565b905060008111610f11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061239d6027913960400191505060405180910390fd5b610f5e61dead827f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b73ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b7fe5e4dc5b058c7ab437b6b1cabedf307108fca1f26bf636e0cf4351d02154aeb3816040518082815260200191505060405180910390a15050565b6000610fee7f00000000000000000000000000000000000000000000000000000000000151807f000000000000000000000000000000000000000000000000000000000117869f611af890919063ffffffff16565b905090565b610ffb611c22565b73ffffffffffffffffffffffffffffffffffffffff166110196112c0565b73ffffffffffffffffffffffffffffffffffffffff16146110a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6110cd81838573ffffffffffffffffffffffffffffffffffffffff16611b809092919063ffffffff16565b7fa4d88ddde89d651810f0139f6cdf1c65223b682315b0f7245e80b212fb468768838383604051808473ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390a1505050565b61114d611c22565b73ffffffffffffffffffffffffffffffffffffffff1661116b6112c0565b73ffffffffffffffffffffffffffffffffffffffff16146111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6111fc610f99565b4311611253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612534602f913960400191505060405180910390fd5b6001600560006101000a81548160ff0219169083151502179055507f846ffa05d5fd60811026c49efe11dc981e8cbf890220638ed68f3b9f411d7b3e60405160405180910390a1565b7f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b81565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112f1611c22565b73ffffffffffffffffffffffffffffffffffffffff1661130f6112c0565b73ffffffffffffffffffffffffffffffffffffffff1614611398576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8181905084849050146113f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123c46026913960400191505060405180910390fd5b60005b848490508110156114555761144885858381811061141357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1684848481811061143c57fe5b90506020020135611c2a565b80806001019150506113f9565b5050505050565b7f0000000000000000000000001266d7d91b4b00e2ea98a0352ed56adcc1accf7c81565b60025481565b60006114a064e8d4a5100083611d9690919063ffffffff16565b905060008111611518576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f54454e47553a3a62757954656e67753a203020616d6f756e740000000000000081525060200191505060405180910390fd5b611520610755565b611575576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123276026913960400191505060405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050683635c9adc5dea000006115d9838360020154611af890919063ffffffff16565b1115611630576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061250a602a913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000152d02c7e14af680000061166683600254611af890919063ffffffff16565b11156116d5576116b864e8d4a510006116aa6002547f00000000000000000000000000000000000000000000152d02c7e14af6800000611d1390919063ffffffff16565b611e1c90919063ffffffff16565b92506116d264e8d4a5100084611d9690919063ffffffff16565b91505b60006116ff60646116f161034186611d9690919063ffffffff16565b611e1c90919063ffffffff16565b905061172e600a6117208460000154600a0184611d9690919063ffffffff16565b611e1c90919063ffffffff16565b9050611747818360010154611af890919063ffffffff16565b8260010181905550611766838360020154611af890919063ffffffff16565b826002018190555061178383600254611af890919063ffffffff16565b60028190555061179e81600354611af890919063ffffffff16565b600381905550611811337f0000000000000000000000001266d7d91b4b00e2ea98a0352ed56adcc1accf7c867f0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417473ffffffffffffffffffffffffffffffffffffffff16611ea5909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f68504b458c1761309b4ee82b640e90d34d047a2135319af6bc2b100f4d15e2038583604051808381526020018281526020019250505060405180910390a250505050565b60045481565b7f0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417481565b60007f00000000000000000000000000000000000000000000152d02c7e14af68000006002541015905090565b60006118ce610f99565b431015905090565b6118de611c22565b73ffffffffffffffffffffffffffffffffffffffff166118fc6112c0565b73ffffffffffffffffffffffffffffffffffffffff1614611985576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a0b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123776026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61034181565b61dead81565b7f00000000000000000000000000000000000000000000152d02c7e14af680000081565b600080828401905083811015611b76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611c1d8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611f66565b505050565b600033905090565b6003811115611c84576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806124386031913960400191505060405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550808273ffffffffffffffffffffffffffffffffffffffff167f9bb6bc318999fe9f03afa03a57afc3d33411b07990b9d414e647ad97973549f160405160405180910390a35050565b600082821115611d8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080831415611da95760009050611e16565b6000828402905082848281611dba57fe5b0414611e11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124696021913960400191505060405180910390fd5b809150505b92915050565b6000808211611e93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381611e9c57fe5b04905092915050565b611f60846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611f66565b50505050565b6060611fc8826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166120559092919063ffffffff16565b905060008151111561205057808060200190516020811015611fe957600080fd5b810190808051906020019092919050505061204f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061234d602a913960400191505060405180910390fd5b5b505050565b6060612064848460008561206d565b90509392505050565b6060824710156120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806123ea6026913960400191505060405180910390fd5b6120d185612216565b612143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106121935780518252602082019150602081019050602083039250612170565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146121f5576040519150601f19603f3d011682016040523d82523d6000602084013e6121fa565b606091505b509150915061220a828286612229565b92505050949350505050565b600080823b905060008111915050919050565b60608315612239578290506122ee565b60008351111561224c5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122b3578082015181840152602081019050612298565b50505050905090810190601f1680156122e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe54454e47553a3a6275726e556e736f6c6454656e67753a20636f6e74726163742062616c616e636520697320656d70747954454e47553a3a62757954656e67753a2070726573616c65206973206e6f74206163746976655361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737354454e47553a3a6275726e556e736f6c6454656e67753a206e6f7468696e6720746f206275726e54454e47553a3a736574416c6c5573657254696572733a20696e76616c696420706172616d73416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c54454e47553a3a636c61696d54656e67753a2054454e475520616c726561647920636c61696d656454454e47553a3a5f73657455736572544965723a20746965722063616e6e6f7420626520686967686572207468616e2033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754454e47553a3a636c61696d54656e67753a206e6f2054454e475520626f7567687454454e47553a3a6275726e556e736f6c6454656e67753a2070726573616c6520686173206e6f7420656e6465642079657454454e47553a3a636c61696d54656e67753a20746f6b656e206973206e6f7420636c61696d61626c652079657454454e47553a3a62757954656e67753a206d617820627579696e6720616d6f756e74207265616368656454454e47553a3a6163746976617465436c61696d3a2070726573616c6520686173206e6f7420656e64656420796574a26469706673582212205329a74083e70958004bdc06a02a44192d51985b2acf3ae4255c8bf53431611064736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000117869f0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000001266d7d91b4b00e2ea98a0352ed56adcc1accf7c00000000000000000000000000000000000000000000152d02c7e14af68000000000000000000000000000000000000000000000000000000000000000015180
-----Decoded View---------------
Arg [0] : startBlock_ (uint256): 18319007
Arg [1] : tenguToken_ (address): 0x6f6350D5d347aA8F7E9731756b60b774a7aCf95B
Arg [2] : busdToken_ (address): 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
Arg [3] : collector_ (address): 0x1266D7D91b4B00e2eA98a0352eD56AdCC1aCCf7C
Arg [4] : hardcap_ (uint256): 100000000000000000000000
Arg [5] : blockDuration_ (uint256): 86400
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000117869f
Arg [1] : 0000000000000000000000006f6350d5d347aa8f7e9731756b60b774a7acf95b
Arg [2] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [3] : 0000000000000000000000001266d7d91b4b00e2ea98a0352ed56adcc1accf7c
Arg [4] : 00000000000000000000000000000000000000000000152d02c7e14af6800000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000015180
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.