More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 371 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Reward | 19165577 | 172 days ago | IN | 0 ETH | 0.00149601 | ||||
Withdraw | 19145817 | 175 days ago | IN | 0 ETH | 0.00177779 | ||||
Transfer Token O... | 19139342 | 176 days ago | IN | 0 ETH | 0.00086317 | ||||
Transfer Ownersh... | 19139340 | 176 days ago | IN | 0 ETH | 0.00061255 | ||||
Withdraw | 19048076 | 189 days ago | IN | 0 ETH | 0.0012028 | ||||
Get Reward | 19048073 | 189 days ago | IN | 0 ETH | 0.00318702 | ||||
Get Reward | 19041692 | 190 days ago | IN | 0 ETH | 0.00317244 | ||||
Withdraw | 19024844 | 192 days ago | IN | 0 ETH | 0.00257735 | ||||
Get Reward | 19024839 | 192 days ago | IN | 0 ETH | 0.00309807 | ||||
Get Reward | 18975618 | 199 days ago | IN | 0 ETH | 0.00253028 | ||||
Withdraw | 18975614 | 199 days ago | IN | 0 ETH | 0.00765079 | ||||
Get Reward | 18970960 | 200 days ago | IN | 0 ETH | 0.00215287 | ||||
Withdraw | 18970958 | 200 days ago | IN | 0 ETH | 0.00569089 | ||||
Withdraw | 18945081 | 203 days ago | IN | 0 ETH | 0.0009828 | ||||
Get Reward | 18917490 | 207 days ago | IN | 0 ETH | 0.00131431 | ||||
Get Reward | 18916693 | 207 days ago | IN | 0 ETH | 0.0010479 | ||||
Withdraw | 18916691 | 207 days ago | IN | 0 ETH | 0.00163518 | ||||
Get Reward | 18915620 | 207 days ago | IN | 0 ETH | 0.00099605 | ||||
Get Reward | 18915162 | 207 days ago | IN | 0 ETH | 0.00156671 | ||||
Withdraw | 18915159 | 207 days ago | IN | 0 ETH | 0.00185471 | ||||
Withdraw | 18905018 | 209 days ago | IN | 0 ETH | 0.00098941 | ||||
Withdraw | 18904187 | 209 days ago | IN | 0 ETH | 0.00113349 | ||||
Get Reward | 18904183 | 209 days ago | IN | 0 ETH | 0.00116763 | ||||
Get Reward | 18901389 | 209 days ago | IN | 0 ETH | 0.00157397 | ||||
Get Reward | 18893308 | 210 days ago | IN | 0 ETH | 0.00168112 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingRewards
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; interface IERC20Ownable { /** * @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); /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) external; } contract StakingRewards is Ownable, ReentrancyGuard { /* ========== STATE VARIABLES ========== */ IERC20Ownable public token; uint256 public periodFinish; uint256 public rewardRate; uint256 public rewardsDuration; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; uint256 private _totalSupply; mapping(address => uint256) private _balances; constructor(address _token) { token = IERC20Ownable(_token); } /* ========== VIEWS ========== */ function totalSupply() external view returns (uint256) { return _totalSupply; } function balanceOf(address account) external view returns (uint256) { return _balances[account]; } function lastTimeRewardApplicable() public view returns (uint256) { return block.timestamp < periodFinish ? block.timestamp : periodFinish; } function rewardPerToken() public view returns (uint256) { if (_totalSupply == 0) { return rewardPerTokenStored; } return rewardPerTokenStored + (rewardRate * (lastTimeRewardApplicable() - lastUpdateTime) * 1e18) / _totalSupply; } function earned(address account) public view returns (uint256) { return ((_balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account])) / 1e18) + rewards[account]; } function getRewardForDuration() external view returns (uint256) { return rewardRate * rewardsDuration; } function stake(uint256 amount) external nonReentrant updateReward(msg.sender) { require(block.timestamp <= periodFinish, 'Staking period over'); require(amount > 0, 'Cannot stake 0'); _totalSupply += amount; _balances[msg.sender] += amount; token.transferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) { require(amount > 0, 'Cannot withdraw 0'); _totalSupply -= amount; _balances[msg.sender] -= amount; token.transfer(msg.sender, amount); } function getReward() public nonReentrant updateReward(msg.sender) returns (uint256) { require(block.timestamp > periodFinish, 'User can only claim rewards at the end of staking'); uint256 reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; token.transfer(msg.sender, reward); } return reward; } function withdrawStuckTokens(address _token, address _to) external onlyOwner { require(_token != address(0), '_token address cannot be 0'); uint256 _contractBalance = IERC20Ownable(_token).balanceOf(address(this)); IERC20Ownable(_token).transfer(_to, _contractBalance); } /* ========== RESTRICTED FUNCTIONS ========== */ function notifyRewardDetails(uint256 reward, uint256 _rewardsDuration) external onlyOwner updateReward(address(0)) { if (block.timestamp >= periodFinish) { rewardRate = reward / _rewardsDuration; } else { uint256 remaining = periodFinish - block.timestamp; uint256 leftover = remaining * rewardRate; rewardRate = (reward + leftover) / _rewardsDuration; } // Ensure the provided reward amount is not more than the balance in the contract. // This keeps the reward rate in the right range, preventing overflows due to // very high values of rewardRate in the earned and rewardsPerToken functions; // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow. uint256 balance = token.balanceOf(address(this)); require(rewardRate <= balance / _rewardsDuration, 'Provided reward too high'); lastUpdateTime = block.timestamp; periodFinish = block.timestamp + _rewardsDuration; rewardsDuration = _rewardsDuration; emit RewardDetailsAdded(reward, _rewardsDuration); } function transferTokenOwnership(address newOwner) external onlyOwner { token.transferOwnership(newOwner); } /* ========== MODIFIERS ========== */ modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } /* ========== EVENTS ========== */ event RewardDetailsAdded(uint256 reward, uint256 rewardsDuration); event Staked(address indexed user, uint256 amount); event Exited(address indexed user, uint256 stakedAmount, uint256 rewardAmount); }
// 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 (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 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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"Exited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsDuration","type":"uint256"}],"name":"RewardDetailsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","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":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"notifyRewardDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","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":[],"name":"rewardsDuration","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":"token","outputs":[{"internalType":"contract IERC20Ownable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferTokenOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161113138038061113183398101604081905261002f916100b1565b61003833610061565b60018055600280546001600160a01b0319166001600160a01b03929092169190911790556100e1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c357600080fd5b81516001600160a01b03811681146100da57600080fd5b9392505050565b611041806100f06000396000f3fe608060405234801561001057600080fd5b506004361061018c5760003560e01c80637b0a47ee116100e3578063cd3daf9d1161008c578063ebe2b12b11610066578063ebe2b12b146102fa578063f2fde38b14610303578063fc0c546a1461031657600080fd5b8063cd3daf9d146102d6578063df136d65146102de578063e4c76cdd146102e757600080fd5b80638da5cb5b116100bd5780638da5cb5b14610295578063a694fc3a146102ba578063c8f33c91146102cd57600080fd5b80637b0a47ee1461026457806380faa57d1461026d5780638b8763471461027557600080fd5b806325b86edf116101455780633d18b9121161011f5780633d18b9121461022b57806370a0823114610233578063715018a61461025c57600080fd5b806325b86edf146101fc5780632e1a7d4d1461020f578063386a95251461022257600080fd5b806318160ddd1161017657806318160ddd146101d75780631c1f78eb146101df57806321e6b53d146101e757600080fd5b80628cc262146101915780630700037d146101b7575b600080fd5b6101a461019f366004610ecb565b610329565b6040519081526020015b60405180910390f35b6101a46101c5366004610ecb565b60096020526000908152604090205481565b600a546101a4565b6101a46103a6565b6101fa6101f5366004610ecb565b6103bd565b005b6101fa61020a366004610eed565b610440565b6101fa61021d366004610f20565b61058b565b6101a460055481565b6101a46106fc565b6101a4610241366004610ecb565b6001600160a01b03166000908152600b602052604090205490565b6101fa610887565b6101a460045481565b6101a461089b565b6101a4610283366004610ecb565b60086020526000908152604090205481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101ae565b6101fa6102c8366004610f20565b6108b2565b6101a460065481565b6101a4610ac6565b6101a460075481565b6101fa6102f5366004610f39565b610b27565b6101a460035481565b6101fa610311366004610ecb565b610d07565b6002546102a2906001600160a01b031681565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a76400009061035f610ac6565b6103699190610f71565b6001600160a01b0385166000908152600b602052604090205461038c9190610f84565b6103969190610f9b565b6103a09190610fbd565b92915050565b60006005546004546103b89190610f84565b905090565b6103c5610d94565b6002546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b15801561042557600080fd5b505af1158015610439573d6000803e3d6000fd5b5050505050565b610448610d94565b6001600160a01b0382166104a35760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f74206265203000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156104ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050e9190610fd0565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610fe9565b50505050565b610593610dee565b3361059c610ac6565b6007556105a761089b565b6006556001600160a01b038116156105ee576105c281610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6000821161063e5760405162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015260640161049a565b81600a60008282546106509190610f71565b9091555050336000908152600b602052604081208054849290610674908490610f71565b909155505060025460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156106ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ee9190610fe9565b50506106f960018055565b50565b6000610706610dee565b3361070f610ac6565b60075561071a61089b565b6006556001600160a01b038116156107615761073581610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60035442116107d85760405162461bcd60e51b815260206004820152603160248201527f557365722063616e206f6e6c7920636c61696d2072657761726473206174207460448201527f686520656e64206f66207374616b696e67000000000000000000000000000000606482015260840161049a565b336000908152600960205260409020548015610878573360008181526009602052604080822091909155600254905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610852573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108769190610fe9565b505b91505061088460018055565b90565b61088f610d94565b6108996000610e47565b565b600060035442106108ad575060035490565b504290565b6108ba610dee565b336108c3610ac6565b6007556108ce61089b565b6006556001600160a01b03811615610915576108e981610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6003544211156109675760405162461bcd60e51b815260206004820152601360248201527f5374616b696e6720706572696f64206f76657200000000000000000000000000604482015260640161049a565b600082116109b75760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015260640161049a565b81600a60008282546109c99190610fbd565b9091555050336000908152600b6020526040812080548492906109ed908490610fbd565b90915550506002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a869190610fe9565b5060405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a2506106f960018055565b6000600a54600003610ad9575060075490565b600a54600654610ae761089b565b610af19190610f71565b600454610afe9190610f84565b610b1090670de0b6b3a7640000610f84565b610b1a9190610f9b565b6007546103b89190610fbd565b610b2f610d94565b6000610b39610ac6565b600755610b4461089b565b6006556001600160a01b03811615610b8b57610b5f81610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6003544210610ba657610b9e8284610f9b565b600455610be5565b600042600354610bb69190610f71565b9050600060045482610bc89190610f84565b905083610bd58287610fbd565b610bdf9190610f9b565b60045550505b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190610fd0565b9050610c5e8382610f9b565b6004541115610caf5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015260640161049a565b426006819055610cc0908490610fbd565b600355600583905560408051858152602081018590527f5dd670e5d185a162a47d73f9c37d7bbda1c2e394edb3a9d5407e43e4b7f4ce57910160405180910390a150505050565b610d0f610d94565b6001600160a01b038116610d8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161049a565b6106f981610e47565b6000546001600160a01b031633146108995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049a565b600260015403610e405760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161049a565b6002600155565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610ec657600080fd5b919050565b600060208284031215610edd57600080fd5b610ee682610eaf565b9392505050565b60008060408385031215610f0057600080fd5b610f0983610eaf565b9150610f1760208401610eaf565b90509250929050565b600060208284031215610f3257600080fd5b5035919050565b60008060408385031215610f4c57600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a0576103a0610f5b565b80820281158282048414176103a0576103a0610f5b565b600082610fb857634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103a0576103a0610f5b565b600060208284031215610fe257600080fd5b5051919050565b600060208284031215610ffb57600080fd5b81518015158114610ee657600080fdfea26469706673582212205b675619e12a4397547a2e495084fad36e683338b3fd9c58b93959e61fc318f764736f6c63430008130033000000000000000000000000443f9ff91a72f1482d13dfd40eec107bb84ca1e5
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018c5760003560e01c80637b0a47ee116100e3578063cd3daf9d1161008c578063ebe2b12b11610066578063ebe2b12b146102fa578063f2fde38b14610303578063fc0c546a1461031657600080fd5b8063cd3daf9d146102d6578063df136d65146102de578063e4c76cdd146102e757600080fd5b80638da5cb5b116100bd5780638da5cb5b14610295578063a694fc3a146102ba578063c8f33c91146102cd57600080fd5b80637b0a47ee1461026457806380faa57d1461026d5780638b8763471461027557600080fd5b806325b86edf116101455780633d18b9121161011f5780633d18b9121461022b57806370a0823114610233578063715018a61461025c57600080fd5b806325b86edf146101fc5780632e1a7d4d1461020f578063386a95251461022257600080fd5b806318160ddd1161017657806318160ddd146101d75780631c1f78eb146101df57806321e6b53d146101e757600080fd5b80628cc262146101915780630700037d146101b7575b600080fd5b6101a461019f366004610ecb565b610329565b6040519081526020015b60405180910390f35b6101a46101c5366004610ecb565b60096020526000908152604090205481565b600a546101a4565b6101a46103a6565b6101fa6101f5366004610ecb565b6103bd565b005b6101fa61020a366004610eed565b610440565b6101fa61021d366004610f20565b61058b565b6101a460055481565b6101a46106fc565b6101a4610241366004610ecb565b6001600160a01b03166000908152600b602052604090205490565b6101fa610887565b6101a460045481565b6101a461089b565b6101a4610283366004610ecb565b60086020526000908152604090205481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101ae565b6101fa6102c8366004610f20565b6108b2565b6101a460065481565b6101a4610ac6565b6101a460075481565b6101fa6102f5366004610f39565b610b27565b6101a460035481565b6101fa610311366004610ecb565b610d07565b6002546102a2906001600160a01b031681565b6001600160a01b0381166000908152600960209081526040808320546008909252822054670de0b6b3a76400009061035f610ac6565b6103699190610f71565b6001600160a01b0385166000908152600b602052604090205461038c9190610f84565b6103969190610f9b565b6103a09190610fbd565b92915050565b60006005546004546103b89190610f84565b905090565b6103c5610d94565b6002546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063f2fde38b90602401600060405180830381600087803b15801561042557600080fd5b505af1158015610439573d6000803e3d6000fd5b5050505050565b610448610d94565b6001600160a01b0382166104a35760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f74206265203000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156104ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050e9190610fd0565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610fe9565b50505050565b610593610dee565b3361059c610ac6565b6007556105a761089b565b6006556001600160a01b038116156105ee576105c281610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6000821161063e5760405162461bcd60e51b815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015260640161049a565b81600a60008282546106509190610f71565b9091555050336000908152600b602052604081208054849290610674908490610f71565b909155505060025460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156106ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ee9190610fe9565b50506106f960018055565b50565b6000610706610dee565b3361070f610ac6565b60075561071a61089b565b6006556001600160a01b038116156107615761073581610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60035442116107d85760405162461bcd60e51b815260206004820152603160248201527f557365722063616e206f6e6c7920636c61696d2072657761726473206174207460448201527f686520656e64206f66207374616b696e67000000000000000000000000000000606482015260840161049a565b336000908152600960205260409020548015610878573360008181526009602052604080822091909155600254905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015610852573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108769190610fe9565b505b91505061088460018055565b90565b61088f610d94565b6108996000610e47565b565b600060035442106108ad575060035490565b504290565b6108ba610dee565b336108c3610ac6565b6007556108ce61089b565b6006556001600160a01b03811615610915576108e981610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6003544211156109675760405162461bcd60e51b815260206004820152601360248201527f5374616b696e6720706572696f64206f76657200000000000000000000000000604482015260640161049a565b600082116109b75760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015260640161049a565b81600a60008282546109c99190610fbd565b9091555050336000908152600b6020526040812080548492906109ed908490610fbd565b90915550506002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a869190610fe9565b5060405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a2506106f960018055565b6000600a54600003610ad9575060075490565b600a54600654610ae761089b565b610af19190610f71565b600454610afe9190610f84565b610b1090670de0b6b3a7640000610f84565b610b1a9190610f9b565b6007546103b89190610fbd565b610b2f610d94565b6000610b39610ac6565b600755610b4461089b565b6006556001600160a01b03811615610b8b57610b5f81610329565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6003544210610ba657610b9e8284610f9b565b600455610be5565b600042600354610bb69190610f71565b9050600060045482610bc89190610f84565b905083610bd58287610fbd565b610bdf9190610f9b565b60045550505b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190610fd0565b9050610c5e8382610f9b565b6004541115610caf5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015260640161049a565b426006819055610cc0908490610fbd565b600355600583905560408051858152602081018590527f5dd670e5d185a162a47d73f9c37d7bbda1c2e394edb3a9d5407e43e4b7f4ce57910160405180910390a150505050565b610d0f610d94565b6001600160a01b038116610d8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161049a565b6106f981610e47565b6000546001600160a01b031633146108995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049a565b600260015403610e405760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161049a565b6002600155565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610ec657600080fd5b919050565b600060208284031215610edd57600080fd5b610ee682610eaf565b9392505050565b60008060408385031215610f0057600080fd5b610f0983610eaf565b9150610f1760208401610eaf565b90509250929050565b600060208284031215610f3257600080fd5b5035919050565b60008060408385031215610f4c57600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b818103818111156103a0576103a0610f5b565b80820281158282048414176103a0576103a0610f5b565b600082610fb857634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103a0576103a0610f5b565b600060208284031215610fe257600080fd5b5051919050565b600060208284031215610ffb57600080fd5b81518015158114610ee657600080fdfea26469706673582212205b675619e12a4397547a2e495084fad36e683338b3fd9c58b93959e61fc318f764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000443f9ff91a72f1482d13dfd40eec107bb84ca1e5
-----Decoded View---------------
Arg [0] : _token (address): 0x443f9FF91a72F1482d13dFd40EEc107bB84CA1E5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000443f9ff91a72f1482d13dfd40eec107bb84ca1e5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.