More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 100 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw By Unfr... | 19815902 | 239 days ago | IN | 0 ETH | 0.00041206 | ||||
Withdraw By Unfr... | 19340498 | 305 days ago | IN | 0 ETH | 0.00382475 | ||||
Stake | 19055777 | 345 days ago | IN | 0 ETH | 0.00291741 | ||||
Withdraw By Unfr... | 19055757 | 345 days ago | IN | 0 ETH | 0.00140649 | ||||
Withdraw By Unfr... | 18780838 | 384 days ago | IN | 0 ETH | 0.00281836 | ||||
Withdraw By Unfr... | 18718768 | 392 days ago | IN | 0 ETH | 0.00320638 | ||||
Withdraw By Unfr... | 18537926 | 418 days ago | IN | 0 ETH | 0.0028683 | ||||
Stake | 18502129 | 423 days ago | IN | 0 ETH | 0.00282862 | ||||
Withdraw By Unfr... | 18495515 | 424 days ago | IN | 0 ETH | 0.00155585 | ||||
Withdraw By Unfr... | 18494495 | 424 days ago | IN | 0 ETH | 0.00122654 | ||||
Withdraw By Unfr... | 18488621 | 425 days ago | IN | 0 ETH | 0.00111155 | ||||
Withdraw By Unfr... | 18487280 | 425 days ago | IN | 0 ETH | 0.00151969 | ||||
Withdraw By Unfr... | 18484091 | 425 days ago | IN | 0 ETH | 0.00138625 | ||||
Withdraw By Unfr... | 18483783 | 425 days ago | IN | 0 ETH | 0.00115261 | ||||
Withdraw By Unfr... | 18481859 | 426 days ago | IN | 0 ETH | 0.00169974 | ||||
Withdraw By Unfr... | 18471733 | 427 days ago | IN | 0 ETH | 0.0015912 | ||||
Withdraw By Unfr... | 18461870 | 428 days ago | IN | 0 ETH | 0.00105698 | ||||
Withdraw By Unfr... | 18453537 | 430 days ago | IN | 0 ETH | 0.0006874 | ||||
Withdraw By Unfr... | 18448179 | 430 days ago | IN | 0 ETH | 0.00106336 | ||||
Withdraw By Unfr... | 18447071 | 430 days ago | IN | 0 ETH | 0.0008004 | ||||
Withdraw By Unfr... | 18444570 | 431 days ago | IN | 0 ETH | 0.00167188 | ||||
Withdraw By Unfr... | 18444126 | 431 days ago | IN | 0 ETH | 0.0015679 | ||||
Withdraw By Unfr... | 18440425 | 431 days ago | IN | 0 ETH | 0.00116304 | ||||
Withdraw By Unfr... | 18439519 | 432 days ago | IN | 0 ETH | 0.00132447 | ||||
Withdraw By Unfr... | 18438368 | 432 days ago | IN | 0 ETH | 0.00098463 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
SpiritStaking
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract SpiritStaking { using SafeERC20 for ERC20; uint constant _baseProportion = 10000; uint immutable _bonusProportion; uint public lockCycle; uint public total; uint public payed; ERC20 public input; ERC20 public output; uint256 public rewardPerTokenStored; string public name; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; mapping (address => uint) public balance; mapping(address => uint) public userPayed; event Stake(address indexed account, uint amount, uint lockTime); event Withdraw(address indexed account, uint amount); event GetReward(address indexed account, uint amount); event AddBonus(address indexed account, uint amount); struct LockLog { uint unLockTime; uint amount; } mapping(address => LockLog[]) public _locklogs; modifier updateReward(address account) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; _; } constructor(string memory name_, address input_, address output_, uint bonusProportion_, uint lockCycle_) { name = name_; _bonusProportion = bonusProportion_; lockCycle = lockCycle_; input = ERC20(input_); output = ERC20(output_); } function earned(address account) public view returns (uint256) { return balance[account] * (rewardPerTokenStored - userRewardPerTokenPaid[account]) / 1e18 + rewards[account]; } function stake(uint amount) external updateReward(msg.sender) { require(amount > 0); input.safeTransferFrom(msg.sender, address(this), amount); total += amount; balance[msg.sender] += amount; _locklogs[msg.sender].push(LockLog(block.timestamp + lockCycle, amount)); emit Stake(msg.sender, amount, block.timestamp + lockCycle); } function unfreezeTotal(address account) public view returns (uint unfreeze) { uint length = _locklogs[account].length; for (uint i; i < length; i++) { if (_locklogs[account][i].unLockTime <= block.timestamp) { unfreeze += _locklogs[account][i].amount; } } } function withdrawByUnfreeze() external updateReward(msg.sender) { uint length = _locklogs[msg.sender].length; for (uint i = length - 1 ; i >= 0; i--) { if (_locklogs[msg.sender][i].unLockTime <= block.timestamp) { withdraw(i); } if (i == 0) { return; } } } function withdrawByIndex(uint index) external updateReward(msg.sender) { withdraw(index); } function withdraw(uint index) internal{ LockLog memory log = _locklogs[msg.sender][index]; require(log.amount > 0 && log.unLockTime < block.timestamp, "withdraw error"); input.safeTransfer(msg.sender, log.amount); uint length = _locklogs[msg.sender].length; total -= log.amount; balance[msg.sender] -= log.amount; if (length - 1 != index) { _locklogs[msg.sender][index] = _locklogs[msg.sender][length - 1]; _locklogs[msg.sender][length - 1] = log; } _locklogs[msg.sender].pop(); emit Withdraw(msg.sender, log.amount); } function getReward() public updateReward(msg.sender) { require(rewards[msg.sender] > 0,"not enough"); output.safeTransfer(msg.sender, rewards[msg.sender]); payed += rewards[msg.sender]; userPayed[msg.sender] += rewards[msg.sender]; emit GetReward(msg.sender, rewards[msg.sender]); rewards[msg.sender] = 0; } function addBonus(uint amount) external { require(total != 0); require(amount * 1e18 * _bonusProportion / _baseProportion / total > 0 , "amount error"); rewardPerTokenStored += amount * 1e18 * _bonusProportion / _baseProportion / total; output.safeTransferFrom(msg.sender, address(this), amount * _bonusProportion / _baseProportion); emit AddBonus(msg.sender, amount); } struct HomeView { uint PROPORTIONOFDIVIDENDPOOL; string STAKINGTOKEN; uint STAKINGLOCKUPTIME; bool APY; uint CUMULATIVEDIVIDENDSAVAILABLE; bool THETIMEUNTILTHENEXTDIVIDEND; uint TOTALSTAKEDPOOL; uint YOURCURRENTPROPORTION; uint YOURTOTALDIVIDEND; uint NOTBEENCLAIMED; uint YOUHAVESTAKED; uint REDEEMABLEUPINMATURITY; } function homeView(address account) external view returns (HomeView memory){ return HomeView ( _bonusProportion, name, lockCycle, false, payed, false, total, total == 0 ? 0 : balance[account] * _baseProportion / total, userPayed[account] + earned(account), earned(account), balance[account], unfreezeTotal(account) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "shanghai", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"address","name":"input_","type":"address"},{"internalType":"address","name":"output_","type":"address"},{"internalType":"uint256","name":"bonusProportion_","type":"uint256"},{"internalType":"uint256","name":"lockCycle_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AddBonus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GetReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"_locklogs","outputs":[{"internalType":"uint256","name":"unLockTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"homeView","outputs":[{"components":[{"internalType":"uint256","name":"PROPORTIONOFDIVIDENDPOOL","type":"uint256"},{"internalType":"string","name":"STAKINGTOKEN","type":"string"},{"internalType":"uint256","name":"STAKINGLOCKUPTIME","type":"uint256"},{"internalType":"bool","name":"APY","type":"bool"},{"internalType":"uint256","name":"CUMULATIVEDIVIDENDSAVAILABLE","type":"uint256"},{"internalType":"bool","name":"THETIMEUNTILTHENEXTDIVIDEND","type":"bool"},{"internalType":"uint256","name":"TOTALSTAKEDPOOL","type":"uint256"},{"internalType":"uint256","name":"YOURCURRENTPROPORTION","type":"uint256"},{"internalType":"uint256","name":"YOURTOTALDIVIDEND","type":"uint256"},{"internalType":"uint256","name":"NOTBEENCLAIMED","type":"uint256"},{"internalType":"uint256","name":"YOUHAVESTAKED","type":"uint256"},{"internalType":"uint256","name":"REDEEMABLEUPINMATURITY","type":"uint256"}],"internalType":"struct SpiritStaking.HomeView","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"input","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockCycle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"output","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unfreezeTotal","outputs":[{"internalType":"uint256","name":"unfreeze","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userPayed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"withdrawByIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawByUnfreeze","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801562000010575f80fd5b5060405162002cad38038062002cad8339818101604052810190620000369190620002ff565b8460069081620000479190620005d0565b508160808181525050805f819055508360035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620006b4565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6200014282620000fa565b810181811067ffffffffffffffff821117156200016457620001636200010a565b5b80604052505050565b5f62000178620000e1565b905062000186828262000137565b919050565b5f67ffffffffffffffff821115620001a857620001a76200010a565b5b620001b382620000fa565b9050602081019050919050565b5f5b83811015620001df578082015181840152602081019050620001c2565b5f8484015250505050565b5f62000200620001fa846200018b565b6200016d565b9050828152602081018484840111156200021f576200021e620000f6565b5b6200022c848285620001c0565b509392505050565b5f82601f8301126200024b576200024a620000f2565b5b81516200025d848260208601620001ea565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620002918262000266565b9050919050565b620002a38162000285565b8114620002ae575f80fd5b50565b5f81519050620002c18162000298565b92915050565b5f819050919050565b620002db81620002c7565b8114620002e6575f80fd5b50565b5f81519050620002f981620002d0565b92915050565b5f805f805f60a086880312156200031b576200031a620000ea565b5b5f86015167ffffffffffffffff8111156200033b576200033a620000ee565b5b620003498882890162000234565b95505060206200035c88828901620002b1565b94505060406200036f88828901620002b1565b93505060606200038288828901620002e9565b92505060806200039588828901620002e9565b9150509295509295909350565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620003f157607f821691505b602082108103620004075762000406620003ac565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200046b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200042e565b6200047786836200042e565b95508019841693508086168417925050509392505050565b5f819050919050565b5f620004b8620004b2620004ac84620002c7565b6200048f565b620002c7565b9050919050565b5f819050919050565b620004d38362000498565b620004eb620004e282620004bf565b8484546200043a565b825550505050565b5f90565b62000501620004f3565b6200050e818484620004c8565b505050565b5b818110156200053557620005295f82620004f7565b60018101905062000514565b5050565b601f82111562000584576200054e816200040d565b62000559846200041f565b8101602085101562000569578190505b6200058162000578856200041f565b83018262000513565b50505b505050565b5f82821c905092915050565b5f620005a65f198460080262000589565b1980831691505092915050565b5f620005c0838362000595565b9150826002028217905092915050565b620005db82620003a2565b67ffffffffffffffff811115620005f757620005f66200010a565b5b620006038254620003d9565b6200061082828562000539565b5f60209050601f83116001811462000646575f841562000631578287015190505b6200063d8582620005b3565b865550620006ac565b601f19841662000656866200040d565b5f5b828110156200067f5784890151825560018201915060208501945060208101905062000658565b868310156200069f57848901516200069b601f89168262000595565b8355505b6001600288020188555050505b505050505050565b6080516125cb620006e25f395f81816105950152818161062e015281816106a0015261104401526125cb5ff3fe608060405234801561000f575f80fd5b5060043610610129575f3560e01c80636ecc778d116100ab578063e206e9421161006f578063e206e94214610342578063e3d670d71461035e578063eaed3f4f1461038e578063f20eaeb8146103ac578063f8132b66146103ca57610129565b80636ecc778d1461029e5780638b876347146102a8578063a694fc3a146102d8578063b54da643146102f4578063df136d651461032457610129565b80633d18b912116100f25780633d18b912146101e5578063492a51f4146101ef57806353225d3f1461021f57806356e4bc1f1461024f578063629051281461026d57610129565b80628cc2621461012d57806306fdde031461015d5780630700037d1461017b578063111878f6146101ab5780632ddbd13a146101c7575b5f80fd5b61014760048036038101906101429190611ba3565b6103e8565b6040516101549190611be6565b60405180910390f35b6101656104de565b6040516101729190611c89565b60405180910390f35b61019560048036038101906101909190611ba3565b61056a565b6040516101a29190611be6565b60405180910390f35b6101c560048036038101906101c09190611cd3565b61057f565b005b6101cf61076d565b6040516101dc9190611be6565b60405180910390f35b6101ed610773565b005b61020960048036038101906102049190611ba3565b610abf565b6040516102169190611be6565b60405180910390f35b61023960048036038101906102349190611ba3565b610ad4565b6040516102469190611be6565b60405180910390f35b610257610c0e565b6040516102649190611be6565b60405180910390f35b61028760048036038101906102829190611cfe565b610c14565b604051610295929190611d3c565b60405180910390f35b6102a6610c4e565b005b6102c260048036038101906102bd9190611ba3565b610dce565b6040516102cf9190611be6565b60405180910390f35b6102f260048036038101906102ed9190611cd3565b610de3565b005b61030e60048036038101906103099190611ba3565b61102e565b60405161031b9190611ed5565b60405180910390f35b61032c611244565b6040516103399190611be6565b60405180910390f35b61035c60048036038101906103579190611cd3565b61124a565b005b61037860048036038101906103739190611ba3565b6112e6565b6040516103859190611be6565b60405180910390f35b6103966112fb565b6040516103a39190611f50565b60405180910390f35b6103b4611320565b6040516103c19190611f50565b60405180910390f35b6103d2611345565b6040516103df9190611be6565b60405180910390f35b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054670de0b6b3a764000060075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460055461047b9190611f96565b60095f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546104c39190611fc9565b6104cd9190612037565b6104d79190612067565b9050919050565b600680546104eb906120c7565b80601f0160208091040260200160405190810160405280929190818152602001828054610517906120c7565b80156105625780601f1061053957610100808354040283529160200191610562565b820191905f5260205f20905b81548152906001019060200180831161054557829003601f168201915b505050505081565b6008602052805f5260405f205f915090505481565b5f6001540361058c575f80fd5b5f6001546127107f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a7640000856105c89190611fc9565b6105d29190611fc9565b6105dc9190612037565b6105e69190612037565b11610626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061d90612141565b60405180910390fd5b6001546127107f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a7640000846106619190611fc9565b61066b9190611fc9565b6106759190612037565b61067f9190612037565b60055f82825461068f9190612067565b9250508190555061071c33306127107f0000000000000000000000000000000000000000000000000000000000000000856106ca9190611fc9565b6106d49190612037565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661134a909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f703d416a253219fc7efe029c628a6487da78e551dad9cc4741a0cc8761b3eb49826040516107629190611be6565b60405180910390a250565b60015481565b3361077d816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205411610881576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610878906121a9565b60405180910390fd5b61090a3360085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d39092919063ffffffff16565b60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460025f8282546109589190612067565b9250508190555060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546109e89190612067565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f25c30c62c42b51e4f667b70ef60f1f683c376f6ace28312ed45a40665e01af3760085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054604051610a729190611be6565b60405180910390a25f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050565b600a602052805f5260405f205f915090505481565b5f80600b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905090505f5b81811015610c075742600b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208281548110610b7357610b726121c7565b5b905f5260205f2090600202015f015411610bf457600b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208181548110610bd657610bd56121c7565b5b905f5260205f2090600202016001015483610bf19190612067565b92505b8080610bff906121f4565b915050610b1b565b5050919050565b60025481565b600b602052815f5260405f208181548110610c2d575f80fd5b905f5260205f2090600202015f9150915050805f0154908060010154905082565b33610c58816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905090505f600182610d2f9190611f96565b90505b5f8110610dc85742600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208281548110610d8957610d886121c7565b5b905f5260205f2090600202015f015411610da757610da681611459565b5b5f8103610db5575050610dcb565b8080610dc09061223b565b915050610d32565b50505b50565b6007602052805f5260405f205f915090505481565b33610ded816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f8211610e7d575f80fd5b610ecb33308460035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661134a909392919063ffffffff16565b8160015f828254610edc9190612067565b925050819055508160095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610f2f9190612067565b92505081905550600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060405180604001604052805f5442610f8b9190612067565b815260200184815250908060018154018082558091505060019003905f5260205f2090600202015f909190919091505f820151815f01556020820151816001015550503373ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6835f54426110149190612067565b604051611022929190611d3c565b60405180910390a25050565b611036611aeb565b6040518061018001604052807f0000000000000000000000000000000000000000000000000000000000000000815260200160068054611075906120c7565b80601f01602080910402602001604051908101604052809291908181526020018280546110a1906120c7565b80156110ec5780601f106110c3576101008083540402835291602001916110ec565b820191905f5260205f20905b8154815290600101906020018083116110cf57829003601f168201915b505050505081526020015f5481526020015f1515815260200160025481526020015f1515815260200160015481526020015f600154146111835760015461271060095f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111749190611fc9565b61117e9190612037565b611185565b5f5b8152602001611193846103e8565b600a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111db9190612067565b81526020016111e9846103e8565b815260200160095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054815260200161123a84610ad4565b8152509050919050565b60055481565b33611254816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506112e282611459565b5050565b6009602052805f5260405f205f915090505481565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5481565b6113cd846323b872dd60e01b85858560405160240161136b93929190612271565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611860565b50505050565b6114548363a9059cbb60e01b84846040516024016113f29291906122a6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611860565b505050565b5f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106114a9576114a86121c7565b5b905f5260205f2090600202016040518060400160405290815f820154815260200160018201548152505090505f81602001511180156114ea575042815f0151105b611529576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152090612317565b60405180910390fd5b61157933826020015160035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d39092919063ffffffff16565b5f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805490509050816020015160015f8282546115d29190611f96565b92505081905550816020015160095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546116299190611f96565b925050819055508260018261163e9190611f96565b1461179857600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060018261168d9190611f96565b8154811061169e5761169d6121c7565b5b905f5260205f209060020201600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2084815481106116f9576116f86121c7565b5b905f5260205f2090600202015f820154815f01556001820154816001015590505081600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001836117659190611f96565b81548110611776576117756121c7565b5b905f5260205f2090600202015f820151815f0155602082015181600101559050505b600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054806117e5576117e4612335565b5b600190038181905f5260205f2090600202015f8082015f9055600182015f9055505090553373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436483602001516040516118539190611be6565b60405180910390a2505050565b5f6118c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119269092919063ffffffff16565b90505f815114806118e25750808060200190518101906118e1919061238c565b5b611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890612427565b60405180910390fd5b505050565b606061193484845f8561193d565b90509392505050565b606082471015611982576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611979906124b5565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516119aa9190612517565b5f6040518083038185875af1925050503d805f81146119e4576040519150601f19603f3d011682016040523d82523d5f602084013e6119e9565b606091505b50915091506119fa87838387611a06565b92505050949350505050565b60608315611a67575f835103611a5f57611a1f85611a7a565b611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5590612577565b60405180910390fd5b5b829050611a72565b611a718383611a9c565b5b949350505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f82511115611aae5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae29190611c89565b60405180910390fd5b6040518061018001604052805f8152602001606081526020015f81526020015f151581526020015f81526020015f151581526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b7282611b49565b9050919050565b611b8281611b68565b8114611b8c575f80fd5b50565b5f81359050611b9d81611b79565b92915050565b5f60208284031215611bb857611bb7611b45565b5b5f611bc584828501611b8f565b91505092915050565b5f819050919050565b611be081611bce565b82525050565b5f602082019050611bf95f830184611bd7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611c36578082015181840152602081019050611c1b565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611c5b82611bff565b611c658185611c09565b9350611c75818560208601611c19565b611c7e81611c41565b840191505092915050565b5f6020820190508181035f830152611ca18184611c51565b905092915050565b611cb281611bce565b8114611cbc575f80fd5b50565b5f81359050611ccd81611ca9565b92915050565b5f60208284031215611ce857611ce7611b45565b5b5f611cf584828501611cbf565b91505092915050565b5f8060408385031215611d1457611d13611b45565b5b5f611d2185828601611b8f565b9250506020611d3285828601611cbf565b9150509250929050565b5f604082019050611d4f5f830185611bd7565b611d5c6020830184611bd7565b9392505050565b611d6c81611bce565b82525050565b5f82825260208201905092915050565b5f611d8c82611bff565b611d968185611d72565b9350611da6818560208601611c19565b611daf81611c41565b840191505092915050565b5f8115159050919050565b611dce81611dba565b82525050565b5f61018083015f830151611dea5f860182611d63565b5060208301518482036020860152611e028282611d82565b9150506040830151611e176040860182611d63565b506060830151611e2a6060860182611dc5565b506080830151611e3d6080860182611d63565b5060a0830151611e5060a0860182611dc5565b5060c0830151611e6360c0860182611d63565b5060e0830151611e7660e0860182611d63565b50610100830151611e8b610100860182611d63565b50610120830151611ea0610120860182611d63565b50610140830151611eb5610140860182611d63565b50610160830151611eca610160860182611d63565b508091505092915050565b5f6020820190508181035f830152611eed8184611dd4565b905092915050565b5f819050919050565b5f611f18611f13611f0e84611b49565b611ef5565b611b49565b9050919050565b5f611f2982611efe565b9050919050565b5f611f3a82611f1f565b9050919050565b611f4a81611f30565b82525050565b5f602082019050611f635f830184611f41565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611fa082611bce565b9150611fab83611bce565b9250828203905081811115611fc357611fc2611f69565b5b92915050565b5f611fd382611bce565b9150611fde83611bce565b9250828202611fec81611bce565b9150828204841483151761200357612002611f69565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61204182611bce565b915061204c83611bce565b92508261205c5761205b61200a565b5b828204905092915050565b5f61207182611bce565b915061207c83611bce565b925082820190508082111561209457612093611f69565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806120de57607f821691505b6020821081036120f1576120f061209a565b5b50919050565b7f616d6f756e74206572726f7200000000000000000000000000000000000000005f82015250565b5f61212b600c83611c09565b9150612136826120f7565b602082019050919050565b5f6020820190508181035f8301526121588161211f565b9050919050565b7f6e6f7420656e6f756768000000000000000000000000000000000000000000005f82015250565b5f612193600a83611c09565b915061219e8261215f565b602082019050919050565b5f6020820190508181035f8301526121c081612187565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6121fe82611bce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036122305761222f611f69565b5b600182019050919050565b5f61224582611bce565b91505f820361225757612256611f69565b5b600182039050919050565b61226b81611b68565b82525050565b5f6060820190506122845f830186612262565b6122916020830185612262565b61229e6040830184611bd7565b949350505050565b5f6040820190506122b95f830185612262565b6122c66020830184611bd7565b9392505050565b7f7769746864726177206572726f720000000000000000000000000000000000005f82015250565b5f612301600e83611c09565b915061230c826122cd565b602082019050919050565b5f6020820190508181035f83015261232e816122f5565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b61236b81611dba565b8114612375575f80fd5b50565b5f8151905061238681612362565b92915050565b5f602082840312156123a1576123a0611b45565b5b5f6123ae84828501612378565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f612411602a83611c09565b915061241c826123b7565b604082019050919050565b5f6020820190508181035f83015261243e81612405565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f61249f602683611c09565b91506124aa82612445565b604082019050919050565b5f6020820190508181035f8301526124cc81612493565b9050919050565b5f81519050919050565b5f81905092915050565b5f6124f1826124d3565b6124fb81856124dd565b935061250b818560208601611c19565b80840191505092915050565b5f61252282846124e7565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f612561601d83611c09565b915061256c8261252d565b602082019050919050565b5f6020820190508181035f83015261258e81612555565b905091905056fea2646970667358221220652edfd303d51a04a9ca1d33c947e938bacddfbbd8c5a544ec71f297637a1b2664736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000000000065370697269740000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610129575f3560e01c80636ecc778d116100ab578063e206e9421161006f578063e206e94214610342578063e3d670d71461035e578063eaed3f4f1461038e578063f20eaeb8146103ac578063f8132b66146103ca57610129565b80636ecc778d1461029e5780638b876347146102a8578063a694fc3a146102d8578063b54da643146102f4578063df136d651461032457610129565b80633d18b912116100f25780633d18b912146101e5578063492a51f4146101ef57806353225d3f1461021f57806356e4bc1f1461024f578063629051281461026d57610129565b80628cc2621461012d57806306fdde031461015d5780630700037d1461017b578063111878f6146101ab5780632ddbd13a146101c7575b5f80fd5b61014760048036038101906101429190611ba3565b6103e8565b6040516101549190611be6565b60405180910390f35b6101656104de565b6040516101729190611c89565b60405180910390f35b61019560048036038101906101909190611ba3565b61056a565b6040516101a29190611be6565b60405180910390f35b6101c560048036038101906101c09190611cd3565b61057f565b005b6101cf61076d565b6040516101dc9190611be6565b60405180910390f35b6101ed610773565b005b61020960048036038101906102049190611ba3565b610abf565b6040516102169190611be6565b60405180910390f35b61023960048036038101906102349190611ba3565b610ad4565b6040516102469190611be6565b60405180910390f35b610257610c0e565b6040516102649190611be6565b60405180910390f35b61028760048036038101906102829190611cfe565b610c14565b604051610295929190611d3c565b60405180910390f35b6102a6610c4e565b005b6102c260048036038101906102bd9190611ba3565b610dce565b6040516102cf9190611be6565b60405180910390f35b6102f260048036038101906102ed9190611cd3565b610de3565b005b61030e60048036038101906103099190611ba3565b61102e565b60405161031b9190611ed5565b60405180910390f35b61032c611244565b6040516103399190611be6565b60405180910390f35b61035c60048036038101906103579190611cd3565b61124a565b005b61037860048036038101906103739190611ba3565b6112e6565b6040516103859190611be6565b60405180910390f35b6103966112fb565b6040516103a39190611f50565b60405180910390f35b6103b4611320565b6040516103c19190611f50565b60405180910390f35b6103d2611345565b6040516103df9190611be6565b60405180910390f35b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054670de0b6b3a764000060075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460055461047b9190611f96565b60095f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546104c39190611fc9565b6104cd9190612037565b6104d79190612067565b9050919050565b600680546104eb906120c7565b80601f0160208091040260200160405190810160405280929190818152602001828054610517906120c7565b80156105625780601f1061053957610100808354040283529160200191610562565b820191905f5260205f20905b81548152906001019060200180831161054557829003601f168201915b505050505081565b6008602052805f5260405f205f915090505481565b5f6001540361058c575f80fd5b5f6001546127107f00000000000000000000000000000000000000000000000000000000000003e8670de0b6b3a7640000856105c89190611fc9565b6105d29190611fc9565b6105dc9190612037565b6105e69190612037565b11610626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061d90612141565b60405180910390fd5b6001546127107f00000000000000000000000000000000000000000000000000000000000003e8670de0b6b3a7640000846106619190611fc9565b61066b9190611fc9565b6106759190612037565b61067f9190612037565b60055f82825461068f9190612067565b9250508190555061071c33306127107f00000000000000000000000000000000000000000000000000000000000003e8856106ca9190611fc9565b6106d49190612037565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661134a909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f703d416a253219fc7efe029c628a6487da78e551dad9cc4741a0cc8761b3eb49826040516107629190611be6565b60405180910390a250565b60015481565b3361077d816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205411610881576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610878906121a9565b60405180910390fd5b61090a3360085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d39092919063ffffffff16565b60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460025f8282546109589190612067565b9250508190555060085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054600a5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546109e89190612067565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f25c30c62c42b51e4f667b70ef60f1f683c376f6ace28312ed45a40665e01af3760085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054604051610a729190611be6565b60405180910390a25f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050565b600a602052805f5260405f205f915090505481565b5f80600b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905090505f5b81811015610c075742600b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208281548110610b7357610b726121c7565b5b905f5260205f2090600202015f015411610bf457600b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208181548110610bd657610bd56121c7565b5b905f5260205f2090600202016001015483610bf19190612067565b92505b8080610bff906121f4565b915050610b1b565b5050919050565b60025481565b600b602052815f5260405f208181548110610c2d575f80fd5b905f5260205f2090600202015f9150915050805f0154908060010154905082565b33610c58816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905090505f600182610d2f9190611f96565b90505b5f8110610dc85742600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208281548110610d8957610d886121c7565b5b905f5260205f2090600202015f015411610da757610da681611459565b5b5f8103610db5575050610dcb565b8080610dc09061223b565b915050610d32565b50505b50565b6007602052805f5260405f205f915090505481565b33610ded816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f8211610e7d575f80fd5b610ecb33308460035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661134a909392919063ffffffff16565b8160015f828254610edc9190612067565b925050819055508160095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254610f2f9190612067565b92505081905550600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060405180604001604052805f5442610f8b9190612067565b815260200184815250908060018154018082558091505060019003905f5260205f2090600202015f909190919091505f820151815f01556020820151816001015550503373ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b6835f54426110149190612067565b604051611022929190611d3c565b60405180910390a25050565b611036611aeb565b6040518061018001604052807f00000000000000000000000000000000000000000000000000000000000003e8815260200160068054611075906120c7565b80601f01602080910402602001604051908101604052809291908181526020018280546110a1906120c7565b80156110ec5780601f106110c3576101008083540402835291602001916110ec565b820191905f5260205f20905b8154815290600101906020018083116110cf57829003601f168201915b505050505081526020015f5481526020015f1515815260200160025481526020015f1515815260200160015481526020015f600154146111835760015461271060095f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111749190611fc9565b61117e9190612037565b611185565b5f5b8152602001611193846103e8565b600a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111db9190612067565b81526020016111e9846103e8565b815260200160095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054815260200161123a84610ad4565b8152509050919050565b60055481565b33611254816103e8565b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060055460075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506112e282611459565b5050565b6009602052805f5260405f205f915090505481565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5481565b6113cd846323b872dd60e01b85858560405160240161136b93929190612271565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611860565b50505050565b6114548363a9059cbb60e01b84846040516024016113f29291906122a6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611860565b505050565b5f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2082815481106114a9576114a86121c7565b5b905f5260205f2090600202016040518060400160405290815f820154815260200160018201548152505090505f81602001511180156114ea575042815f0151105b611529576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152090612317565b60405180910390fd5b61157933826020015160035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d39092919063ffffffff16565b5f600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20805490509050816020015160015f8282546115d29190611f96565b92505081905550816020015160095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546116299190611f96565b925050819055508260018261163e9190611f96565b1461179857600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060018261168d9190611f96565b8154811061169e5761169d6121c7565b5b905f5260205f209060020201600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2084815481106116f9576116f86121c7565b5b905f5260205f2090600202015f820154815f01556001820154816001015590505081600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001836117659190611f96565b81548110611776576117756121c7565b5b905f5260205f2090600202015f820151815f0155602082015181600101559050505b600b5f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054806117e5576117e4612335565b5b600190038181905f5260205f2090600202015f8082015f9055600182015f9055505090553373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436483602001516040516118539190611be6565b60405180910390a2505050565b5f6118c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119269092919063ffffffff16565b90505f815114806118e25750808060200190518101906118e1919061238c565b5b611921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191890612427565b60405180910390fd5b505050565b606061193484845f8561193d565b90509392505050565b606082471015611982576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611979906124b5565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516119aa9190612517565b5f6040518083038185875af1925050503d805f81146119e4576040519150601f19603f3d011682016040523d82523d5f602084013e6119e9565b606091505b50915091506119fa87838387611a06565b92505050949350505050565b60608315611a67575f835103611a5f57611a1f85611a7a565b611a5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5590612577565b60405180910390fd5b5b829050611a72565b611a718383611a9c565b5b949350505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f82511115611aae5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae29190611c89565b60405180910390fd5b6040518061018001604052805f8152602001606081526020015f81526020015f151581526020015f81526020015f151581526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b7282611b49565b9050919050565b611b8281611b68565b8114611b8c575f80fd5b50565b5f81359050611b9d81611b79565b92915050565b5f60208284031215611bb857611bb7611b45565b5b5f611bc584828501611b8f565b91505092915050565b5f819050919050565b611be081611bce565b82525050565b5f602082019050611bf95f830184611bd7565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015611c36578082015181840152602081019050611c1b565b5f8484015250505050565b5f601f19601f8301169050919050565b5f611c5b82611bff565b611c658185611c09565b9350611c75818560208601611c19565b611c7e81611c41565b840191505092915050565b5f6020820190508181035f830152611ca18184611c51565b905092915050565b611cb281611bce565b8114611cbc575f80fd5b50565b5f81359050611ccd81611ca9565b92915050565b5f60208284031215611ce857611ce7611b45565b5b5f611cf584828501611cbf565b91505092915050565b5f8060408385031215611d1457611d13611b45565b5b5f611d2185828601611b8f565b9250506020611d3285828601611cbf565b9150509250929050565b5f604082019050611d4f5f830185611bd7565b611d5c6020830184611bd7565b9392505050565b611d6c81611bce565b82525050565b5f82825260208201905092915050565b5f611d8c82611bff565b611d968185611d72565b9350611da6818560208601611c19565b611daf81611c41565b840191505092915050565b5f8115159050919050565b611dce81611dba565b82525050565b5f61018083015f830151611dea5f860182611d63565b5060208301518482036020860152611e028282611d82565b9150506040830151611e176040860182611d63565b506060830151611e2a6060860182611dc5565b506080830151611e3d6080860182611d63565b5060a0830151611e5060a0860182611dc5565b5060c0830151611e6360c0860182611d63565b5060e0830151611e7660e0860182611d63565b50610100830151611e8b610100860182611d63565b50610120830151611ea0610120860182611d63565b50610140830151611eb5610140860182611d63565b50610160830151611eca610160860182611d63565b508091505092915050565b5f6020820190508181035f830152611eed8184611dd4565b905092915050565b5f819050919050565b5f611f18611f13611f0e84611b49565b611ef5565b611b49565b9050919050565b5f611f2982611efe565b9050919050565b5f611f3a82611f1f565b9050919050565b611f4a81611f30565b82525050565b5f602082019050611f635f830184611f41565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611fa082611bce565b9150611fab83611bce565b9250828203905081811115611fc357611fc2611f69565b5b92915050565b5f611fd382611bce565b9150611fde83611bce565b9250828202611fec81611bce565b9150828204841483151761200357612002611f69565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61204182611bce565b915061204c83611bce565b92508261205c5761205b61200a565b5b828204905092915050565b5f61207182611bce565b915061207c83611bce565b925082820190508082111561209457612093611f69565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806120de57607f821691505b6020821081036120f1576120f061209a565b5b50919050565b7f616d6f756e74206572726f7200000000000000000000000000000000000000005f82015250565b5f61212b600c83611c09565b9150612136826120f7565b602082019050919050565b5f6020820190508181035f8301526121588161211f565b9050919050565b7f6e6f7420656e6f756768000000000000000000000000000000000000000000005f82015250565b5f612193600a83611c09565b915061219e8261215f565b602082019050919050565b5f6020820190508181035f8301526121c081612187565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6121fe82611bce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036122305761222f611f69565b5b600182019050919050565b5f61224582611bce565b91505f820361225757612256611f69565b5b600182039050919050565b61226b81611b68565b82525050565b5f6060820190506122845f830186612262565b6122916020830185612262565b61229e6040830184611bd7565b949350505050565b5f6040820190506122b95f830185612262565b6122c66020830184611bd7565b9392505050565b7f7769746864726177206572726f720000000000000000000000000000000000005f82015250565b5f612301600e83611c09565b915061230c826122cd565b602082019050919050565b5f6020820190508181035f83015261232e816122f5565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b61236b81611dba565b8114612375575f80fd5b50565b5f8151905061238681612362565b92915050565b5f602082840312156123a1576123a0611b45565b5b5f6123ae84828501612378565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f612411602a83611c09565b915061241c826123b7565b604082019050919050565b5f6020820190508181035f83015261243e81612405565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f61249f602683611c09565b91506124aa82612445565b604082019050919050565b5f6020820190508181035f8301526124cc81612493565b9050919050565b5f81519050919050565b5f81905092915050565b5f6124f1826124d3565b6124fb81856124dd565b935061250b818560208601611c19565b80840191505092915050565b5f61252282846124e7565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f612561601d83611c09565b915061256c8261252d565b602082019050919050565b5f6020820190508181035f83015261258e81612555565b905091905056fea2646970667358221220652edfd303d51a04a9ca1d33c947e938bacddfbbd8c5a544ec71f297637a1b2664736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000000000065370697269740000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Spirit
Arg [1] : input_ (address): 0x737E8a8b5F36a388638285d558F80Af7FBCecb8A
Arg [2] : output_ (address): 0x737E8a8b5F36a388638285d558F80Af7FBCecb8A
Arg [3] : bonusProportion_ (uint256): 1000
Arg [4] : lockCycle_ (uint256): 1209600
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a
Arg [2] : 000000000000000000000000737e8a8b5f36a388638285d558f80af7fbcecb8a
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000127500
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 5370697269740000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.