More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Staking
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Twitter: https://twitter.com/LPshareerc // Website: https://lpshares.tech // Telegram: https://t.me/LpShares // SPDX-License-Identifier: MIT pragma solidity 0.8.21; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ISTLP.sol"; contract Staking is Ownable, ReentrancyGuard { struct Share { uint depositTime; uint initialDeposit; uint sumReward; } mapping(address => Share) public shares; IERC20 public stakingToken; IERC20 public rewardToken; ISTLP public stlp; uint public sumReward; uint private constant PRECISION = 1e18; address private _taxWallet; uint public totalReward; uint256 public totalDistributed; bool public initialized; constructor(address _stlp) { stlp = ISTLP(_stlp); _taxWallet = _msgSender(); } function init(address _rewardToken, address _stakingToken) external { require(!initialized, "alrealy initialized"); stakingToken = IERC20(_stakingToken); rewardToken = IERC20(_rewardToken); initialized = true; } function setStakeToken(IERC20 token_) external onlyOwner { stakingToken = token_; } function setRewardToken(IERC20 token_) external onlyOwner { rewardToken = token_; } function deposit(uint amount) external nonReentrant { require(amount > 0, "Amount must be greater than zero"); Share memory share = shares[_msgSender()]; stakingToken.transferFrom(_msgSender(), address(this), amount); stlp.mint(msg.sender, amount); _payoutGainsUpdateShare( _msgSender(), share, share.initialDeposit + amount, true ); } function withdraw() external nonReentrant { Share memory share = shares[_msgSender()]; require(share.initialDeposit > 0, "No initial deposit"); require( share.depositTime + 1 weeks < block.timestamp, "withdraw after one week" ); stlp.burn(msg.sender, share.initialDeposit); stakingToken.transfer(_msgSender(), share.initialDeposit); _payoutGainsUpdateShare(_msgSender(), share, 0, true); } function claim() external nonReentrant { Share memory share = shares[_msgSender()]; require(share.initialDeposit > 0, "No initial deposit"); _payoutGainsUpdateShare( _msgSender(), share, share.initialDeposit, false ); } function _payoutGainsUpdateShare( address who, Share memory share, uint newAmount, bool resetTimer ) private { uint gains; if (share.initialDeposit != 0) gains = (share.initialDeposit * (sumReward - share.sumReward)) / PRECISION; if (newAmount == 0) delete shares[who]; else if (resetTimer) shares[who] = Share(block.timestamp, newAmount, sumReward); else shares[who] = Share(share.depositTime, newAmount, sumReward); if (gains > 0) { rewardToken.transfer(who, gains); totalDistributed = totalDistributed + gains; } } function pending(address who) external view returns (uint) { Share memory share = shares[who]; return (share.initialDeposit * (sumReward - share.sumReward)) / PRECISION; } function updateReward(uint256 _amount) external { require( _msgSender() == address(rewardToken), "only accept token contract" ); uint balance = stakingToken.balanceOf(address(this)); if (_amount == 0 || balance == 0) return; uint gpus = (_amount * PRECISION) / balance; sumReward += gpus; totalReward += _amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// 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 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 pragma solidity ^0.8.21; interface ISTLP { function allowance( address owner, address spender ) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function balanceOf(address account) external view returns (uint256); function bridge(address to, uint256 amount, bytes32 _raw) external; function bridgeAddress() external view returns (address); function burn(address from, uint256 amount) external; function decreaseAllowance( address spender, uint256 subtractedValue ) external returns (bool); function increaseAllowance( address spender, uint256 addedValue ) external returns (bool); function mint(address to, uint256 amount) external; function setBrige(address _bridge) external; function setStaking(address _staking) external; function stakingAddress() external view returns (address); function totalSupply() external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stlp","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"pending","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"}],"name":"setStakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"depositTime","type":"uint256"},{"internalType":"uint256","name":"initialDeposit","type":"uint256"},{"internalType":"uint256","name":"sumReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stlp","outputs":[{"internalType":"contract ISTLP","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sumReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060405162001cf338038062001cf3833981810160405281019062000036919062000220565b620000566200004a620000f360201b60201c565b620000fa60201b60201c565b600180819055508060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620000ad620000f360201b60201c565b60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000250565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620001ea82620001bf565b9050919050565b620001fc81620001de565b811462000207575f80fd5b50565b5f815190506200021a81620001f1565b92915050565b5f60208284031215620002385762000237620001bb565b5b5f62000247848285016200020a565b91505092915050565b611a95806200025e5f395ff3fe608060405234801561000f575f80fd5b506004361061011f575f3560e01c8063750142e6116100ab578063ce7c2ac21161006f578063ce7c2ac214610295578063efca2eed146102c7578063f09a4016146102e5578063f2fde38b14610301578063f7c618c11461031d5761011f565b8063750142e6146102035780638a2dced9146102215780638aee81271461023f5780638da5cb5b1461025b578063b6b55f25146102795761011f565b8063425c8abd116100f2578063425c8abd146101855780634e71d92d146101a15780635eebea20146101ab578063715018a6146101db57806372f702f3146101e55761011f565b80630397d45814610123578063158ef93e1461013f5780632ce65f5a1461015d5780633ccfd60b1461017b575b5f80fd5b61013d60048036038101906101389190611247565b61033b565b005b610147610386565b604051610154919061128c565b60405180910390f35b610165610398565b6040516101729190611300565b60405180910390f35b6101836103bd565b005b61019f600480360381019061019a919061134c565b610621565b005b6101a96107c3565b005b6101c560048036038101906101c091906113a1565b6108a2565b6040516101d291906113db565b60405180910390f35b6101e3610947565b005b6101ed61095a565b6040516101fa9190611414565b60405180910390f35b61020b61097f565b60405161021891906113db565b60405180910390f35b610229610985565b60405161023691906113db565b60405180910390f35b61025960048036038101906102549190611247565b61098b565b005b6102636109d6565b604051610270919061143c565b60405180910390f35b610293600480360381019061028e919061134c565b6109fd565b005b6102af60048036038101906102aa91906113a1565b610c14565b6040516102be93929190611455565b60405180910390f35b6102cf610c3a565b6040516102dc91906113db565b60405180910390f35b6102ff60048036038101906102fa919061148a565b610c40565b005b61031b600480360381019061031691906113a1565b610d2d565b005b610325610daf565b6040516103329190611414565b60405180910390f35b610343610dd4565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a5f9054906101000a900460ff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103c5610e52565b5f60025f6103d1610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f81602001511161047a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047190611522565b60405180910390fd5b4262093a80825f015161048d919061156d565b106104cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c4906115ea565b60405180910390fd5b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac3383602001516040518363ffffffff1660e01b815260040161052d929190611608565b5f604051808303815f87803b158015610544575f80fd5b505af1158015610556573d5f803e3d5ffd5b5050505060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61059f610ea1565b83602001516040518363ffffffff1660e01b81526004016105c1929190611608565b6020604051808303815f875af11580156105dd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106019190611659565b5061061661060d610ea1565b825f6001610ea8565b5061061f61110e565b565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610661610ea1565b73ffffffffffffffffffffffffffffffffffffffff16146106b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ae906116ce565b60405180910390fd5b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610712919061143c565b602060405180830381865afa15801561072d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107519190611700565b90505f82148061076057505f81145b1561076b57506107c0565b5f81670de0b6b3a764000084610781919061172b565b61078b9190611799565b90508060065f82825461079e919061156d565b925050819055508260085f8282546107b6919061156d565b9250508190555050505b50565b6107cb610e52565b5f60025f6107d7610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f816020015111610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087790611522565b60405180910390fd5b61089761088b610ea1565b8283602001515f610ea8565b506108a061110e565b565b5f8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f8201548152602001600182015481526020016002820154815250509050670de0b6b3a7640000816040015160065461092691906117c9565b8260200151610935919061172b565b61093f9190611799565b915050919050565b61094f610dd4565b6109585f611117565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b60065481565b610993610dd4565b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a05610e52565b5f8111610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90611846565b60405180910390fd5b5f60025f610a53610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f820154815260200160018201548152602001600282015481525050905060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610afb610ea1565b30856040518463ffffffff1660e01b8152600401610b1b93929190611864565b6020604051808303815f875af1158015610b37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b5b9190611659565b5060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933846040518363ffffffff1660e01b8152600401610bb8929190611608565b5f604051808303815f87803b158015610bcf575f80fd5b505af1158015610be1573d5f803e3d5ffd5b50505050610c08610bf0610ea1565b82848460200151610c01919061156d565b6001610ea8565b50610c1161110e565b50565b6002602052805f5260405f205f91509050805f0154908060010154908060020154905083565b60095481565b600a5f9054906101000a900460ff1615610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c86906118e3565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a5f6101000a81548160ff0219169083151502179055505050565b610d35610dd4565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9a90611971565b60405180910390fd5b610dac81611117565b50565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ddc610ea1565b73ffffffffffffffffffffffffffffffffffffffff16610dfa6109d6565b73ffffffffffffffffffffffffffffffffffffffff1614610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e47906119d9565b60405180910390fd5b565b600260015403610e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8e90611a41565b60405180910390fd5b6002600181905550565b5f33905090565b5f80846020015114610eeb57670de0b6b3a76400008460400151600654610ecf91906117c9565b8560200151610ede919061172b565b610ee89190611799565b90505b5f8303610f4b5760025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8082015f9055600182015f9055600282015f9055505061104d565b8115610fcf57604051806060016040528042815260200184815260200160065481525060025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015590505061104c565b6040518060600160405280855f0151815260200184815260200160065481525060025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201559050505b5b5f8111156111075760045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86836040518363ffffffff1660e01b81526004016110b1929190611608565b6020604051808303815f875af11580156110cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f19190611659565b5080600954611100919061156d565b6009819055505b5050505050565b60018081905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611205826111dc565b9050919050565b5f611216826111fb565b9050919050565b6112268161120c565b8114611230575f80fd5b50565b5f813590506112418161121d565b92915050565b5f6020828403121561125c5761125b6111d8565b5b5f61126984828501611233565b91505092915050565b5f8115159050919050565b61128681611272565b82525050565b5f60208201905061129f5f83018461127d565b92915050565b5f819050919050565b5f6112c86112c36112be846111dc565b6112a5565b6111dc565b9050919050565b5f6112d9826112ae565b9050919050565b5f6112ea826112cf565b9050919050565b6112fa816112e0565b82525050565b5f6020820190506113135f8301846112f1565b92915050565b5f819050919050565b61132b81611319565b8114611335575f80fd5b50565b5f8135905061134681611322565b92915050565b5f60208284031215611361576113606111d8565b5b5f61136e84828501611338565b91505092915050565b611380816111fb565b811461138a575f80fd5b50565b5f8135905061139b81611377565b92915050565b5f602082840312156113b6576113b56111d8565b5b5f6113c38482850161138d565b91505092915050565b6113d581611319565b82525050565b5f6020820190506113ee5f8301846113cc565b92915050565b5f6113fe826112cf565b9050919050565b61140e816113f4565b82525050565b5f6020820190506114275f830184611405565b92915050565b611436816111fb565b82525050565b5f60208201905061144f5f83018461142d565b92915050565b5f6060820190506114685f8301866113cc565b61147560208301856113cc565b61148260408301846113cc565b949350505050565b5f80604083850312156114a05761149f6111d8565b5b5f6114ad8582860161138d565b92505060206114be8582860161138d565b9150509250929050565b5f82825260208201905092915050565b7f4e6f20696e697469616c206465706f73697400000000000000000000000000005f82015250565b5f61150c6012836114c8565b9150611517826114d8565b602082019050919050565b5f6020820190508181035f83015261153981611500565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61157782611319565b915061158283611319565b925082820190508082111561159a57611599611540565b5b92915050565b7f7769746864726177206166746572206f6e65207765656b0000000000000000005f82015250565b5f6115d46017836114c8565b91506115df826115a0565b602082019050919050565b5f6020820190508181035f830152611601816115c8565b9050919050565b5f60408201905061161b5f83018561142d565b61162860208301846113cc565b9392505050565b61163881611272565b8114611642575f80fd5b50565b5f815190506116538161162f565b92915050565b5f6020828403121561166e5761166d6111d8565b5b5f61167b84828501611645565b91505092915050565b7f6f6e6c792061636365707420746f6b656e20636f6e74726163740000000000005f82015250565b5f6116b8601a836114c8565b91506116c382611684565b602082019050919050565b5f6020820190508181035f8301526116e5816116ac565b9050919050565b5f815190506116fa81611322565b92915050565b5f60208284031215611715576117146111d8565b5b5f611722848285016116ec565b91505092915050565b5f61173582611319565b915061174083611319565b925082820261174e81611319565b9150828204841483151761176557611764611540565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6117a382611319565b91506117ae83611319565b9250826117be576117bd61176c565b5b828204905092915050565b5f6117d382611319565b91506117de83611319565b92508282039050818111156117f6576117f5611540565b5b92915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f5f82015250565b5f6118306020836114c8565b915061183b826117fc565b602082019050919050565b5f6020820190508181035f83015261185d81611824565b9050919050565b5f6060820190506118775f83018661142d565b611884602083018561142d565b61189160408301846113cc565b949350505050565b7f616c7265616c7920696e697469616c697a6564000000000000000000000000005f82015250565b5f6118cd6013836114c8565b91506118d882611899565b602082019050919050565b5f6020820190508181035f8301526118fa816118c1565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61195b6026836114c8565b915061196682611901565b604082019050919050565b5f6020820190508181035f8301526119888161194f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6119c36020836114c8565b91506119ce8261198f565b602082019050919050565b5f6020820190508181035f8301526119f0816119b7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611a2b601f836114c8565b9150611a36826119f7565b602082019050919050565b5f6020820190508181035f830152611a5881611a1f565b905091905056fea26469706673582212205855479e9921445ccdf9af1f40cdd07cd567d3e9dd740db904a758aaba54295f64736f6c634300081500330000000000000000000000004eda2f35cc2fbc6514246b3575796e7e171ba093
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061011f575f3560e01c8063750142e6116100ab578063ce7c2ac21161006f578063ce7c2ac214610295578063efca2eed146102c7578063f09a4016146102e5578063f2fde38b14610301578063f7c618c11461031d5761011f565b8063750142e6146102035780638a2dced9146102215780638aee81271461023f5780638da5cb5b1461025b578063b6b55f25146102795761011f565b8063425c8abd116100f2578063425c8abd146101855780634e71d92d146101a15780635eebea20146101ab578063715018a6146101db57806372f702f3146101e55761011f565b80630397d45814610123578063158ef93e1461013f5780632ce65f5a1461015d5780633ccfd60b1461017b575b5f80fd5b61013d60048036038101906101389190611247565b61033b565b005b610147610386565b604051610154919061128c565b60405180910390f35b610165610398565b6040516101729190611300565b60405180910390f35b6101836103bd565b005b61019f600480360381019061019a919061134c565b610621565b005b6101a96107c3565b005b6101c560048036038101906101c091906113a1565b6108a2565b6040516101d291906113db565b60405180910390f35b6101e3610947565b005b6101ed61095a565b6040516101fa9190611414565b60405180910390f35b61020b61097f565b60405161021891906113db565b60405180910390f35b610229610985565b60405161023691906113db565b60405180910390f35b61025960048036038101906102549190611247565b61098b565b005b6102636109d6565b604051610270919061143c565b60405180910390f35b610293600480360381019061028e919061134c565b6109fd565b005b6102af60048036038101906102aa91906113a1565b610c14565b6040516102be93929190611455565b60405180910390f35b6102cf610c3a565b6040516102dc91906113db565b60405180910390f35b6102ff60048036038101906102fa919061148a565b610c40565b005b61031b600480360381019061031691906113a1565b610d2d565b005b610325610daf565b6040516103329190611414565b60405180910390f35b610343610dd4565b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a5f9054906101000a900460ff1681565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103c5610e52565b5f60025f6103d1610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f81602001511161047a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047190611522565b60405180910390fd5b4262093a80825f015161048d919061156d565b106104cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c4906115ea565b60405180910390fd5b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac3383602001516040518363ffffffff1660e01b815260040161052d929190611608565b5f604051808303815f87803b158015610544575f80fd5b505af1158015610556573d5f803e3d5ffd5b5050505060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61059f610ea1565b83602001516040518363ffffffff1660e01b81526004016105c1929190611608565b6020604051808303815f875af11580156105dd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106019190611659565b5061061661060d610ea1565b825f6001610ea8565b5061061f61110e565b565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610661610ea1565b73ffffffffffffffffffffffffffffffffffffffff16146106b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ae906116ce565b60405180910390fd5b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610712919061143c565b602060405180830381865afa15801561072d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107519190611700565b90505f82148061076057505f81145b1561076b57506107c0565b5f81670de0b6b3a764000084610781919061172b565b61078b9190611799565b90508060065f82825461079e919061156d565b925050819055508260085f8282546107b6919061156d565b9250508190555050505b50565b6107cb610e52565b5f60025f6107d7610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f82015481526020016001820154815260200160028201548152505090505f816020015111610880576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087790611522565b60405180910390fd5b61089761088b610ea1565b8283602001515f610ea8565b506108a061110e565b565b5f8060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f8201548152602001600182015481526020016002820154815250509050670de0b6b3a7640000816040015160065461092691906117c9565b8260200151610935919061172b565b61093f9190611799565b915050919050565b61094f610dd4565b6109585f611117565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b60065481565b610993610dd4565b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a05610e52565b5f8111610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90611846565b60405180910390fd5b5f60025f610a53610ea1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060600160405290815f820154815260200160018201548152602001600282015481525050905060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610afb610ea1565b30856040518463ffffffff1660e01b8152600401610b1b93929190611864565b6020604051808303815f875af1158015610b37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b5b9190611659565b5060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933846040518363ffffffff1660e01b8152600401610bb8929190611608565b5f604051808303815f87803b158015610bcf575f80fd5b505af1158015610be1573d5f803e3d5ffd5b50505050610c08610bf0610ea1565b82848460200151610c01919061156d565b6001610ea8565b50610c1161110e565b50565b6002602052805f5260405f205f91509050805f0154908060010154908060020154905083565b60095481565b600a5f9054906101000a900460ff1615610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c86906118e3565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a5f6101000a81548160ff0219169083151502179055505050565b610d35610dd4565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9a90611971565b60405180910390fd5b610dac81611117565b50565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ddc610ea1565b73ffffffffffffffffffffffffffffffffffffffff16610dfa6109d6565b73ffffffffffffffffffffffffffffffffffffffff1614610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e47906119d9565b60405180910390fd5b565b600260015403610e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8e90611a41565b60405180910390fd5b6002600181905550565b5f33905090565b5f80846020015114610eeb57670de0b6b3a76400008460400151600654610ecf91906117c9565b8560200151610ede919061172b565b610ee89190611799565b90505b5f8303610f4b5760025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8082015f9055600182015f9055600282015f9055505061104d565b8115610fcf57604051806060016040528042815260200184815260200160065481525060025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015590505061104c565b6040518060600160405280855f0151815260200184815260200160065481525060025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f015560208201518160010155604082015181600201559050505b5b5f8111156111075760045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86836040518363ffffffff1660e01b81526004016110b1929190611608565b6020604051808303815f875af11580156110cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110f19190611659565b5080600954611100919061156d565b6009819055505b5050505050565b60018081905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611205826111dc565b9050919050565b5f611216826111fb565b9050919050565b6112268161120c565b8114611230575f80fd5b50565b5f813590506112418161121d565b92915050565b5f6020828403121561125c5761125b6111d8565b5b5f61126984828501611233565b91505092915050565b5f8115159050919050565b61128681611272565b82525050565b5f60208201905061129f5f83018461127d565b92915050565b5f819050919050565b5f6112c86112c36112be846111dc565b6112a5565b6111dc565b9050919050565b5f6112d9826112ae565b9050919050565b5f6112ea826112cf565b9050919050565b6112fa816112e0565b82525050565b5f6020820190506113135f8301846112f1565b92915050565b5f819050919050565b61132b81611319565b8114611335575f80fd5b50565b5f8135905061134681611322565b92915050565b5f60208284031215611361576113606111d8565b5b5f61136e84828501611338565b91505092915050565b611380816111fb565b811461138a575f80fd5b50565b5f8135905061139b81611377565b92915050565b5f602082840312156113b6576113b56111d8565b5b5f6113c38482850161138d565b91505092915050565b6113d581611319565b82525050565b5f6020820190506113ee5f8301846113cc565b92915050565b5f6113fe826112cf565b9050919050565b61140e816113f4565b82525050565b5f6020820190506114275f830184611405565b92915050565b611436816111fb565b82525050565b5f60208201905061144f5f83018461142d565b92915050565b5f6060820190506114685f8301866113cc565b61147560208301856113cc565b61148260408301846113cc565b949350505050565b5f80604083850312156114a05761149f6111d8565b5b5f6114ad8582860161138d565b92505060206114be8582860161138d565b9150509250929050565b5f82825260208201905092915050565b7f4e6f20696e697469616c206465706f73697400000000000000000000000000005f82015250565b5f61150c6012836114c8565b9150611517826114d8565b602082019050919050565b5f6020820190508181035f83015261153981611500565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61157782611319565b915061158283611319565b925082820190508082111561159a57611599611540565b5b92915050565b7f7769746864726177206166746572206f6e65207765656b0000000000000000005f82015250565b5f6115d46017836114c8565b91506115df826115a0565b602082019050919050565b5f6020820190508181035f830152611601816115c8565b9050919050565b5f60408201905061161b5f83018561142d565b61162860208301846113cc565b9392505050565b61163881611272565b8114611642575f80fd5b50565b5f815190506116538161162f565b92915050565b5f6020828403121561166e5761166d6111d8565b5b5f61167b84828501611645565b91505092915050565b7f6f6e6c792061636365707420746f6b656e20636f6e74726163740000000000005f82015250565b5f6116b8601a836114c8565b91506116c382611684565b602082019050919050565b5f6020820190508181035f8301526116e5816116ac565b9050919050565b5f815190506116fa81611322565b92915050565b5f60208284031215611715576117146111d8565b5b5f611722848285016116ec565b91505092915050565b5f61173582611319565b915061174083611319565b925082820261174e81611319565b9150828204841483151761176557611764611540565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6117a382611319565b91506117ae83611319565b9250826117be576117bd61176c565b5b828204905092915050565b5f6117d382611319565b91506117de83611319565b92508282039050818111156117f6576117f5611540565b5b92915050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f5f82015250565b5f6118306020836114c8565b915061183b826117fc565b602082019050919050565b5f6020820190508181035f83015261185d81611824565b9050919050565b5f6060820190506118775f83018661142d565b611884602083018561142d565b61189160408301846113cc565b949350505050565b7f616c7265616c7920696e697469616c697a6564000000000000000000000000005f82015250565b5f6118cd6013836114c8565b91506118d882611899565b602082019050919050565b5f6020820190508181035f8301526118fa816118c1565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61195b6026836114c8565b915061196682611901565b604082019050919050565b5f6020820190508181035f8301526119888161194f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6119c36020836114c8565b91506119ce8261198f565b602082019050919050565b5f6020820190508181035f8301526119f0816119b7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f611a2b601f836114c8565b9150611a36826119f7565b602082019050919050565b5f6020820190508181035f830152611a5881611a1f565b905091905056fea26469706673582212205855479e9921445ccdf9af1f40cdd07cd567d3e9dd740db904a758aaba54295f64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004eda2f35cc2fbc6514246b3575796e7e171ba093
-----Decoded View---------------
Arg [0] : _stlp (address): 0x4Eda2F35CC2fBc6514246B3575796e7E171bA093
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004eda2f35cc2fbc6514246b3575796e7e171ba093
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.