More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,449 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 18787122 | 252 days ago | IN | 0 ETH | 0.00500501 | ||||
Exit | 18617965 | 275 days ago | IN | 0 ETH | 0.00327866 | ||||
Exit | 16600730 | 559 days ago | IN | 0 ETH | 0.00304932 | ||||
Exit | 15575256 | 702 days ago | IN | 0 ETH | 0.00132524 | ||||
Exit | 15433854 | 724 days ago | IN | 0 ETH | 0.00071828 | ||||
Exit | 15293890 | 746 days ago | IN | 0 ETH | 0.00016852 | ||||
Exit | 15293889 | 746 days ago | IN | 0 ETH | 0.00034611 | ||||
Get Reward | 14793952 | 828 days ago | IN | 0 ETH | 0.00129227 | ||||
Exit | 14391441 | 891 days ago | IN | 0 ETH | 0.00614677 | ||||
Exit | 14389940 | 891 days ago | IN | 0 ETH | 0.00180145 | ||||
Exit | 14367134 | 895 days ago | IN | 0 ETH | 0.00463175 | ||||
Exit | 14337108 | 900 days ago | IN | 0 ETH | 0.0046164 | ||||
Exit | 14332966 | 900 days ago | IN | 0 ETH | 0.00290705 | ||||
Exit | 14249319 | 913 days ago | IN | 0 ETH | 0.00418334 | ||||
Get Reward | 14249316 | 913 days ago | IN | 0 ETH | 0.00410588 | ||||
Exit | 14223212 | 917 days ago | IN | 0 ETH | 0.00437944 | ||||
Exit | 14221663 | 917 days ago | IN | 0 ETH | 0.00707915 | ||||
Exit | 14185973 | 923 days ago | IN | 0 ETH | 0.00840919 | ||||
Get Reward | 14166882 | 926 days ago | IN | 0 ETH | 0.00653917 | ||||
Exit | 14158449 | 927 days ago | IN | 0 ETH | 0.00703365 | ||||
Exit | 14148655 | 929 days ago | IN | 0 ETH | 0.00829173 | ||||
Exit | 14147662 | 929 days ago | IN | 0 ETH | 0.0135475 | ||||
Exit | 14147372 | 929 days ago | IN | 0 ETH | 0.01081295 | ||||
Exit | 14134128 | 931 days ago | IN | 0 ETH | 0.07279192 | ||||
Exit | 14114705 | 934 days ago | IN | 0 ETH | 0.01411798 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PathLPStaking
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; pragma solidity 0.8.4; contract PathLPStaking is Ownable{ IERC20 public stakingToken; IERC20 public rewardToken; uint public rewardRate = 0; uint public rewardsDuration = 365 days; uint public startRewardsTime; uint public lastUpdateTime; uint public lastRewardTimestamp; uint public rewardPerTokenStored; // total staked uint private stakedSupply = 0; uint private claimedRewards = 0; mapping(address => uint) public userRewardPerTokenPaid; mapping(address => uint) public rewards; mapping(address => uint) private _balances; event Staked(address indexed user, uint amountStaked); event Withdrawn(address indexed user, uint amountWithdrawn); event RewardsClaimed(address indexed user, uint rewardsClaimed); event RewardAmountSet(uint rewardRate, uint duration); event Recovered(address tokenAddress, uint tokenAmount); constructor(address _stakingTokenAddress, address _rewardTokenAddress, uint _startRewards) { stakingToken = IERC20(_stakingTokenAddress); rewardToken = IERC20(_rewardTokenAddress); startRewardsTime = _startRewards; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = rewardTimestamp(); if (account != address(0)){ rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } //function to check if staking rewards have ended function rewardTimestamp() internal view returns (uint) { if (block.timestamp < lastRewardTimestamp) { return block.timestamp; } else { return lastRewardTimestamp; } } //function to check if staking rewards have started function startTimestamp() internal view returns (uint) { if (startRewardsTime > lastUpdateTime) { return startRewardsTime; } else { return lastUpdateTime; } } function balanceOf(address account) external view returns (uint) { return _balances[account]; } function totalStaked() public view returns (uint) { return stakedSupply; } function totalClaimed() public view returns (uint) { return claimedRewards; } function rewardPerToken() public view returns (uint) { if (stakedSupply == 0 || block.timestamp < startRewardsTime) { return 0; } return rewardPerTokenStored + ( (rewardRate * (rewardTimestamp()- startTimestamp()) * 1e18 / stakedSupply) ); } function earned(address account) public view returns (uint) { return ( _balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account]) / 1e18 ) + rewards[account]; } function stake(uint _amount) external updateReward(msg.sender) { require(_amount > 0, "Must stake > 0 tokens"); stakedSupply += _amount; _balances[msg.sender] += _amount; require(stakingToken.transferFrom(msg.sender, address(this), _amount), "Token transfer failed"); emit Staked(msg.sender, _amount); } function withdraw(uint _amount) public updateReward(msg.sender) { require(_amount > 0, "Must withdraw > 0 tokens"); stakedSupply -= _amount; _balances[msg.sender] -= _amount; require(stakingToken.transfer(msg.sender, _amount), "Token transfer failed"); emit Withdrawn(msg.sender, _amount); } function getReward() public updateReward(msg.sender) { uint reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; claimedRewards += reward; require(rewardToken.transfer(msg.sender, reward), "Token transfer failed"); emit RewardsClaimed(msg.sender, reward); } } function exit() external { withdraw(_balances[msg.sender]); getReward(); } //owner only functions function setRewardAmount(uint reward, uint _rewardsDuration) onlyOwner external updateReward(address(0)) { rewardsDuration = _rewardsDuration; rewardRate = reward / rewardsDuration; uint balance = rewardToken.balanceOf(address(this)); require(rewardRate <= balance / rewardsDuration, "Contract does not have enough tokens for current reward rate"); lastUpdateTime = block.timestamp; if (block.timestamp < startRewardsTime) { lastRewardTimestamp = startRewardsTime + rewardsDuration; } else { lastRewardTimestamp = block.timestamp + rewardsDuration; } emit RewardAmountSet(rewardRate, _rewardsDuration); } // support recovering rewards function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token"); require(IERC20(tokenAddress).transfer(msg.sender, tokenAmount), "transfer failed"); emit Recovered(tokenAddress, tokenAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 (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": 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":"_stakingTokenAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"uint256","name":"_startRewards","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardsClaimed","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountStaked","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"name":"Withdrawn","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":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","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":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":"reward","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startRewardsTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"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"}]
Contract Creation Code
608060405260006003556301e1338060045560006009556000600a5534801561002757600080fd5b50604051611133380380611133833981016040819052610046916100f3565b61004f33610087565b600180546001600160a01b039485166001600160a01b031991821617909155600280549390941692169190911790915560055561012e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100ee57600080fd5b919050565b600080600060608486031215610107578283fd5b610110846100d7565b925061011e602085016100d7565b9150604084015190509250925092565b610ff68061013d6000396000f3fe608060405234801561001057600080fd5b50600436106101575760003560e01c80638980f11f116100c3578063d54ad2a11161007c578063d54ad2a1146102b9578063df136d65146102c1578063e9fad8ee146102ca578063f2fde38b146102d2578063f7c618c1146102e5578063f8077fae146102f857600080fd5b80638980f11f146102515780638b876347146102645780638da5cb5b14610284578063a694fc3a14610295578063c8f33c91146102a8578063cd3daf9d146102b157600080fd5b80635359b3ea116101155780635359b3ea146101d157806370a08231146101e4578063715018a61461020d57806372f702f3146102155780637b0a47ee14610240578063817b1cd21461024957600080fd5b80628cc2621461015c5780630700037d1461018257806323b80449146101a25780632e1a7d4d146101ab578063386a9525146101c05780633d18b912146101c9575b600080fd5b61016f61016a366004610e1d565b610301565b6040519081526020015b60405180910390f35b61016f610190366004610e1d565b600c6020526000908152604090205481565b61016f60055481565b6101be6101b9366004610e87565b61037e565b005b61016f60045481565b6101be610543565b6101be6101df366004610eb7565b6106b3565b61016f6101f2366004610e1d565b6001600160a01b03166000908152600d602052604090205490565b6101be6108c8565b600154610228906001600160a01b031681565b6040516001600160a01b039091168152602001610179565b61016f60035481565b60095461016f565b6101be61025f366004610e3e565b6108fe565b61016f610272366004610e1d565b600b6020526000908152604090205481565b6000546001600160a01b0316610228565b6101be6102a3366004610e87565b610a94565b61016f60065481565b61016f610c4a565b600a5461016f565b61016f60085481565b6101be610cc1565b6101be6102e0366004610e1d565b610ce2565b600254610228906001600160a01b031681565b61016f60075481565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054670de0b6b3a764000090610337610c4a565b6103419190610f93565b6001600160a01b0385166000908152600d60205260409020546103649190610f74565b61036e9190610f54565b6103789190610f3c565b92915050565b33610387610c4a565b600855610392610d7d565b6006556001600160a01b038116156103d9576103ad81610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b6000821161042e5760405162461bcd60e51b815260206004820152601860248201527f4d757374207769746864726177203e203020746f6b656e73000000000000000060448201526064015b60405180910390fd5b81600960008282546104409190610f93565b9091555050336000908152600d602052604081208054849290610464908490610f93565b909155505060015460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156104b557600080fd5b505af11580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed9190610e67565b6105095760405162461bcd60e51b815260040161042590610ed8565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b3361054c610c4a565b600855610557610d7d565b6006556001600160a01b0381161561059e5761057281610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b336000908152600c602052604090205480156106af57336000908152600c60205260408120819055600a80548392906105d8908490610f3c565b909155505060025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561062957600080fd5b505af115801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190610e67565b61067d5760405162461bcd60e51b815260040161042590610ed8565b60405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe90602001610537565b5050565b6000546001600160a01b031633146106dd5760405162461bcd60e51b815260040161042590610f07565b60006106e7610c4a565b6008556106f2610d7d565b6006556001600160a01b038116156107395761070d81610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b60048290556107488284610f54565b6003556002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561078f57600080fd5b505afa1580156107a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c79190610e9f565b9050600454816107d79190610f54565b600354111561084e5760405162461bcd60e51b815260206004820152603c60248201527f436f6e747261637420646f6573206e6f74206861766520656e6f75676820746f60448201527f6b656e7320666f722063757272656e74207265776172642072617465000000006064820152608401610425565b42600681905560055411156108755760045460055461086d9190610f3c565b600755610886565b6004546108829042610f3c565b6007555b60035460408051918252602082018590527f53ec5ac14ec827c0859f27c3d22f4ea8c29f6d64cbe2f92aeb55210ce6f89b35910160405180910390a150505050565b6000546001600160a01b031633146108f25760405162461bcd60e51b815260040161042590610f07565b6108fc6000610d95565b565b6000546001600160a01b031633146109285760405162461bcd60e51b815260040161042590610f07565b6001546001600160a01b03838116911614156109905760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b6064820152608401610425565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156109d857600080fd5b505af11580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190610e67565b610a4e5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610425565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b33610a9d610c4a565b600855610aa8610d7d565b6006556001600160a01b03811615610aef57610ac381610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b60008211610b375760405162461bcd60e51b81526020600482015260156024820152744d757374207374616b65203e203020746f6b656e7360581b6044820152606401610425565b8160096000828254610b499190610f3c565b9091555050336000908152600d602052604081208054849290610b6d908490610f3c565b90915550506001546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfc9190610e67565b610c185760405162461bcd60e51b815260040161042590610ed8565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610537565b600060095460001480610c5e575060055442105b15610c695750600090565b600954610c74610de5565b610c7c610d7d565b610c869190610f93565b600354610c939190610f74565b610ca590670de0b6b3a7640000610f74565b610caf9190610f54565b600854610cbc9190610f3c565b905090565b336000908152600d6020526040902054610cda9061037e565b6108fc610543565b6000546001600160a01b03163314610d0c5760405162461bcd60e51b815260040161042590610f07565b6001600160a01b038116610d715760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610425565b610d7a81610d95565b50565b6000600754421015610d8e57504290565b5060075490565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006006546005541115610dfa575060055490565b5060065490565b80356001600160a01b0381168114610e1857600080fd5b919050565b600060208284031215610e2e578081fd5b610e3782610e01565b9392505050565b60008060408385031215610e50578081fd5b610e5983610e01565b946020939093013593505050565b600060208284031215610e78578081fd5b81518015158114610e37578182fd5b600060208284031215610e98578081fd5b5035919050565b600060208284031215610eb0578081fd5b5051919050565b60008060408385031215610ec9578182fd5b50508035926020909101359150565b602080825260159082015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610f4f57610f4f610faa565b500190565b600082610f6f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610f8e57610f8e610faa565b500290565b600082821015610fa557610fa5610faa565b500390565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204cba5252908e0315fbc929230a291b1691d8c9de38cf0c6d07c269381948c31f64736f6c6343000804003300000000000000000000000087051936dc0669460951d612fbbe93df889422290000000000000000000000002a2550e0a75acec6d811ae3930732f7f3ad675880000000000000000000000000000000000000000000000000000000061c59a20
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101575760003560e01c80638980f11f116100c3578063d54ad2a11161007c578063d54ad2a1146102b9578063df136d65146102c1578063e9fad8ee146102ca578063f2fde38b146102d2578063f7c618c1146102e5578063f8077fae146102f857600080fd5b80638980f11f146102515780638b876347146102645780638da5cb5b14610284578063a694fc3a14610295578063c8f33c91146102a8578063cd3daf9d146102b157600080fd5b80635359b3ea116101155780635359b3ea146101d157806370a08231146101e4578063715018a61461020d57806372f702f3146102155780637b0a47ee14610240578063817b1cd21461024957600080fd5b80628cc2621461015c5780630700037d1461018257806323b80449146101a25780632e1a7d4d146101ab578063386a9525146101c05780633d18b912146101c9575b600080fd5b61016f61016a366004610e1d565b610301565b6040519081526020015b60405180910390f35b61016f610190366004610e1d565b600c6020526000908152604090205481565b61016f60055481565b6101be6101b9366004610e87565b61037e565b005b61016f60045481565b6101be610543565b6101be6101df366004610eb7565b6106b3565b61016f6101f2366004610e1d565b6001600160a01b03166000908152600d602052604090205490565b6101be6108c8565b600154610228906001600160a01b031681565b6040516001600160a01b039091168152602001610179565b61016f60035481565b60095461016f565b6101be61025f366004610e3e565b6108fe565b61016f610272366004610e1d565b600b6020526000908152604090205481565b6000546001600160a01b0316610228565b6101be6102a3366004610e87565b610a94565b61016f60065481565b61016f610c4a565b600a5461016f565b61016f60085481565b6101be610cc1565b6101be6102e0366004610e1d565b610ce2565b600254610228906001600160a01b031681565b61016f60075481565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054670de0b6b3a764000090610337610c4a565b6103419190610f93565b6001600160a01b0385166000908152600d60205260409020546103649190610f74565b61036e9190610f54565b6103789190610f3c565b92915050565b33610387610c4a565b600855610392610d7d565b6006556001600160a01b038116156103d9576103ad81610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b6000821161042e5760405162461bcd60e51b815260206004820152601860248201527f4d757374207769746864726177203e203020746f6b656e73000000000000000060448201526064015b60405180910390fd5b81600960008282546104409190610f93565b9091555050336000908152600d602052604081208054849290610464908490610f93565b909155505060015460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b1580156104b557600080fd5b505af11580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed9190610e67565b6105095760405162461bcd60e51b815260040161042590610ed8565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b3361054c610c4a565b600855610557610d7d565b6006556001600160a01b0381161561059e5761057281610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b336000908152600c602052604090205480156106af57336000908152600c60205260408120819055600a80548392906105d8908490610f3c565b909155505060025460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561062957600080fd5b505af115801561063d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106619190610e67565b61067d5760405162461bcd60e51b815260040161042590610ed8565b60405181815233907ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe90602001610537565b5050565b6000546001600160a01b031633146106dd5760405162461bcd60e51b815260040161042590610f07565b60006106e7610c4a565b6008556106f2610d7d565b6006556001600160a01b038116156107395761070d81610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b60048290556107488284610f54565b6003556002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561078f57600080fd5b505afa1580156107a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c79190610e9f565b9050600454816107d79190610f54565b600354111561084e5760405162461bcd60e51b815260206004820152603c60248201527f436f6e747261637420646f6573206e6f74206861766520656e6f75676820746f60448201527f6b656e7320666f722063757272656e74207265776172642072617465000000006064820152608401610425565b42600681905560055411156108755760045460055461086d9190610f3c565b600755610886565b6004546108829042610f3c565b6007555b60035460408051918252602082018590527f53ec5ac14ec827c0859f27c3d22f4ea8c29f6d64cbe2f92aeb55210ce6f89b35910160405180910390a150505050565b6000546001600160a01b031633146108f25760405162461bcd60e51b815260040161042590610f07565b6108fc6000610d95565b565b6000546001600160a01b031633146109285760405162461bcd60e51b815260040161042590610f07565b6001546001600160a01b03838116911614156109905760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b6064820152608401610425565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b1580156109d857600080fd5b505af11580156109ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a109190610e67565b610a4e5760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610425565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b33610a9d610c4a565b600855610aa8610d7d565b6006556001600160a01b03811615610aef57610ac381610301565b6001600160a01b0382166000908152600c6020908152604080832093909355600854600b909152919020555b60008211610b375760405162461bcd60e51b81526020600482015260156024820152744d757374207374616b65203e203020746f6b656e7360581b6044820152606401610425565b8160096000828254610b499190610f3c565b9091555050336000908152600d602052604081208054849290610b6d908490610f3c565b90915550506001546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610bc457600080fd5b505af1158015610bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfc9190610e67565b610c185760405162461bcd60e51b815260040161042590610ed8565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610537565b600060095460001480610c5e575060055442105b15610c695750600090565b600954610c74610de5565b610c7c610d7d565b610c869190610f93565b600354610c939190610f74565b610ca590670de0b6b3a7640000610f74565b610caf9190610f54565b600854610cbc9190610f3c565b905090565b336000908152600d6020526040902054610cda9061037e565b6108fc610543565b6000546001600160a01b03163314610d0c5760405162461bcd60e51b815260040161042590610f07565b6001600160a01b038116610d715760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610425565b610d7a81610d95565b50565b6000600754421015610d8e57504290565b5060075490565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006006546005541115610dfa575060055490565b5060065490565b80356001600160a01b0381168114610e1857600080fd5b919050565b600060208284031215610e2e578081fd5b610e3782610e01565b9392505050565b60008060408385031215610e50578081fd5b610e5983610e01565b946020939093013593505050565b600060208284031215610e78578081fd5b81518015158114610e37578182fd5b600060208284031215610e98578081fd5b5035919050565b600060208284031215610eb0578081fd5b5051919050565b60008060408385031215610ec9578182fd5b50508035926020909101359150565b602080825260159082015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610f4f57610f4f610faa565b500190565b600082610f6f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610f8e57610f8e610faa565b500290565b600082821015610fa557610fa5610faa565b500390565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204cba5252908e0315fbc929230a291b1691d8c9de38cf0c6d07c269381948c31f64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000087051936dc0669460951d612fbbe93df889422290000000000000000000000002a2550e0a75acec6d811ae3930732f7f3ad675880000000000000000000000000000000000000000000000000000000061c59a20
-----Decoded View---------------
Arg [0] : _stakingTokenAddress (address): 0x87051936Dc0669460951d612fBbe93Df88942229
Arg [1] : _rewardTokenAddress (address): 0x2a2550e0A75aCec6D811AE3930732F7f3ad67588
Arg [2] : _startRewards (uint256): 1640340000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000087051936dc0669460951d612fbbe93df88942229
Arg [1] : 0000000000000000000000002a2550e0a75acec6d811ae3930732f7f3ad67588
Arg [2] : 0000000000000000000000000000000000000000000000000000000061c59a20
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.