More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,048 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 20398895 | 10 hrs ago | IN | 0 ETH | 0.0005476 | ||||
Deposit | 20397139 | 16 hrs ago | IN | 0 ETH | 0.00059218 | ||||
Withdraw | 20397040 | 16 hrs ago | IN | 0 ETH | 0.00037256 | ||||
Deposit | 20396896 | 17 hrs ago | IN | 0 ETH | 0.00039337 | ||||
Deposit | 20396892 | 17 hrs ago | IN | 0 ETH | 0.00032447 | ||||
Deposit | 20396235 | 19 hrs ago | IN | 0 ETH | 0.00037564 | ||||
Deposit | 20393075 | 30 hrs ago | IN | 0 ETH | 0.00043174 | ||||
Withdraw | 20391125 | 36 hrs ago | IN | 0 ETH | 0.00061904 | ||||
Deposit | 20390273 | 39 hrs ago | IN | 0 ETH | 0.00043755 | ||||
Deposit | 20390225 | 39 hrs ago | IN | 0 ETH | 0.0003427 | ||||
Deposit | 20389431 | 42 hrs ago | IN | 0 ETH | 0.0004299 | ||||
Deposit | 20386853 | 2 days ago | IN | 0 ETH | 0.00022416 | ||||
Deposit | 20386850 | 2 days ago | IN | 0 ETH | 0.0001845 | ||||
Deposit | 20386844 | 2 days ago | IN | 0 ETH | 0.00022791 | ||||
Deposit | 20386841 | 2 days ago | IN | 0 ETH | 0.00018156 | ||||
Deposit | 20386837 | 2 days ago | IN | 0 ETH | 0.0002145 | ||||
Deposit | 20386831 | 2 days ago | IN | 0 ETH | 0.00018756 | ||||
Deposit | 20385818 | 2 days ago | IN | 0 ETH | 0.00052154 | ||||
Deposit | 20385815 | 2 days ago | IN | 0 ETH | 0.00041461 | ||||
Deposit | 20385793 | 2 days ago | IN | 0 ETH | 0.00056656 | ||||
Deposit | 20385738 | 2 days ago | IN | 0 ETH | 0.00061911 | ||||
Deposit | 20384402 | 2 days ago | IN | 0 ETH | 0.00117095 | ||||
Deposit | 20382562 | 2 days ago | IN | 0 ETH | 0.00041182 | ||||
Deposit | 20380553 | 3 days ago | IN | 0 ETH | 0.00077226 | ||||
Withdraw | 20369679 | 4 days ago | IN | 0 ETH | 0.00069267 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
XProjectStaking
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-07 */ //SPDX-License-Identifier: MIT pragma solidity 0.8.23; //import "@nomiclabs/buidler/console.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor() {} function _msgSender() internal view returns (address payable) { return payable(msg.sender); } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), 'Ownable: new owner is the zero address'); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, 'SafeMath: addition overflow'); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, 'SafeMath: subtraction overflow'); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, 'SafeMath: multiplication overflow'); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, 'SafeMath: division by zero'); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, 'SafeMath: modulo by zero'); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } function min(uint256 x, uint256 y) internal pure returns (uint256 z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the ERC token owner. */ function getOwner() external view returns (address); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address _owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), 'SafeERC20: approve from non-zero to non-zero allowance' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, 'SafeERC20: decreased allowance below zero' ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, 'SafeERC20: low-level call failed'); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), 'SafeERC20: ERC20 operation did not succeed'); } } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, 'Address: insufficient balance'); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(''); require(success, 'Address: unable to send value, recipient may have reverted'); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, 'Address: low-level call failed'); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, 'Address: low-level call with value failed'); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, 'Address: insufficient balance for call'); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), 'Address: call to non-contract'); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: weiValue}(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } 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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } contract XProjectStaking is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 lastRewardTimestamp; // Last block number that Tokens distribution occurs. uint256 accTokensPerShare; // Accumulated Tokens per share, times 1e12. See below. } IERC20 public immutable stakingToken; IERC20 public immutable rewardToken; mapping (address => uint256) public holderUnlockTime; uint256 public totalStaked; uint256 public apr; uint256 public lockDuration; uint256 public exitPenaltyPerc; bool public canCompoundOrStakeMore; // Info of each pool. PoolInfo public poolInfo; // Info of each user that stakes LP tokens. mapping (address => UserInfo) public userInfo; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event Compound(address indexed user); event EmergencyWithdraw(address indexed user, uint256 amount); constructor(address _stakingToken, address _rewardToken, uint256 _apr, uint256 _lockDurationInDays, uint256 _exitPenaltyPerc, bool _canCompoundOrStakeMore) { stakingToken = IERC20(_stakingToken); rewardToken = IERC20(_rewardToken); canCompoundOrStakeMore = _canCompoundOrStakeMore; apr = _apr; lockDuration = _lockDurationInDays * 1 days; exitPenaltyPerc = _exitPenaltyPerc; // staking pool poolInfo = (PoolInfo({ lpToken: stakingToken, lastRewardTimestamp: 99999999999, accTokensPerShare: 0 })); } function stopReward() external onlyOwner { updatePool(); apr = 0; } function startReward() external onlyOwner { require(poolInfo.lastRewardTimestamp == 99999999999, "Can only start rewards once"); poolInfo.lastRewardTimestamp = block.timestamp; } // View function to see pending Reward on frontend. function pendingReward(address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[_user]; if(pool.lastRewardTimestamp == 99999999999){ return 0; } uint256 accTokensPerShare = pool.accTokensPerShare; uint256 lpSupply = totalStaked; if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) { uint256 tokenReward = calculateNewRewards(); accTokensPerShare = accTokensPerShare.add(tokenReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accTokensPerShare).div(1e12).sub(user.rewardDebt); } // Update reward variables of the given pool to be up-to-date. function updatePool() internal { PoolInfo storage pool = poolInfo; if (block.timestamp <= pool.lastRewardTimestamp) { return; } uint256 lpSupply = totalStaked; if (lpSupply == 0) { pool.lastRewardTimestamp = block.timestamp; return; } uint256 tokenReward = calculateNewRewards(); pool.accTokensPerShare = pool.accTokensPerShare.add(tokenReward.mul(1e12).div(lpSupply)); pool.lastRewardTimestamp = block.timestamp; } // Stake primary tokens function deposit(uint256 _amount) external nonReentrant { if(holderUnlockTime[msg.sender] == 0){ holderUnlockTime[msg.sender] = block.timestamp + lockDuration; } PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[msg.sender]; if(!canCompoundOrStakeMore && _amount > 0){ require(user.amount == 0, "Cannot stake more"); } updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTokensPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0) { require(pending <= rewardsRemaining(), "Cannot withdraw other people's staked tokens. Contact an admin."); rewardToken.safeTransfer(address(msg.sender), pending); } } uint256 amountTransferred = 0; if(_amount > 0) { uint256 initialBalance = pool.lpToken.balanceOf(address(this)); pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); amountTransferred = pool.lpToken.balanceOf(address(this)) - initialBalance; user.amount = user.amount.add(amountTransferred); totalStaked += amountTransferred; } user.rewardDebt = user.amount.mul(pool.accTokensPerShare).div(1e12); emit Deposit(msg.sender, _amount); } function compound() external nonReentrant { require(canCompoundOrStakeMore, "Cannot compound"); PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[msg.sender]; updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTokensPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0) { require(pending <= rewardsRemaining(), "Cannot withdraw other people's staked tokens. Contact an admin."); user.amount += pending; totalStaked += pending; } } user.rewardDebt = user.amount.mul(pool.accTokensPerShare).div(1e12); emit Compound(msg.sender); } // Withdraw primary tokens from STAKING. function withdraw() external nonReentrant { require(holderUnlockTime[msg.sender] <= block.timestamp, "May not do normal withdraw early"); PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[msg.sender]; uint256 _amount = user.amount; updatePool(); uint256 pending = user.amount.mul(pool.accTokensPerShare).div(1e12).sub(user.rewardDebt); if(pending > 0){ require(pending <= rewardsRemaining(), "Cannot withdraw other people's staked tokens. Contact an admin."); rewardToken.safeTransfer(address(msg.sender), pending); } if(_amount > 0) { user.amount = 0; totalStaked -= _amount; pool.lpToken.safeTransfer(address(msg.sender), _amount); } user.rewardDebt = user.amount.mul(pool.accTokensPerShare).div(1e12); if(user.amount > 0){ holderUnlockTime[msg.sender] = block.timestamp + lockDuration; } else { holderUnlockTime[msg.sender] = 0; } emit Withdraw(msg.sender, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw() external nonReentrant { PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[msg.sender]; uint256 _amount = user.amount; totalStaked -= _amount; // exit penalty for early unstakers, penalty held on contract as rewards. if(holderUnlockTime[msg.sender] >= block.timestamp){ _amount -= _amount * exitPenaltyPerc / 100; } holderUnlockTime[msg.sender] = 0; pool.lpToken.safeTransfer(address(msg.sender), _amount); user.amount = 0; user.rewardDebt = 0; emit EmergencyWithdraw(msg.sender, _amount); } // Withdraw reward. EMERGENCY ONLY. This allows the owner to migrate rewards to a new staking pool since we are not minting new tokens. function emergencyRewardWithdraw(uint256 _amount) external onlyOwner { require(_amount <= rewardToken.balanceOf(address(this)) - totalStaked, 'not enough tokens to take out'); rewardToken.safeTransfer(address(msg.sender), _amount); } function calculateNewRewards() public view returns (uint256) { PoolInfo storage pool = poolInfo; if(pool.lastRewardTimestamp > block.timestamp){ return 0; } return (((block.timestamp - pool.lastRewardTimestamp) * totalStaked) * apr / 100 / 365 days); } function rewardsRemaining() public view returns (uint256){ if(rewardToken == stakingToken){ return rewardToken.balanceOf(address(this)) - totalStaked; } else { return rewardToken.balanceOf(address(this)); } } function updateApr(uint256 newApr) external onlyOwner { require(newApr <= 10000, "APR must be below 10000%"); updatePool(); apr = newApr; } function updateExitPenalty(uint256 newPenaltyPerc) external onlyOwner { require(newPenaltyPerc <= 20, "May not set higher than 20%"); exitPenaltyPerc = newPenaltyPerc; } function updateLockDuration(uint256 daysForLock) external onlyOwner { require(daysForLock <= 365, "Lock must be 365 days or less."); lockDuration = daysForLock * 1 days; } function updateCanCompoundOrStakeMore(bool compoundEnabled) external onlyOwner { canCompoundOrStakeMore = compoundEnabled; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_apr","type":"uint256"},{"internalType":"uint256","name":"_lockDurationInDays","type":"uint256"},{"internalType":"uint256","name":"_exitPenaltyPerc","type":"uint256"},{"internalType":"bool","name":"_canCompoundOrStakeMore","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"Compound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"apr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateNewRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canCompoundOrStakeMore","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exitPenaltyPerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDuration","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":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"accTokensPerShare","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":[],"name":"rewardsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"newApr","type":"uint256"}],"name":"updateApr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"compoundEnabled","type":"bool"}],"name":"updateCanCompoundOrStakeMore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPenaltyPerc","type":"uint256"}],"name":"updateExitPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"daysForLock","type":"uint256"}],"name":"updateLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405234801562000010575f80fd5b5060405162001c5f38038062001c5f833981016040819052620000339162000124565b5f80546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b03868116608052851660a0526007805460ff19168215151790556004849055620000ac83620151806200018d565b600555506006555050604080516060810182526080516001600160a01b031680825264174876e7ff602083018190525f92909301829052600880546001600160a01b0319169091179055600991909155600a5550620001b79050565b80516001600160a01b03811681146200011f575f80fd5b919050565b5f805f805f8060c087890312156200013a575f80fd5b620001458762000108565b9550620001556020880162000108565b945060408701519350606087015192506080870151915060a087015180151581146200017f575f80fd5b809150509295509295509295565b8082028115828204841417620001b157634e487b7160e01b5f52601160045260245ffd5b92915050565b60805160a051611a4e620002115f395f81816103c10152818161046901528181610540015281816106820152818161089b015281816108e0015281816109750152610cc401525f818161029f01526108710152611a4e5ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c806380dc0672116100f3578063b6b55f2511610093578063f2fde38b1161006e578063f2fde38b1461038e578063f40f0f52146103a1578063f69e2046146103b4578063f7c618c1146103bc575f80fd5b8063b6b55f2514610360578063d477edf414610373578063db2e21bc14610386575f80fd5b80638da5cb5b116100ce5780638da5cb5b146103165780638e0b019814610326578063999e2f7514610339578063a913a5f714610341575f80fd5b806380dc0672146102f2578063817b1cd2146102fa5780638552bf9014610303575f80fd5b80635a2f3d091161015e57806372f702f31161013957806372f702f31461029a578063746c8ae1146102d957806378c196f3146102e15780637b280def146102e9575f80fd5b80635a2f3d091461023557806368365d0314610275578063715018a614610292575f80fd5b806304554443146101a55780630698260f146101c15780631959a002146101d65780633279beab146102115780633ccfd60b1461022457806357ded9c91461022c575b5f80fd5b6101ae60055481565b6040519081526020015b60405180910390f35b6101d46101cf3660046117e5565b6103e3565b005b6101fc6101e4366004611800565b600b6020525f90815260409020805460019091015482565b604080519283526020830191909152016101b8565b6101d461021f366004611826565b610428565b6101d461056a565b6101ae60045481565b600854600954600a54610250926001600160a01b0316919083565b604080516001600160a01b0390941684526020840192909252908201526060016101b8565b6007546102829060ff1681565b60405190151581526020016101b8565b6101d4610778565b6102c17f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b8565b6101d46107e9565b6101ae61086e565b6101ae60065481565b6101d46109e6565b6101ae60035481565b6101d4610311366004611826565b610a1d565b5f546001600160a01b03166102c1565b6101d4610334366004611826565b610aa5565b6101ae610b24565b6101ae61034f366004611800565b60026020525f908152604090205481565b6101d461036e366004611826565b610b85565b6101d4610381366004611826565b610e68565b6101d4610ef6565b6101d461039c366004611800565b610ff1565b6101ae6103af366004611800565b611023565b6101d46110d1565b6102c17f000000000000000000000000000000000000000000000000000000000000000081565b5f546001600160a01b031633146104155760405162461bcd60e51b815260040161040c9061183d565b60405180910390fd5b6007805460ff1916911515919091179055565b5f546001600160a01b031633146104515760405162461bcd60e51b815260040161040c9061183d565b6003546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156104b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104da9190611872565b6104e4919061189d565b8111156105335760405162461bcd60e51b815260206004820152601d60248201527f6e6f7420656e6f75676820746f6b656e7320746f2074616b65206f7574000000604482015260640161040c565b6105676001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361123b565b50565b60026001540361058c5760405162461bcd60e51b815260040161040c906118b0565b60026001819055335f90815260209190915260409020544210156105f25760405162461bcd60e51b815260206004820181905260248201527f4d6179206e6f7420646f206e6f726d616c207769746864726177206561726c79604482015260640161040c565b335f908152600b6020526040902080546008919061060e6112a3565b5f610646836001015461064064e8d4a5100061063a8860020154885f015461130390919063ffffffff16565b9061138a565b906113cb565b905080156106a95761065661086e565b8111156106755760405162461bcd60e51b815260040161040c906118e7565b6106a96001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361123b565b81156106e0575f808455600380548492906106c590849061189d565b909155505083546106e0906001600160a01b0316338461123b565b600284015483546106fb9164e8d4a510009161063a91611303565b6001840155825415610728576005546107149042611945565b335f90815260026020526040902055610738565b335f908152600260205260408120555b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050600180555050565b5f546001600160a01b031633146107a15760405162461bcd60e51b815260040161040c9061183d565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b031633146108125760405162461bcd60e51b815260040161040c9061183d565b60095464174876e7ff146108685760405162461bcd60e51b815260206004820152601b60248201527f43616e206f6e6c792073746172742072657761726473206f6e63650000000000604482015260640161040c565b42600955565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031603610960576003546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561092d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109519190611872565b61095b919061189d565b905090565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156109c2573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b9190611872565b5f546001600160a01b03163314610a0f5760405162461bcd60e51b815260040161040c9061183d565b610a176112a3565b5f600455565b5f546001600160a01b03163314610a465760405162461bcd60e51b815260040161040c9061183d565b612710811115610a985760405162461bcd60e51b815260206004820152601860248201527f415052206d7573742062652062656c6f77203130303030250000000000000000604482015260640161040c565b610aa06112a3565b600455565b5f546001600160a01b03163314610ace5760405162461bcd60e51b815260040161040c9061183d565b6014811115610b1f5760405162461bcd60e51b815260206004820152601b60248201527f4d6179206e6f742073657420686967686572207468616e203230250000000000604482015260640161040c565b600655565b6009545f90600890421015610b3a575f91505090565b6301e133806064600454600354846001015442610b57919061189d565b610b619190611958565b610b6b9190611958565b610b75919061196f565b610b7f919061196f565b91505090565b600260015403610ba75760405162461bcd60e51b815260040161040c906118b0565b60026001819055335f90815260209190915260408120549003610be157600554610bd19042611945565b335f908152600260205260409020555b335f908152600b602052604090206007546008919060ff16158015610c0557505f83115b15610c4d57805415610c4d5760405162461bcd60e51b815260206004820152601160248201527043616e6e6f74207374616b65206d6f726560781b604482015260640161040c565b610c556112a3565b805415610ced575f610c88826001015461064064e8d4a5100061063a8760020154875f015461130390919063ffffffff16565b90508015610ceb57610c9861086e565b811115610cb75760405162461bcd60e51b815260040161040c906118e7565b610ceb6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361123b565b505b5f8315610e165782546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015610d39573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d5d9190611872565b8454909150610d77906001600160a01b031633308861140c565b83546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610dbc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610de09190611872565b610dea919061189d565b8354909250610df9908361144a565b8355600380548391905f90610e0f908490611945565b9091555050505b60028301548254610e319164e8d4a510009161063a91611303565b600183015560405184815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610766565b5f546001600160a01b03163314610e915760405162461bcd60e51b815260040161040c9061183d565b61016d811115610ee35760405162461bcd60e51b815260206004820152601e60248201527f4c6f636b206d757374206265203336352064617973206f72206c6573732e0000604482015260640161040c565b610ef08162015180611958565b60055550565b600260015403610f185760405162461bcd60e51b815260040161040c906118b0565b6002600155335f908152600b60205260408120805460038054600894839291610f4290849061189d565b9091555050335f908152600260205260409020544211610f8357606460065482610f6c9190611958565b610f76919061196f565b610f80908261189d565b90505b335f818152600260205260408120558354610faa916001600160a01b03909116908361123b565b5f808355600183015560405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a250506001805550565b5f546001600160a01b0316331461101a5760405162461bcd60e51b815260040161040c9061183d565b610567816114a8565b6001600160a01b0381165f908152600b602052604081206009546008919064174876e7ff0361105557505f9392505050565b600282015460035460018401544211801561106f57508015155b156110a0575f61107d610b24565b905061109c6110958361063a8464e8d4a51000611303565b849061144a565b9250505b6110c7836001015461064064e8d4a5100061063a86885f015461130390919063ffffffff16565b9695505050505050565b6002600154036110f35760405162461bcd60e51b815260040161040c906118b0565b600260015560075460ff1661113c5760405162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd0818dbdb5c1bdd5b99608a1b604482015260640161040c565b335f908152600b602052604090206008906111556112a3565b8054156111e9575f611188826001015461064064e8d4a5100061063a8760020154875f015461130390919063ffffffff16565b905080156111e75761119861086e565b8111156111b75760405162461bcd60e51b815260040161040c906118e7565b80825f015f8282546111c99190611945565b925050819055508060035f8282546111e19190611945565b90915550505b505b600282015481546112049164e8d4a510009161063a91611303565b600182015560405133907fda323bd96658b18a6ce813e824305dc61760462bad6aaf52c65aebb8c8c9faa1905f90a2505060018055565b6040516001600160a01b03831660248201526044810182905261129e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611566565b505050565b60095460089042116112b25750565b6003545f8190036112c7575042600190910155565b5f6112d0610b24565b90506112f36112e88361063a8464e8d4a51000611303565b60028501549061144a565b6002840155505042600190910155565b5f825f0361131257505f611384565b5f61131d8385611958565b90508261132a858361196f565b146113815760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161040c565b90505b92915050565b5f61138183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611637565b5f61138183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061166c565b6040516001600160a01b03808516602483015283166044820152606481018290526114449085906323b872dd60e01b90608401611267565b50505050565b5f806114568385611945565b9050838110156113815760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161040c565b6001600160a01b03811661150d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040c565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f6115ba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661169b9092919063ffffffff16565b80519091501561129e57808060200190518101906115d8919061198e565b61129e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b5f81836116575760405162461bcd60e51b815260040161040c91906119cb565b505f611663848661196f565b95945050505050565b5f818484111561168f5760405162461bcd60e51b815260040161040c91906119cb565b505f611663848661189d565b60606116a984845f856116b1565b949350505050565b60606116bc856117a0565b6117085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b5f80866001600160a01b0316858760405161172391906119fd565b5f6040518083038185875af1925050503d805f811461175d576040519150601f19603f3d011682016040523d82523d5f602084013e611762565b606091505b509150915081156117765791506116a99050565b8051156117865780518082602001fd5b8360405162461bcd60e51b815260040161040c91906119cb565b5f813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906116a9575050151592915050565b8015158114610567575f80fd5b5f602082840312156117f5575f80fd5b8135611381816117d8565b5f60208284031215611810575f80fd5b81356001600160a01b0381168114611381575f80fd5b5f60208284031215611836575f80fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f60208284031215611882575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561138457611384611889565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260409082018190527f43616e6e6f74207769746864726177206f746865722070656f706c6527732073908201527f74616b656420746f6b656e732e2020436f6e7461637420616e2061646d696e2e606082015260800190565b8082018082111561138457611384611889565b808202811582820484141761138457611384611889565b5f8261198957634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561199e575f80fd5b8151611381816117d8565b5f5b838110156119c35781810151838201526020016119ab565b50505f910152565b602081525f82518060208401526119e98160408501602087016119a9565b601f01601f19169190910160400192915050565b5f8251611a0e8184602087016119a9565b919091019291505056fea2646970667358221220f8885fc0d5162f43aa8e7f762b4a2dd3f89ea576a348098975005a28be98af7a64736f6c634300081700330000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949490000000000000000000000006c10d1611a5a95cb967e4bcab5791fd101194949000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101a1575f3560e01c806380dc0672116100f3578063b6b55f2511610093578063f2fde38b1161006e578063f2fde38b1461038e578063f40f0f52146103a1578063f69e2046146103b4578063f7c618c1146103bc575f80fd5b8063b6b55f2514610360578063d477edf414610373578063db2e21bc14610386575f80fd5b80638da5cb5b116100ce5780638da5cb5b146103165780638e0b019814610326578063999e2f7514610339578063a913a5f714610341575f80fd5b806380dc0672146102f2578063817b1cd2146102fa5780638552bf9014610303575f80fd5b80635a2f3d091161015e57806372f702f31161013957806372f702f31461029a578063746c8ae1146102d957806378c196f3146102e15780637b280def146102e9575f80fd5b80635a2f3d091461023557806368365d0314610275578063715018a614610292575f80fd5b806304554443146101a55780630698260f146101c15780631959a002146101d65780633279beab146102115780633ccfd60b1461022457806357ded9c91461022c575b5f80fd5b6101ae60055481565b6040519081526020015b60405180910390f35b6101d46101cf3660046117e5565b6103e3565b005b6101fc6101e4366004611800565b600b6020525f90815260409020805460019091015482565b604080519283526020830191909152016101b8565b6101d461021f366004611826565b610428565b6101d461056a565b6101ae60045481565b600854600954600a54610250926001600160a01b0316919083565b604080516001600160a01b0390941684526020840192909252908201526060016101b8565b6007546102829060ff1681565b60405190151581526020016101b8565b6101d4610778565b6102c17f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd10119494981565b6040516001600160a01b0390911681526020016101b8565b6101d46107e9565b6101ae61086e565b6101ae60065481565b6101d46109e6565b6101ae60035481565b6101d4610311366004611826565b610a1d565b5f546001600160a01b03166102c1565b6101d4610334366004611826565b610aa5565b6101ae610b24565b6101ae61034f366004611800565b60026020525f908152604090205481565b6101d461036e366004611826565b610b85565b6101d4610381366004611826565b610e68565b6101d4610ef6565b6101d461039c366004611800565b610ff1565b6101ae6103af366004611800565b611023565b6101d46110d1565b6102c17f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd10119494981565b5f546001600160a01b031633146104155760405162461bcd60e51b815260040161040c9061183d565b60405180910390fd5b6007805460ff1916911515919091179055565b5f546001600160a01b031633146104515760405162461bcd60e51b815260040161040c9061183d565b6003546040516370a0823160e01b81523060048201527f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949496001600160a01b0316906370a0823190602401602060405180830381865afa1580156104b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104da9190611872565b6104e4919061189d565b8111156105335760405162461bcd60e51b815260206004820152601d60248201527f6e6f7420656e6f75676820746f6b656e7320746f2074616b65206f7574000000604482015260640161040c565b6105676001600160a01b037f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd10119494916338361123b565b50565b60026001540361058c5760405162461bcd60e51b815260040161040c906118b0565b60026001819055335f90815260209190915260409020544210156105f25760405162461bcd60e51b815260206004820181905260248201527f4d6179206e6f7420646f206e6f726d616c207769746864726177206561726c79604482015260640161040c565b335f908152600b6020526040902080546008919061060e6112a3565b5f610646836001015461064064e8d4a5100061063a8860020154885f015461130390919063ffffffff16565b9061138a565b906113cb565b905080156106a95761065661086e565b8111156106755760405162461bcd60e51b815260040161040c906118e7565b6106a96001600160a01b037f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd10119494916338361123b565b81156106e0575f808455600380548492906106c590849061189d565b909155505083546106e0906001600160a01b0316338461123b565b600284015483546106fb9164e8d4a510009161063a91611303565b6001840155825415610728576005546107149042611945565b335f90815260026020526040902055610738565b335f908152600260205260408120555b60405182815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050600180555050565b5f546001600160a01b031633146107a15760405162461bcd60e51b815260040161040c9061183d565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f80546001600160a01b0319169055565b5f546001600160a01b031633146108125760405162461bcd60e51b815260040161040c9061183d565b60095464174876e7ff146108685760405162461bcd60e51b815260206004820152601b60248201527f43616e206f6e6c792073746172742072657761726473206f6e63650000000000604482015260640161040c565b42600955565b5f7f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949496001600160a01b03167f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949496001600160a01b031603610960576003546040516370a0823160e01b81523060048201527f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949496001600160a01b0316906370a0823190602401602060405180830381865afa15801561092d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109519190611872565b61095b919061189d565b905090565b6040516370a0823160e01b81523060048201527f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949496001600160a01b0316906370a0823190602401602060405180830381865afa1580156109c2573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061095b9190611872565b5f546001600160a01b03163314610a0f5760405162461bcd60e51b815260040161040c9061183d565b610a176112a3565b5f600455565b5f546001600160a01b03163314610a465760405162461bcd60e51b815260040161040c9061183d565b612710811115610a985760405162461bcd60e51b815260206004820152601860248201527f415052206d7573742062652062656c6f77203130303030250000000000000000604482015260640161040c565b610aa06112a3565b600455565b5f546001600160a01b03163314610ace5760405162461bcd60e51b815260040161040c9061183d565b6014811115610b1f5760405162461bcd60e51b815260206004820152601b60248201527f4d6179206e6f742073657420686967686572207468616e203230250000000000604482015260640161040c565b600655565b6009545f90600890421015610b3a575f91505090565b6301e133806064600454600354846001015442610b57919061189d565b610b619190611958565b610b6b9190611958565b610b75919061196f565b610b7f919061196f565b91505090565b600260015403610ba75760405162461bcd60e51b815260040161040c906118b0565b60026001819055335f90815260209190915260408120549003610be157600554610bd19042611945565b335f908152600260205260409020555b335f908152600b602052604090206007546008919060ff16158015610c0557505f83115b15610c4d57805415610c4d5760405162461bcd60e51b815260206004820152601160248201527043616e6e6f74207374616b65206d6f726560781b604482015260640161040c565b610c556112a3565b805415610ced575f610c88826001015461064064e8d4a5100061063a8760020154875f015461130390919063ffffffff16565b90508015610ceb57610c9861086e565b811115610cb75760405162461bcd60e51b815260040161040c906118e7565b610ceb6001600160a01b037f0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd10119494916338361123b565b505b5f8315610e165782546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015610d39573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d5d9190611872565b8454909150610d77906001600160a01b031633308861140c565b83546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610dbc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610de09190611872565b610dea919061189d565b8354909250610df9908361144a565b8355600380548391905f90610e0f908490611945565b9091555050505b60028301548254610e319164e8d4a510009161063a91611303565b600183015560405184815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610766565b5f546001600160a01b03163314610e915760405162461bcd60e51b815260040161040c9061183d565b61016d811115610ee35760405162461bcd60e51b815260206004820152601e60248201527f4c6f636b206d757374206265203336352064617973206f72206c6573732e0000604482015260640161040c565b610ef08162015180611958565b60055550565b600260015403610f185760405162461bcd60e51b815260040161040c906118b0565b6002600155335f908152600b60205260408120805460038054600894839291610f4290849061189d565b9091555050335f908152600260205260409020544211610f8357606460065482610f6c9190611958565b610f76919061196f565b610f80908261189d565b90505b335f818152600260205260408120558354610faa916001600160a01b03909116908361123b565b5f808355600183015560405181815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a250506001805550565b5f546001600160a01b0316331461101a5760405162461bcd60e51b815260040161040c9061183d565b610567816114a8565b6001600160a01b0381165f908152600b602052604081206009546008919064174876e7ff0361105557505f9392505050565b600282015460035460018401544211801561106f57508015155b156110a0575f61107d610b24565b905061109c6110958361063a8464e8d4a51000611303565b849061144a565b9250505b6110c7836001015461064064e8d4a5100061063a86885f015461130390919063ffffffff16565b9695505050505050565b6002600154036110f35760405162461bcd60e51b815260040161040c906118b0565b600260015560075460ff1661113c5760405162461bcd60e51b815260206004820152600f60248201526e10d85b9b9bdd0818dbdb5c1bdd5b99608a1b604482015260640161040c565b335f908152600b602052604090206008906111556112a3565b8054156111e9575f611188826001015461064064e8d4a5100061063a8760020154875f015461130390919063ffffffff16565b905080156111e75761119861086e565b8111156111b75760405162461bcd60e51b815260040161040c906118e7565b80825f015f8282546111c99190611945565b925050819055508060035f8282546111e19190611945565b90915550505b505b600282015481546112049164e8d4a510009161063a91611303565b600182015560405133907fda323bd96658b18a6ce813e824305dc61760462bad6aaf52c65aebb8c8c9faa1905f90a2505060018055565b6040516001600160a01b03831660248201526044810182905261129e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611566565b505050565b60095460089042116112b25750565b6003545f8190036112c7575042600190910155565b5f6112d0610b24565b90506112f36112e88361063a8464e8d4a51000611303565b60028501549061144a565b6002840155505042600190910155565b5f825f0361131257505f611384565b5f61131d8385611958565b90508261132a858361196f565b146113815760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161040c565b90505b92915050565b5f61138183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611637565b5f61138183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061166c565b6040516001600160a01b03808516602483015283166044820152606481018290526114449085906323b872dd60e01b90608401611267565b50505050565b5f806114568385611945565b9050838110156113815760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161040c565b6001600160a01b03811661150d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040c565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f6115ba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661169b9092919063ffffffff16565b80519091501561129e57808060200190518101906115d8919061198e565b61129e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b5f81836116575760405162461bcd60e51b815260040161040c91906119cb565b505f611663848661196f565b95945050505050565b5f818484111561168f5760405162461bcd60e51b815260040161040c91906119cb565b505f611663848661189d565b60606116a984845f856116b1565b949350505050565b60606116bc856117a0565b6117085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b5f80866001600160a01b0316858760405161172391906119fd565b5f6040518083038185875af1925050503d805f811461175d576040519150601f19603f3d011682016040523d82523d5f602084013e611762565b606091505b509150915081156117765791506116a99050565b8051156117865780518082602001fd5b8360405162461bcd60e51b815260040161040c91906119cb565b5f813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906116a9575050151592915050565b8015158114610567575f80fd5b5f602082840312156117f5575f80fd5b8135611381816117d8565b5f60208284031215611810575f80fd5b81356001600160a01b0381168114611381575f80fd5b5f60208284031215611836575f80fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f60208284031215611882575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561138457611384611889565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260409082018190527f43616e6e6f74207769746864726177206f746865722070656f706c6527732073908201527f74616b656420746f6b656e732e2020436f6e7461637420616e2061646d696e2e606082015260800190565b8082018082111561138457611384611889565b808202811582820484141761138457611384611889565b5f8261198957634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561199e575f80fd5b8151611381816117d8565b5f5b838110156119c35781810151838201526020016119ab565b50505f910152565b602081525f82518060208401526119e98160408501602087016119a9565b601f01601f19169190910160400192915050565b5f8251611a0e8184602087016119a9565b919091019291505056fea2646970667358221220f8885fc0d5162f43aa8e7f762b4a2dd3f89ea576a348098975005a28be98af7a64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd1011949490000000000000000000000006c10d1611a5a95cb967e4bcab5791fd101194949000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x6c10D1611a5A95CB967e4bcAb5791Fd101194949
Arg [1] : _rewardToken (address): 0x6c10D1611a5A95CB967e4bcAb5791Fd101194949
Arg [2] : _apr (uint256): 15
Arg [3] : _lockDurationInDays (uint256): 7
Arg [4] : _exitPenaltyPerc (uint256): 20
Arg [5] : _canCompoundOrStakeMore (bool): True
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd101194949
Arg [1] : 0000000000000000000000006c10d1611a5a95cb967e4bcab5791fd101194949
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode Sourcemap
24689:9515:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25534:27;;;;;;;;;160:25:1;;;148:2;133:18;25534:27:0;;;;;;;;34063:138;;;;;;:::i;:::-;;:::i;:::-;;25761:45;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;1030:25:1;;;1086:2;1071:18;;1064:34;;;;1003:18;25761:45:0;856:248:1;32630:256:0;;;;;;:::i;:::-;;:::i;30598:1150::-;;;:::i;25509:18::-;;;;;;25681:24;;;;;;;;;-1:-1:-1;;;;;25681:24:0;;;;;;;;;-1:-1:-1;;;;;1528:32:1;;;1510:51;;1592:2;1577:18;;1570:34;;;;1620:18;;;1613:34;1498:2;1483:18;25681:24:0;1294:359:1;25611:34:0;;;;;;;;;;;;1823:14:1;;1816:22;1798:41;;1786:2;1771:18;25611:34:0;1658:187:1;2810:140:0;;;:::i;25330:36::-;;;;;;;;-1:-1:-1;;;;;2028:32:1;;;2010:51;;1998:2;1983:18;25330:36:0;1850:217:1;26778:201:0;;;:::i;33208:266::-;;;:::i;25568:30::-;;;;;;26680:90;;;:::i;25476:26::-;;;;;;33482:171;;;;;;:::i;:::-;;:::i;2168:79::-;2206:7;2233:6;-1:-1:-1;;;;;2233:6:0;2168:79;;33661:192;;;;;;:::i;:::-;;:::i;32894:306::-;;;:::i;25415:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;28379:1406;;;;;;:::i;:::-;;:::i;33861:194::-;;;;;;:::i;:::-;;:::i;31819:662::-;;;:::i;3105:109::-;;;;;;:::i;:::-;;:::i;27044:682::-;;;;;;:::i;:::-;;:::i;29793:749::-;;;:::i;25373:35::-;;;;;34063:138;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;;;;;;;;;34153:22:::1;:40:::0;;-1:-1:-1;;34153:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;34063:138::o;32630:256::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;32768:11:::1;::::0;32729:36:::1;::::0;-1:-1:-1;;;32729:36:0;;32759:4:::1;32729:36;::::0;::::1;2010:51:1::0;32729:11:0::1;-1:-1:-1::0;;;;;32729:21:0::1;::::0;::::1;::::0;1983:18:1;;32729:36:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;32718:7;:61;;32710:103;;;::::0;-1:-1:-1;;;32710:103:0;;3297:2:1;32710:103:0::1;::::0;::::1;3279:21:1::0;3336:2;3316:18;;;3309:30;3375:31;3355:18;;;3348:59;3424:18;;32710:103:0::1;3095:353:1::0;32710:103:0::1;32824:54;-1:-1:-1::0;;;;;32824:11:0::1;:24;32857:10;32870:7:::0;32824:24:::1;:54::i;:::-;32630:256:::0;:::o;30598:1150::-;23742:1;24340:7;;:19;24332:63;;;;-1:-1:-1;;;24332:63:0;;;;;;;:::i;:::-;23742:1;24473:7;:18;;;30678:10:::1;30661:28;::::0;;;::::1;::::0;;;;;;;;30693:15:::1;-1:-1:-1::0;30661:47:0::1;30653:92;;;::::0;-1:-1:-1;;;30653:92:0;;4015:2:1;30653:92:0::1;::::0;::::1;3997:21:1::0;;;4034:18;;;4027:30;4093:34;4073:18;;;4066:62;4145:18;;30653:92:0::1;3813:356:1::0;30653:92:0::1;30842:10;30766:21;30833:20:::0;;;:8:::1;:20;::::0;;;;30884:11;;30790:8:::1;::::0;30833:20;30906:12:::1;:10;:12::i;:::-;30929:15;30947:70;31001:4;:15;;;30947:49;30991:4;30947:39;30963:4;:22;;;30947:4;:11;;;:15;;:39;;;;:::i;:::-;:43:::0;::::1;:49::i;:::-;:53:::0;::::1;:70::i;:::-;30929:88:::0;-1:-1:-1;31031:11:0;;31028:217:::1;;31077:18;:16;:18::i;:::-;31066:7;:29;;31058:106;;;;-1:-1:-1::0;;;31058:106:0::1;;;;;;;:::i;:::-;31179:54;-1:-1:-1::0;;;;;31179:11:0::1;:24;31212:10;31225:7:::0;31179:24:::1;:54::i;:::-;31260:11:::0;;31257:165:::1;;31302:1;31288:15:::0;;;31318:11:::1;:22:::0;;31333:7;;31302:1;31318:22:::1;::::0;31333:7;;31318:22:::1;:::i;:::-;::::0;;;-1:-1:-1;;31355:12:0;;:55:::1;::::0;-1:-1:-1;;;;;31355:12:0::1;31389:10;31402:7:::0;31355:25:::1;:55::i;:::-;31468:22;::::0;::::1;::::0;31452:11;;:49:::1;::::0;31496:4:::1;::::0;31452:39:::1;::::0;:15:::1;:39::i;:49::-;31434:15;::::0;::::1;:67:::0;31525:11;;:15;31522:172:::1;;31605:12;::::0;31587:30:::1;::::0;:15:::1;:30;:::i;:::-;31573:10;31556:28;::::0;;;:16:::1;:28;::::0;;;;:61;31522:172:::1;;;31667:10;31681:1;31650:28:::0;;;:16:::1;:28;::::0;;;;:32;31522:172:::1;31711:29;::::0;160:25:1;;;31720:10:0::1;::::0;31711:29:::1;::::0;148:2:1;133:18;31711:29:0::1;;;;;;;;-1:-1:-1::0;;23698:1:0;24652:22;;-1:-1:-1;;30598:1150:0:o;2810:140::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;2909:1:::1;2893:6:::0;;2872:40:::1;::::0;-1:-1:-1;;;;;2893:6:0;;::::1;::::0;2872:40:::1;::::0;2909:1;;2872:40:::1;2940:1;2923:19:::0;;-1:-1:-1;;;;;;2923:19:0::1;::::0;;2810:140::o;26778:201::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;26839:28;;26871:11:::1;26839:43;26831:83;;;::::0;-1:-1:-1;;;26831:83:0;;4939:2:1;26831:83:0::1;::::0;::::1;4921:21:1::0;4978:2;4958:18;;;4951:30;5017:29;4997:18;;;4990:57;5064:18;;26831:83:0::1;4737:351:1::0;26831:83:0::1;26956:15;26925:28:::0;:46;26778:201::o;33208:266::-;33257:7;33294:12;-1:-1:-1;;;;;33279:27:0;:11;-1:-1:-1;;;;;33279:27:0;;33276:191;;33368:11;;33329:36;;-1:-1:-1;;;33329:36:0;;33359:4;33329:36;;;2010:51:1;33329:11:0;-1:-1:-1;;;;;33329:21:0;;;;1983:18:1;;33329:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;33322:57;;33208:266;:::o;33276:191::-;33419:36;;-1:-1:-1;;;33419:36:0;;33449:4;33419:36;;;2010:51:1;33419:11:0;-1:-1:-1;;;;;33419:21:0;;;;1983:18:1;;33419:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;26680:90::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;26732:12:::1;:10;:12::i;:::-;26761:1;26755:3;:7:::0;26680:90::o;33482:171::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;33565:5:::1;33555:6;:15;;33547:52;;;::::0;-1:-1:-1;;;33547:52:0;;5295:2:1;33547:52:0::1;::::0;::::1;5277:21:1::0;5334:2;5314:18;;;5307:30;5373:26;5353:18;;;5346:54;5417:18;;33547:52:0::1;5093:348:1::0;33547:52:0::1;33610:12;:10;:12::i;:::-;33633:3;:12:::0;33482:171::o;33661:192::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;33768:2:::1;33750:14;:20;;33742:60;;;::::0;-1:-1:-1;;;33742:60:0;;5648:2:1;33742:60:0::1;::::0;::::1;5630:21:1::0;5687:2;5667:18;;;5660:30;5726:29;5706:18;;;5699:57;5773:18;;33742:60:0::1;5446:351:1::0;33742:60:0::1;33813:15;:32:::0;33661:192::o;32894:306::-;33012:24;;32946:7;;32990:8;;33039:15;-1:-1:-1;33009:81:0;;;33077:1;33070:8;;;32894:306;:::o;33009:81::-;33183:8;33177:3;33171;;33156:11;;33128:4;:24;;;33110:15;:42;;;;:::i;:::-;33109:58;;;;:::i;:::-;33108:66;;;;:::i;:::-;:72;;;;:::i;:::-;:83;;;;:::i;:::-;33100:92;;;32894:306;:::o;28379:1406::-;23742:1;24340:7;;:19;24332:63;;;;-1:-1:-1;;;24332:63:0;;;;;;;:::i;:::-;23742:1;24473:7;:18;;;28466:10:::1;28449:28;::::0;;;::::1;::::0;;;;;;;;:33;;28446:125:::1;;28547:12;::::0;28529:30:::1;::::0;:15:::1;:30;:::i;:::-;28515:10;28498:28;::::0;;;:16:::1;:28;::::0;;;;:61;28446:125:::1;28657:10;28581:21;28648:20:::0;;;:8:::1;:20;::::0;;;;28685:22:::1;::::0;28605:8:::1;::::0;28648:20;28685:22:::1;;28684:23;:38:::0;::::1;;;;28721:1;28711:7;:11;28684:38;28681:115;;;28746:11:::0;;:16;28738:46:::1;;;::::0;-1:-1:-1;;;28738:46:0;;6399:2:1;28738:46:0::1;::::0;::::1;6381:21:1::0;6438:2;6418:18;;;6411:30;-1:-1:-1;;;6457:18:1;;;6450:47;6514:18;;28738:46:0::1;6197:341:1::0;28738:46:0::1;28808:12;:10;:12::i;:::-;28835:11:::0;;:15;28831:380:::1;;28867:15;28885:70;28939:4;:15;;;28885:49;28929:4;28885:39;28901:4;:22;;;28885:4;:11;;;:15;;:39;;;;:::i;:70::-;28867:88:::0;-1:-1:-1;28973:11:0;;28970:230:::1;;29024:18;:16;:18::i;:::-;29013:7;:29;;29005:106;;;;-1:-1:-1::0;;;29005:106:0::1;;;;;;;:::i;:::-;29130:54;-1:-1:-1::0;;;;;29130:11:0::1;:24;29163:10;29176:7:::0;29130:24:::1;:54::i;:::-;28852:359;28831:380;29221:25;29264:11:::0;;29261:393:::1;;29317:12:::0;;:37:::1;::::0;-1:-1:-1;;;29317:37:0;;29348:4:::1;29317:37;::::0;::::1;2010:51:1::0;29292:22:0::1;::::0;-1:-1:-1;;;;;29317:12:0::1;::::0;:22:::1;::::0;1983:18:1;;29317:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29369:12:::0;;29292:62;;-1:-1:-1;29369:74:0::1;::::0;-1:-1:-1;;;;;29369:12:0::1;29407:10;29428:4;29435:7:::0;29369:29:::1;:74::i;:::-;29478:12:::0;;:37:::1;::::0;-1:-1:-1;;;29478:37:0;;29509:4:::1;29478:37;::::0;::::1;2010:51:1::0;29518:14:0;;-1:-1:-1;;;;;29478:12:0::1;::::0;:22:::1;::::0;1983:18:1;;29478:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:54;;;;:::i;:::-;29561:11:::0;;29458:74;;-1:-1:-1;29561:34:0::1;::::0;29458:74;29561:15:::1;:34::i;:::-;29547:48:::0;;29610:11:::1;:32:::0;;29625:17;;29610:11;29547::::1;::::0;29610:32:::1;::::0;29625:17;;29610:32:::1;:::i;:::-;::::0;;;-1:-1:-1;;;29261:393:0::1;29698:22;::::0;::::1;::::0;29682:11;;:49:::1;::::0;29726:4:::1;::::0;29682:39:::1;::::0;:15:::1;:39::i;:49::-;29664:15;::::0;::::1;:67:::0;29749:28:::1;::::0;160:25:1;;;29757:10:0::1;::::0;29749:28:::1;::::0;148:2:1;133:18;29749:28:0::1;14:177:1::0;33861:194:0;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;33963:3:::1;33948:11;:18;;33940:61;;;::::0;-1:-1:-1;;;33940:61:0;;6745:2:1;33940:61:0::1;::::0;::::1;6727:21:1::0;6784:2;6764:18;;;6757:30;6823:32;6803:18;;;6796:60;6873:18;;33940:61:0::1;6543:354:1::0;33940:61:0::1;34027:20;:11:::0;34041:6:::1;34027:20;:::i;:::-;34012:12;:35:::0;-1:-1:-1;33861:194:0:o;31819:662::-;23742:1;24340:7;;:19;24332:63;;;;-1:-1:-1;;;24332:63:0;;;;;;;:::i;:::-;23742:1;24473:7;:18;31957:10:::1;31881:21;31948:20:::0;;;:8:::1;:20;::::0;;;;31997:11;;32019::::1;:22:::0;;31905:8:::1;::::0;31997:11;;32019;:22:::1;::::0;31997:11;;32019:22:::1;:::i;:::-;::::0;;;-1:-1:-1;;32155:10:0::1;32138:28;::::0;;;:16:::1;:28;::::0;;;;;32170:15:::1;-1:-1:-1::0;32135:120:0::1;;32240:3;32222:15;;32212:7;:25;;;;:::i;:::-;:31;;;;:::i;:::-;32201:42;::::0;;::::1;:::i;:::-;;;32135:120;32282:10;32296:1;32265:28:::0;;;:16:::1;:28;::::0;;;;:32;32308:12;;:55:::1;::::0;-1:-1:-1;;;;;32308:12:0;;::::1;::::0;32355:7;32308:25:::1;:55::i;:::-;32388:1;32374:15:::0;;;32400::::1;::::0;::::1;:19:::0;32435:38:::1;::::0;160:25:1;;;32453:10:0::1;::::0;32435:38:::1;::::0;148:2:1;133:18;32435:38:0::1;;;;;;;-1:-1:-1::0;;23698:1:0;24652:22;;-1:-1:-1;31819:662:0:o;3105:109::-;2380:6;;-1:-1:-1;;;;;2380:6:0;911:10;2380:22;2372:67;;;;-1:-1:-1;;;2372:67:0;;;;;;;:::i;:::-;3178:28:::1;3197:8;3178:18;:28::i;27044:682::-:0;-1:-1:-1;;;;;27192:15:0;;27105:7;27192:15;;;:8;:15;;;;;27221:24;;27149:8;;27192:15;27249:11;27221:39;27218:78;;-1:-1:-1;27283:1:0;;27044:682;-1:-1:-1;;;27044:682:0:o;27218:78::-;27334:22;;;;27386:11;;27430:24;;;;27412:15;:42;:59;;;;-1:-1:-1;27458:13:0;;;27412:59;27408:228;;;27488:19;27510:21;:19;:21::i;:::-;27488:43;-1:-1:-1;27566:58:0;27588:35;27614:8;27588:21;27488:43;27604:4;27588:15;:21::i;:35::-;27566:17;;:21;:58::i;:::-;27546:78;;27473:163;27408:228;27653:65;27702:4;:15;;;27653:44;27692:4;27653:34;27669:17;27653:4;:11;;;:15;;:34;;;;:::i;:65::-;27646:72;27044:682;-1:-1:-1;;;;;;27044:682:0:o;29793:749::-;23742:1;24340:7;;:19;24332:63;;;;-1:-1:-1;;;24332:63:0;;;;;;;:::i;:::-;23742:1;24473:7;:18;29854:22:::1;::::0;::::1;;29846:50;;;::::0;-1:-1:-1;;;29846:50:0;;7104:2:1;29846:50:0::1;::::0;::::1;7086:21:1::0;7143:2;7123:18;;;7116:30;-1:-1:-1;;;7162:18:1;;;7155:45;7217:18;;29846:50:0::1;6902:339:1::0;29846:50:0::1;29983:10;29907:21;29974:20:::0;;;:8:::1;:20;::::0;;;;29931:8:::1;::::0;30007:12:::1;:10;:12::i;:::-;30034:11:::0;;:15;30030:389:::1;;30066:15;30084:70;30138:4;:15;;;30084:49;30128:4;30084:39;30100:4;:22;;;30084:4;:11;;;:15;;:39;;;;:::i;:70::-;30066:88:::0;-1:-1:-1;30172:11:0;;30169:239:::1;;30223:18;:16;:18::i;:::-;30212:7;:29;;30204:106;;;;-1:-1:-1::0;;;30204:106:0::1;;;;;;;:::i;:::-;30344:7;30329:4;:11;;;:22;;;;;;;:::i;:::-;;;;;;;;30385:7;30370:11;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;30169:239:0::1;30051:368;30030:389;30465:22;::::0;::::1;::::0;30449:11;;:49:::1;::::0;30493:4:::1;::::0;30449:39:::1;::::0;:15:::1;:39::i;:49::-;30431:15;::::0;::::1;:67:::0;30514:20:::1;::::0;30523:10:::1;::::0;30514:20:::1;::::0;;;::::1;-1:-1:-1::0;;23698:1:0;24652:22;;29793:749::o;13209:211::-;13353:58;;-1:-1:-1;;;;;7438:32:1;;13353:58:0;;;7420:51:1;7487:18;;;7480:34;;;13326:86:0;;13346:5;;-1:-1:-1;;;13376:23:0;7393:18:1;;13353:58:0;;;;-1:-1:-1;;13353:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;13353:58:0;-1:-1:-1;;;;;;13353:58:0;;;;;;;;;;13326:19;:86::i;:::-;13209:211;;;:::o;27802:540::-;27910:24;;27868:8;;27891:15;:43;27887:82;;27951:7;27802:540::o;27887:82::-;27998:11;;27979:16;28024:13;;;28020:109;;-1:-1:-1;28081:15:0;28054:24;;;;:42;27802:540::o;28020:109::-;28139:19;28161:21;:19;:21::i;:::-;28139:43;-1:-1:-1;28218:63:0;28245:35;28271:8;28245:21;28139:43;28261:4;28245:15;:21::i;:35::-;28218:22;;;;;:26;:63::i;:::-;28193:22;;;:88;-1:-1:-1;;28319:15:0;28292:24;;;;:42;27802:540::o;5784:471::-;5842:7;6087:1;6092;6087:6;6083:47;;-1:-1:-1;6117:1:0;6110:8;;6083:47;6142:9;6154:5;6158:1;6154;:5;:::i;:::-;6142:17;-1:-1:-1;6187:1:0;6178:5;6182:1;6142:17;6178:5;:::i;:::-;:10;6170:56;;;;-1:-1:-1;;;6170:56:0;;7727:2:1;6170:56:0;;;7709:21:1;7766:2;7746:18;;;7739:30;7805:34;7785:18;;;7778:62;-1:-1:-1;;;7856:18:1;;;7849:31;7897:19;;6170:56:0;7525:397:1;6170:56:0;6246:1;-1:-1:-1;5784:471:0;;;;;:::o;6731:132::-;6789:7;6816:39;6820:1;6823;6816:39;;;;;;;;;;;;;;;;;:3;:39::i;4860:136::-;4918:7;4945:43;4949:1;4952;4945:43;;;;;;;;;;;;;;;;;:3;:43::i;13428:248::-;13599:68;;-1:-1:-1;;;;;8185:15:1;;;13599:68:0;;;8167:34:1;8237:15;;8217:18;;;8210:43;8269:18;;;8262:34;;;13572:96:0;;13592:5;;-1:-1:-1;;;13622:27:0;8102:18:1;;13599:68:0;7927:375:1;13572:96:0;13428:248;;;;:::o;4396:181::-;4454:7;;4486:5;4490:1;4486;:5;:::i;:::-;4474:17;;4515:1;4510;:6;;4502:46;;;;-1:-1:-1;;;4502:46:0;;8509:2:1;4502:46:0;;;8491:21:1;8548:2;8528:18;;;8521:30;8587:29;8567:18;;;8560:57;8634:18;;4502:46:0;8307:351:1;3320:229:0;-1:-1:-1;;;;;3394:22:0;;3386:73;;;;-1:-1:-1;;;3386:73:0;;8865:2:1;3386:73:0;;;8847:21:1;8904:2;8884:18;;;8877:30;8943:34;8923:18;;;8916:62;-1:-1:-1;;;8994:18:1;;;8987:36;9040:19;;3386:73:0;8663:402:1;3386:73:0;3496:6;;;3475:38;;-1:-1:-1;;;;;3475:38:0;;;;3496:6;;;3475:38;;;3524:6;:17;;-1:-1:-1;;;;;;3524:17:0;-1:-1:-1;;;;;3524:17:0;;;;;;;;;;3320:229::o;15744:774::-;16168:23;16194:69;16222:4;16194:69;;;;;;;;;;;;;;;;;16202:5;-1:-1:-1;;;;;16194:27:0;;;:69;;;;;:::i;:::-;16278:17;;16168:95;;-1:-1:-1;16278:21:0;16274:237;;16433:10;16422:30;;;;;;;;;;;;:::i;:::-;16414:85;;;;-1:-1:-1;;;16414:85:0;;9522:2:1;16414:85:0;;;9504:21:1;9561:2;9541:18;;;9534:30;9600:34;9580:18;;;9573:62;-1:-1:-1;;;9651:18:1;;;9644:40;9701:19;;16414:85:0;9320:406:1;7359:312:0;7479:7;7514:12;7507:5;7499:28;;;;-1:-1:-1;;;7499:28:0;;;;;;;;:::i;:::-;-1:-1:-1;7538:9:0;7550:5;7554:1;7550;:5;:::i;:::-;7538:17;7359:312;-1:-1:-1;;;;;7359:312:0:o;5299:226::-;5419:7;5455:12;5447:6;;;;5439:29;;;;-1:-1:-1;;;5439:29:0;;;;;;;;:::i;:::-;-1:-1:-1;5479:9:0;5491:5;5495:1;5491;:5;:::i;20343:230::-;20480:12;20512:53;20535:6;20543:4;20549:1;20552:12;20512:22;:53::i;:::-;20505:60;20343:230;-1:-1:-1;;;;20343:230:0:o;21831:1020::-;22004:12;22037:18;22048:6;22037:10;:18::i;:::-;22029:60;;;;-1:-1:-1;;;22029:60:0;;10589:2:1;22029:60:0;;;10571:21:1;10628:2;10608:18;;;10601:30;10667:31;10647:18;;;10640:59;10716:18;;22029:60:0;10387:353:1;22029:60:0;22163:12;22177:23;22204:6;-1:-1:-1;;;;;22204:11:0;22223:8;22233:4;22204:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22162:76;;;;22253:7;22249:595;;;22284:10;-1:-1:-1;22277:17:0;;-1:-1:-1;22277:17:0;22249:595;22398:17;;:21;22394:439;;22661:10;22655:17;22722:15;22709:10;22705:2;22701:19;22694:44;22394:439;22804:12;22797:20;;-1:-1:-1;;;22797:20:0;;;;;;;;:::i;17206:641::-;17266:4;17747:20;;17577:66;17796:23;;;;;;:42;;-1:-1:-1;;17823:15:0;;;17788:51;-1:-1:-1;;17206:641:0:o;196:118:1:-;282:5;275:13;268:21;261:5;258:32;248:60;;304:1;301;294:12;319:241;375:6;428:2;416:9;407:7;403:23;399:32;396:52;;;444:1;441;434:12;396:52;483:9;470:23;502:28;524:5;502:28;:::i;565:286::-;624:6;677:2;665:9;656:7;652:23;648:32;645:52;;;693:1;690;683:12;645:52;719:23;;-1:-1:-1;;;;;771:31:1;;761:42;;751:70;;817:1;814;807:12;1109:180;1168:6;1221:2;1209:9;1200:7;1196:23;1192:32;1189:52;;;1237:1;1234;1227:12;1189:52;-1:-1:-1;1260:23:1;;1109:180;-1:-1:-1;1109:180:1:o;2280:356::-;2482:2;2464:21;;;2501:18;;;2494:30;2560:34;2555:2;2540:18;;2533:62;2627:2;2612:18;;2280:356::o;2641:184::-;2711:6;2764:2;2752:9;2743:7;2739:23;2735:32;2732:52;;;2780:1;2777;2770:12;2732:52;-1:-1:-1;2803:16:1;;2641:184;-1:-1:-1;2641:184:1:o;2830:127::-;2891:10;2886:3;2882:20;2879:1;2872:31;2922:4;2919:1;2912:15;2946:4;2943:1;2936:15;2962:128;3029:9;;;3050:11;;;3047:37;;;3064:18;;:::i;3453:355::-;3655:2;3637:21;;;3694:2;3674:18;;;3667:30;3733:33;3728:2;3713:18;;3706:61;3799:2;3784:18;;3453:355::o;4174:428::-;4376:2;4358:21;;;4415:2;4395:18;;;4388:30;;;4454:34;4434:18;;;4427:62;4525:34;4520:2;4505:18;;4498:62;4592:3;4577:19;;4174:428::o;4607:125::-;4672:9;;;4693:10;;;4690:36;;;4706:18;;:::i;5802:168::-;5875:9;;;5906;;5923:15;;;5917:22;;5903:37;5893:71;;5944:18;;:::i;5975:217::-;6015:1;6041;6031:132;;6085:10;6080:3;6076:20;6073:1;6066:31;6120:4;6117:1;6110:15;6148:4;6145:1;6138:15;6031:132;-1:-1:-1;6177:9:1;;5975:217::o;9070:245::-;9137:6;9190:2;9178:9;9169:7;9165:23;9161:32;9158:52;;;9206:1;9203;9196:12;9158:52;9238:9;9232:16;9257:28;9279:5;9257:28;:::i;9731:250::-;9816:1;9826:113;9840:6;9837:1;9834:13;9826:113;;;9916:11;;;9910:18;9897:11;;;9890:39;9862:2;9855:10;9826:113;;;-1:-1:-1;;9973:1:1;9955:16;;9948:27;9731:250::o;9986:396::-;10135:2;10124:9;10117:21;10098:4;10167:6;10161:13;10210:6;10205:2;10194:9;10190:18;10183:34;10226:79;10298:6;10293:2;10282:9;10278:18;10273:2;10265:6;10261:15;10226:79;:::i;:::-;10366:2;10345:15;-1:-1:-1;;10341:29:1;10326:45;;;;10373:2;10322:54;;9986:396;-1:-1:-1;;9986:396:1:o;10745:287::-;10874:3;10912:6;10906:13;10928:66;10987:6;10982:3;10975:4;10967:6;10963:17;10928:66;:::i;:::-;11010:16;;;;;10745:287;-1:-1:-1;;10745:287:1:o
Swarm Source
ipfs://f8885fc0d5162f43aa8e7f762b4a2dd3f89ea576a348098975005a28be98af7a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000819 | 469,359,047.8671 | $384,517.71 |
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.