Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 423 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Tokens | 21239044 | 42 hrs ago | IN | 0 ETH | 0.00191516 | ||||
Withdraw Tokens | 21238917 | 42 hrs ago | IN | 0 ETH | 0.00155696 | ||||
Withdraw Tokens | 21223966 | 3 days ago | IN | 0 ETH | 0.00307086 | ||||
Withdraw Tokens | 21213406 | 5 days ago | IN | 0 ETH | 0.00160723 | ||||
Withdraw Tokens | 21209430 | 5 days ago | IN | 0 ETH | 0.00191839 | ||||
Withdraw Tokens | 21206759 | 6 days ago | IN | 0 ETH | 0.00146908 | ||||
Withdraw Tokens | 21170964 | 11 days ago | IN | 0 ETH | 0.00468117 | ||||
Withdraw Tokens | 21167983 | 11 days ago | IN | 0 ETH | 0.00531031 | ||||
Withdraw Tokens | 21165103 | 12 days ago | IN | 0 ETH | 0.00281693 | ||||
Withdraw Tokens | 21165038 | 12 days ago | IN | 0 ETH | 0.00316931 | ||||
Withdraw Tokens | 21159457 | 12 days ago | IN | 0 ETH | 0.00455063 | ||||
Withdraw Tokens | 21152386 | 13 days ago | IN | 0 ETH | 0.0018749 | ||||
Withdraw Tokens | 21152383 | 13 days ago | IN | 0 ETH | 0.00190998 | ||||
Withdraw Tokens | 21144846 | 14 days ago | IN | 0 ETH | 0.00264687 | ||||
Withdraw Tokens | 21144752 | 14 days ago | IN | 0 ETH | 0.00224336 | ||||
Withdraw Tokens | 21127545 | 17 days ago | IN | 0 ETH | 0.00060566 | ||||
Withdraw Tokens | 21127545 | 17 days ago | IN | 0 ETH | 0.0022503 | ||||
Withdraw Tokens | 21093423 | 22 days ago | IN | 0 ETH | 0.00352587 | ||||
Withdraw Tokens | 21072718 | 24 days ago | IN | 0 ETH | 0.00265887 | ||||
Withdraw Tokens | 21045560 | 28 days ago | IN | 0 ETH | 0.00059461 | ||||
Withdraw Tokens | 21022720 | 31 days ago | IN | 0 ETH | 0.00214968 | ||||
Withdraw Tokens | 21009281 | 33 days ago | IN | 0 ETH | 0.00129536 | ||||
Withdraw Tokens | 20978458 | 38 days ago | IN | 0 ETH | 0.00232221 | ||||
Withdraw Tokens | 20975732 | 38 days ago | IN | 0 ETH | 0.00161588 | ||||
Withdraw Tokens | 20975728 | 38 days ago | IN | 0 ETH | 0.00197812 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x30eaF37b...d2d8dDfE0 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
StakingPoolV3Flat
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 pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // StakingPoolV3 // - Fixed total, reward per second // - Dynamic APY based on pool size // - Multiple deposit packages with separate locking time contract StakingPoolV3Flat is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; struct UserInfo { bool isAdded; address addr; uint256 totalAmount; uint256 nextDepositId; } struct DepositInfo { uint256 amount; uint256 lockFrom; uint256 lockTo; uint256 rewardDebt; uint256 rewardPending; } // The precision factor. Should be 1e12 to avoid overflow. uint256 private constant _PRECISION_FACTOR = 1e12; IERC20 public rewardToken; IERC20 public stakedToken; // Info of each user that stakes tokens (stakedToken) mapping(address => UserInfo) public userInfos; // User list address[] public userList; // depositInfos[user][depositId] = DepositInfo mapping(address => mapping(uint256 => DepositInfo)) public depositInfos; // Reward tokens created per second. uint256 public rewardPerSecond; // The time when Pool mining starts. uint256 public startTime; // The time when Pool mining ends. uint256 public endTime; // The time of the last pool update uint256 public lastRewardTime; // Accumulated token per share uint256 public accTokenPerShare; // Total staking tokens uint256 public totalStakingTokens; // Total reward tokens uint256 public totalRewardTokens; // Freeze start time uint256 public freezeStartTime; // Freeze end time uint256 public freezeEndTime; // The pool limit (0 if none) uint256 public poolLimitPerUser; // Minimum deposit amount uint256 public minDepositAmount; // The locking duration for each deposit package uint256 public lockDuration; // delegators[staker][delegate] = status mapping(address => mapping(address => bool)) public delegators; event EDeposit(address indexed user, uint256 amount, uint256 depositId); event EWithdraw(address indexed user, uint256 amount, uint256 depositId); event EAddRewardTokens(address indexed user, uint256 amount); constructor( IERC20 _stakedToken, IERC20 _rewardToken, uint256 _rewardPerSecond, uint256 _startTime, uint256 _endTime, uint256 _lockDuration ) { stakedToken = _stakedToken; rewardToken = _rewardToken; rewardPerSecond = _rewardPerSecond; startTime = _startTime; endTime = _endTime; lockDuration = _lockDuration; lastRewardTime = startTime; } /* * @notice isFrozen is true => user cannot call deposit, withdraw function */ function isFrozen() public view returns (bool) { return block.timestamp >= freezeStartTime && block.timestamp <= freezeEndTime; } /* * @notice View function to see pending reward on frontend. * @param _user: user address * @param _depositId: deposit id * @return Pending reward for a given user and depositId */ function pendingReward(address _user, uint256 _depositId) external view returns (uint256) { DepositInfo storage deposit = depositInfos[_user][_depositId]; if (block.timestamp > lastRewardTime && totalStakingTokens != 0) { uint256 multiplier = _getMultiplier(lastRewardTime, block.timestamp); uint256 tokenReward = multiplier * rewardPerSecond; uint256 adjustedTokenPerShare = accTokenPerShare + ((tokenReward * _PRECISION_FACTOR) / totalStakingTokens); return deposit.rewardPending + (((deposit.amount * adjustedTokenPerShare) / _PRECISION_FACTOR) - deposit.rewardDebt); } else { return deposit.rewardPending + (((deposit.amount * accTokenPerShare) / _PRECISION_FACTOR) - deposit.rewardDebt); } } /* * @notice Length of users */ function getUserListLength() external view returns (uint) { return userList.length; } /* * @notice View function to get users. * @param _offset: offset for paging * @param _limit: limit for paging * @return get users, next offset and total users */ function getUsersPaging( uint _offset, uint _limit ) external view returns (UserInfo[] memory users, uint nextOffset, uint total) { uint totalUsers = userList.length; if (_limit == 0) { _limit = 1; } if (_limit > totalUsers - _offset) { _limit = totalUsers - _offset; } UserInfo[] memory values = new UserInfo[](_limit); for (uint i = 0; i < _limit; i++) { values[i] = userInfos[userList[_offset + i]]; } return (values, _offset + _limit, totalUsers); } /* * @notice Deposit staked tokens and collect reward tokens (if any) * @param _amount: amount to withdraw (in rewardToken) */ function depositTokens(uint256 _amount) external nonReentrant { require(block.timestamp >= startTime && block.timestamp <= endTime, "Invalid time"); require(!isFrozen(), "Deposit is frozen"); require(_amount > 0, "Invalid amount"); address sender_ = _msgSender(); UserInfo storage user = userInfos[sender_]; require(_amount + user.totalAmount >= minDepositAmount, "User amount below minimum"); if (poolLimitPerUser > 0) { require(_amount + user.totalAmount <= poolLimitPerUser, "User amount above limit"); } _updatePool(); if (!user.isAdded) { user.isAdded = true; user.addr = sender_; userList.push(sender_); } DepositInfo storage deposit = depositInfos[sender_][user.nextDepositId++]; if (deposit.amount > 0) { deposit.rewardPending += ((deposit.amount * accTokenPerShare) / _PRECISION_FACTOR) - deposit.rewardDebt; } // Check real amount to avoid taxed token uint256 previousBalance_ = stakedToken.balanceOf(address(this)); stakedToken.safeTransferFrom(sender_, address(this), _amount); uint256 newBalance_ = stakedToken.balanceOf(address(this)); uint256 addedAmount_ = newBalance_ - previousBalance_; user.totalAmount += addedAmount_; totalStakingTokens += addedAmount_; deposit.amount += addedAmount_; deposit.lockFrom = block.timestamp; deposit.lockTo = block.timestamp + lockDuration; deposit.rewardDebt = (deposit.amount * accTokenPerShare) / _PRECISION_FACTOR; emit EDeposit(sender_, addedAmount_, user.nextDepositId - 1); } /* * @notice Withdraw staked tokens and collect reward tokens */ function withdrawTokens(address _staker, uint256 _amount, uint256 _depositId) external nonReentrant { require(!isFrozen(), "Withdraw is frozen"); require(_amount > 0, "Invalid amount"); address trigger_ = _msgSender(); if (trigger_ != _staker) { require(delegators[_staker][trigger_], "Invalid user"); } DepositInfo storage deposit = depositInfos[_staker][_depositId]; require(deposit.amount >= _amount, "Amount to withdraw too high"); require(block.timestamp >= deposit.lockTo, "Invalid time to withdraw"); _updatePool(); deposit.rewardPending += ((deposit.amount * accTokenPerShare) / _PRECISION_FACTOR) - deposit.rewardDebt; uint256 pending = deposit.rewardPending; if (pending > 0) { deposit.rewardPending = 0; _safeRewardTransfer(trigger_, pending); } UserInfo storage user = userInfos[_staker]; user.totalAmount -= _amount; totalStakingTokens -= _amount; deposit.amount -= _amount; stakedToken.safeTransfer(trigger_, _amount); deposit.rewardDebt = (deposit.amount * accTokenPerShare) / _PRECISION_FACTOR; emit EWithdraw(_staker, _amount, _depositId); } /* * @dev Set delegator */ function setDelegators(address _delegator, bool _status) external nonReentrant { delegators[_msgSender()][_delegator] = _status; } /* * @dev Update lock duration */ function setLockDuration(uint256 _duration) external onlyOwner { lockDuration = _duration; } /** * @notice It allows the admin to add reward tokens * @param _amount: amount of tokens * @dev This function is only callable by admin. */ function addRewardTokens(uint256 _amount) external onlyOwner { // Check real amount to avoid taxed token uint256 previousBalance_ = rewardToken.balanceOf(address(this)); rewardToken.safeTransferFrom(msg.sender, address(this), _amount); uint256 newBalance_ = rewardToken.balanceOf(address(this)); uint256 addedAmount_ = newBalance_ - previousBalance_; totalRewardTokens += addedAmount_; emit EAddRewardTokens(msg.sender, addedAmount_); } /** * @notice It allows the admin to correct reward tokens */ function correctRewardTokens(uint256 _amount) external onlyOwner { totalRewardTokens = _amount; } /** * @notice It allows the admin to recover wrong tokens sent to the contract * @param _tokenAddress: the address of the token to withdraw * @param _tokenAmount: the number of tokens to withdraw * @dev This function is only callable by admin. */ function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != address(stakedToken), "Cannot be staked token"); require(_tokenAddress != address(rewardToken), "Cannot be reward token"); IERC20(_tokenAddress).safeTransfer(msg.sender, _tokenAmount); } /* * @notice Stop rewards * @dev Only callable by owner */ function stopReward() external onlyOwner { endTime = block.timestamp; } /* * @notice Stop Freeze * @dev Only callable by owner */ function stopFreeze() external onlyOwner { freezeStartTime = 0; freezeEndTime = 0; } /* * @notice Update reward per second * @dev Only callable by owner. * @param _rewardPerSecond: the reward per second */ function setRewardPerSecond(uint256 _rewardPerSecond) external onlyOwner { _updatePool(); rewardPerSecond = _rewardPerSecond; } /** * @notice It allows the admin to update start and end time * @dev This function is only callable by owner. * @param _startTime: the new start time * @param _endTime: the new end time */ function setStartAndEndTimes(uint256 _startTime, uint256 _endTime) external onlyOwner { require(block.timestamp > endTime, "Pool has started"); require(_startTime < _endTime, "Invalid start and end block"); endTime = _endTime; if (_startTime > block.timestamp) { startTime = _startTime; // Set the lastRewardTime as the startTime lastRewardTime = startTime; } } /** * @notice It allows the admin to update freeze start and end time * @dev This function is only callable by owner. * @param _freezeStartTime: the new freeze start time * @param _freezeEndTime: the new freeze end time */ function setFreezaTimes(uint256 _freezeStartTime, uint256 _freezeEndTime) external onlyOwner { require(_freezeStartTime < _freezeEndTime, "Invalid start and end time"); require(block.timestamp < _freezeStartTime, "Invalid start and current"); freezeStartTime = _freezeStartTime; freezeEndTime = _freezeEndTime; } /* * @notice Update pool limit per user * @dev Only callable by owner. * @param _poolLimitPerUser: new pool limit per user */ function setPoolLimitPerUser(uint256 _poolLimitPerUser) external onlyOwner { poolLimitPerUser = _poolLimitPerUser; } /** * @notice Update minimum deposit amount * @dev This function is only callable by owner. * @param _minDepositAmount: the new minimum deposit amount */ function setMinDepositAmount(uint256 _minDepositAmount) external onlyOwner { minDepositAmount = _minDepositAmount; } /* * @notice Stop rewards * @dev Only callable by owner. Needs to be for emergency. */ function safeWithdrawReward(uint256 _amount) external onlyOwner { totalRewardTokens -= _amount; rewardToken.safeTransfer(msg.sender, _amount); } /** * @dev Emergency case withdraw tokens * @param _token token address * @param _to destination address * @param _amount token amount */ function emergencyWithdrawTokens(address _token, address _to, uint256 _amount) external onlyOwner { IERC20(_token).safeTransfer(_to, _amount); } /* * @notice Update reward variables of the given pool to be up-to-date. */ function _updatePool() private { if (block.timestamp <= lastRewardTime) { return; } if (totalStakingTokens == 0) { lastRewardTime = block.timestamp; return; } uint256 multiplier = _getMultiplier(lastRewardTime, block.timestamp); uint256 tokenReward = multiplier * rewardPerSecond; accTokenPerShare += (tokenReward * _PRECISION_FACTOR) / totalStakingTokens; lastRewardTime = block.timestamp; } /* * @notice Return reward multiplier over the given _from to _to time. * @param _from: time to start * @param _to: time to finish */ function _getMultiplier(uint256 _from, uint256 _to) private view returns (uint256) { if (_to <= endTime) { return _to - _from; } else if (_from >= endTime) { return 0; } else { return endTime - _from; } } /* * @notice Transfer reward tokens. * @param _to: address where tokens will transfer * @param _amount: amount of tokens */ function _safeRewardTransfer(address _to, uint256 _amount) private { uint256 rewardTokenBal = totalRewardTokens; if (_amount > rewardTokenBal) { totalRewardTokens -= rewardTokenBal; rewardToken.safeTransfer(_to, rewardTokenBal); } else { totalRewardTokens -= _amount; rewardToken.safeTransfer(_to, _amount); } } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make 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; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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"); (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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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":"contract IERC20","name":"_stakedToken","type":"address"},{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EAddRewardTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"EDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"EWithdraw","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"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"correctRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"delegators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositInfos","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockFrom","type":"uint256"},{"internalType":"uint256","name":"lockTo","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardPending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"getUsersPaging","outputs":[{"components":[{"internalType":"bool","name":"isAdded","type":"bool"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"nextDepositId","type":"uint256"}],"internalType":"struct StakingPoolV3Flat.UserInfo[]","name":"users","type":"tuple[]"},{"internalType":"uint256","name":"nextOffset","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTime","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":"minDepositAmount","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"},{"internalType":"uint256","name":"_depositId","type":"uint256"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLimitPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","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":"uint256","name":"_amount","type":"uint256"}],"name":"safeWithdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegator","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setDelegators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freezeStartTime","type":"uint256"},{"internalType":"uint256","name":"_freezeEndTime","type":"uint256"}],"name":"setFreezaTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDepositAmount","type":"uint256"}],"name":"setMinDepositAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"}],"name":"setPoolLimitPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setStartAndEndTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopFreeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRewardTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakingTokens","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":"userInfos","outputs":[{"internalType":"bool","name":"isAdded","type":"bool"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"nextDepositId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"userList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_depositId","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102535760003560e01c8063715018a6116101465780639f34a156116100c3578063cc7a262e11610087578063cc7a262e14610559578063dd49756e1461056c578063f2fde38b1461057f578063f430cf0d14610592578063f7c618c1146105a5578063fd6eafc6146105b857600080fd5b80639f34a156146104f35780639f4216e8146104fc578063a2526bd31461050f578063ae2754c91461053d578063becfed341461055057600080fd5b80638da5cb5b1161010a5780638da5cb5b146104915780638f10369a146104b65780638f662915146104bf5780639231cf74146104c85780639a6b97ca146104d157600080fd5b8063715018a61461045d578063752d4b521461046557806378e979251461047857806380dc0672146104815780638820690b1461048957600080fd5b80633f138d4b116101d457806358eb97001161019857806358eb970014610412578063645006ca1461042557806366da58151461042e57806366fe9f8a1461044157806368242c541461044a57600080fd5b80633f138d4b146102fd57806343b0215f146103105780634c1d1fde1461037c5780634eb665af1461038f578063566a07a0146103a257600080fd5b8063225b01641161021b578063225b0164146102a3578063296b5fb2146102b65780632a80cda3146102c95780633197cbb6146102dc57806333eeb147146102e557600080fd5b8063045544431461025857806305fe2fc1146102745780630e80f0b31461027c5780631b0875a6146102915780631cfd0afc1461029a575b600080fd5b61026160125481565b6040519081526020015b60405180910390f35b600554610261565b61028f61028a366004611d21565b6105cb565b005b610261600d5481565b610261600c5481565b61028f6102b1366004611d5c565b610617565b61028f6102c4366004611e09565b61067b565b61028f6102d7366004611e09565b6106aa565b61026160095481565b6102ed6106d9565b604051901515815260200161026b565b61028f61030b366004611d92565b6106f4565b61035261031e366004611cd5565b60046020526000908152604090208054600182015460029092015460ff8216926101009092046001600160a01b0316919084565b6040805194151585526001600160a01b03909316602085015291830152606082015260800161026b565b61028f61038a366004611dbb565b6107e4565b61028f61039d366004611e09565b610b2f565b6103ea6103b0366004611d92565b6006602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161026b565b61028f610420366004611e09565b610b5e565b61026160115481565b61028f61043c366004611e09565b610cfd565b61026160105481565b61028f610458366004611e09565b610d34565b61028f610d63565b61028f610473366004611e09565b610d99565b61026160085481565b61028f610df4565b61028f610e24565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161026b565b61026160075481565b610261600b5481565b610261600a5481565b6104e46104df366004611e39565b610e5a565b60405161026b93929190611e76565b610261600e5481565b61049e61050a366004611e09565b611000565b6102ed61051d366004611cef565b601360209081526000928352604080842090915290825290205460ff1681565b61028f61054b366004611e39565b61102a565b610261600f5481565b60035461049e906001600160a01b031681565b61028f61057a366004611e09565b6110ff565b61028f61058d366004611cd5565b6115df565b6102616105a0366004611d92565b611677565b60025461049e906001600160a01b031681565b61028f6105c6366004611e39565b611792565b6000546001600160a01b031633146105fe5760405162461bcd60e51b81526004016105f590611f25565b60405180910390fd5b6106126001600160a01b0384168383611865565b505050565b6002600154141561063a5760405162461bcd60e51b81526004016105f590611f5a565b600260019081553360009081526013602090815260408083206001600160a01b0396909616835294905292909220805460ff19169115159190911790558055565b6000546001600160a01b031633146106a55760405162461bcd60e51b81526004016105f590611f25565b601055565b6000546001600160a01b031633146106d45760405162461bcd60e51b81526004016105f590611f25565b601155565b6000600e5442101580156106ef5750600f544211155b905090565b6000546001600160a01b0316331461071e5760405162461bcd60e51b81526004016105f590611f25565b6003546001600160a01b03838116911614156107755760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b60448201526064016105f5565b6002546001600160a01b03838116911614156107cc5760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b60448201526064016105f5565b6107e06001600160a01b0383163383611865565b5050565b600260015414156108075760405162461bcd60e51b81526004016105f590611f5a565b60026001556108146106d9565b156108565760405162461bcd60e51b81526020600482015260126024820152712bb4ba34323930bb9034b990333937bd32b760711b60448201526064016105f5565b600082116108975760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016105f5565b336001600160a01b038416811461090c576001600160a01b0380851660009081526013602090815260408083209385168352929052205460ff1661090c5760405162461bcd60e51b815260206004820152600c60248201526b24b73b30b634b2103ab9b2b960a11b60448201526064016105f5565b6001600160a01b0384166000908152600660209081526040808320858452909152902080548411156109805760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f2068696768000000000060448201526064016105f5565b80600201544210156109d45760405162461bcd60e51b815260206004820152601860248201527f496e76616c69642074696d6520746f207769746864726177000000000000000060448201526064016105f5565b6109dc6118c8565b6003810154600b54825464e8d4a51000916109f691611fc9565b610a009190611fa9565b610a0a9190611fe8565b816004016000828254610a1d9190611f91565b909155505060048101548015610a3e5760006004830155610a3e838261193d565b6001600160a01b038616600090815260046020526040812060018101805491928892610a6b908490611fe8565b9250508190555085600c6000828254610a849190611fe8565b9091555050825486908490600090610a9d908490611fe8565b9091555050600354610ab9906001600160a01b03168588611865565b600b54835464e8d4a5100091610ace91611fc9565b610ad89190611fa9565b600384015560408051878152602081018790526001600160a01b038916917f1b8561452fa74e924595acdd3ac89d0ff57594a6d1efbd052b58e68dfa9c85d491015b60405180910390a25050600180555050505050565b6000546001600160a01b03163314610b595760405162461bcd60e51b81526004016105f590611f25565b601255565b6000546001600160a01b03163314610b885760405162461bcd60e51b81526004016105f590611f25565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610bcc57600080fd5b505afa158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c049190611e21565b600254909150610c1f906001600160a01b03163330856119a4565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610c6357600080fd5b505afa158015610c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9b9190611e21565b90506000610ca98383611fe8565b905080600d6000828254610cbd9190611f91565b909155505060405181815233907f37414b6644573d66661110cff1d33d8900af93bd5bbcb26a8f96a4f0d145cbea9060200160405180910390a250505050565b6000546001600160a01b03163314610d275760405162461bcd60e51b81526004016105f590611f25565b610d2f6118c8565b600755565b6000546001600160a01b03163314610d5e5760405162461bcd60e51b81526004016105f590611f25565b600d55565b6000546001600160a01b03163314610d8d5760405162461bcd60e51b81526004016105f590611f25565b610d9760006119e2565b565b6000546001600160a01b03163314610dc35760405162461bcd60e51b81526004016105f590611f25565b80600d6000828254610dd59190611fe8565b9091555050600254610df1906001600160a01b03163383611865565b50565b6000546001600160a01b03163314610e1e5760405162461bcd60e51b81526004016105f590611f25565b42600955565b6000546001600160a01b03163314610e4e5760405162461bcd60e51b81526004016105f590611f25565b6000600e819055600f55565b600554606090600090819084610e6f57600194505b610e798682611fe8565b851115610e8d57610e8a8682611fe8565b94505b60008567ffffffffffffffff811115610eb657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f0857816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610ed45790505b50905060005b86811015610fe457600460006005610f26848c611f91565b81548110610f4457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0390811684528382019490945260409283019091208251608081018452815460ff8116151582526101009004909416918401919091526001810154918301919091526002015460608201528251839083908110610fc657634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610fdc9061202b565b915050610f0e565b5080610ff08789611f91565b8394509450945050509250925092565b6005818154811061101057600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146110545760405162461bcd60e51b81526004016105f590611f25565b60095442116110985760405162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b60448201526064016105f5565b8082106110e75760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420737461727420616e6420656e6420626c6f636b000000000060448201526064016105f5565b6009819055428211156107e057506008819055600a55565b600260015414156111225760405162461bcd60e51b81526004016105f590611f5a565b6002600155600854421080159061113b57506009544211155b6111765760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016105f5565b61117e6106d9565b156111bf5760405162461bcd60e51b81526020600482015260116024820152702232b837b9b4ba1034b990333937bd32b760791b60448201526064016105f5565b600081116112005760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016105f5565b33600081815260046020526040902060115460018201546112219085611f91565b101561126f5760405162461bcd60e51b815260206004820152601960248201527f5573657220616d6f756e742062656c6f77206d696e696d756d0000000000000060448201526064016105f5565b601054156112d75760105460018201546112899085611f91565b11156112d75760405162461bcd60e51b815260206004820152601760248201527f5573657220616d6f756e742061626f7665206c696d697400000000000000000060448201526064016105f5565b6112df6118c8565b805460ff166113505780546001600160a01b03831661010081026001600160a81b031990921691909117600190811783556005805491820181556000527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b03191690911790555b6001600160a01b038216600090815260066020526040812060028301805483918261137a8361202b565b90915550815260208101919091526040016000208054909150156113df576003810154600b54825464e8d4a51000916113b291611fc9565b6113bc9190611fa9565b6113c69190611fe8565b8160040160008282546113d99190611f91565b90915550505b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561142357600080fd5b505afa158015611437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145b9190611e21565b600354909150611476906001600160a01b03168530886119a4565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156114ba57600080fd5b505afa1580156114ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f29190611e21565b905060006115008383611fe8565b9050808560010160008282546115169190611f91565b9250508190555080600c600082825461152f9190611f91565b9091555050835481908590600090611548908490611f91565b9091555050426001850181905560125461156191611f91565b6002850155600b54845464e8d4a510009161157b91611fc9565b6115859190611fa9565b8460030181905550856001600160a01b03167fcced3dbb2e04cb879dc590183fec76c1d8dcfb4de954d150b93f6a2036564da782600188600201546115ca9190611fe8565b60408051928352602083019190915201610b1a565b6000546001600160a01b031633146116095760405162461bcd60e51b81526004016105f590611f25565b6001600160a01b03811661166e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f5565b610df1816119e2565b6001600160a01b03821660009081526006602090815260408083208484529091528120600a54421180156116ac5750600c5415155b1561174b5760006116bf600a5442611a32565b90506000600754826116d19190611fc9565b90506000600c5464e8d4a51000836116e99190611fc9565b6116f39190611fa9565b600b546117009190611f91565b9050836003015464e8d4a5100082866000015461171d9190611fc9565b6117279190611fa9565b6117319190611fe8565b84600401546117409190611f91565b94505050505061178c565b6003810154600b54825464e8d4a510009161176591611fc9565b61176f9190611fa9565b6117799190611fe8565b81600401546117889190611f91565b9150505b92915050565b6000546001600160a01b031633146117bc5760405162461bcd60e51b81526004016105f590611f25565b80821061180b5760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420737461727420616e6420656e642074696d6500000000000060448201526064016105f5565b81421061185a5760405162461bcd60e51b815260206004820152601960248201527f496e76616c696420737461727420616e642063757272656e740000000000000060448201526064016105f5565b600e91909155600f55565b6040516001600160a01b03831660248201526044810182905261061290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a6d565b600a5442116118d357565b600c546118e05742600a55565b60006118ee600a5442611a32565b90506000600754826119009190611fc9565b600c5490915061191564e8d4a5100083611fc9565b61191f9190611fa9565b600b60008282546119309190611f91565b909155505042600a555050565b600d54808211156119765780600d600082825461195a9190611fe8565b9091555050600254610612906001600160a01b03168483611865565b81600d60008282546119889190611fe8565b9091555050600254610612906001600160a01b03168484611865565b6040516001600160a01b03808516602483015283166044820152606481018290526119dc9085906323b872dd60e01b90608401611891565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006009548211611a4e57611a478383611fe8565b905061178c565b6009548310611a5f5750600061178c565b82600954611a479190611fe8565b6000611ac2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b3f9092919063ffffffff16565b8051909150156106125780806020019051810190611ae09190611ded565b6106125760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105f5565b6060611b4e8484600085611b58565b90505b9392505050565b606082471015611bb95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105f5565b843b611c075760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105f5565b600080866001600160a01b03168587604051611c239190611e5a565b60006040518083038185875af1925050503d8060008114611c60576040519150601f19603f3d011682016040523d82523d6000602084013e611c65565b606091505b5091509150611c75828286611c80565b979650505050505050565b60608315611c8f575081611b51565b825115611c9f5782518084602001fd5b8160405162461bcd60e51b81526004016105f59190611ef2565b80356001600160a01b0381168114611cd057600080fd5b919050565b600060208284031215611ce6578081fd5b611b5182611cb9565b60008060408385031215611d01578081fd5b611d0a83611cb9565b9150611d1860208401611cb9565b90509250929050565b600080600060608486031215611d35578081fd5b611d3e84611cb9565b9250611d4c60208501611cb9565b9150604084013590509250925092565b60008060408385031215611d6e578182fd5b611d7783611cb9565b91506020830135611d878161205c565b809150509250929050565b60008060408385031215611da4578182fd5b611dad83611cb9565b946020939093013593505050565b600080600060608486031215611dcf578283fd5b611dd884611cb9565b95602085013595506040909401359392505050565b600060208284031215611dfe578081fd5b8151611b518161205c565b600060208284031215611e1a578081fd5b5035919050565b600060208284031215611e32578081fd5b5051919050565b60008060408385031215611e4b578182fd5b50508035926020909101359150565b60008251611e6c818460208701611fff565b9190910192915050565b6060808252845182820181905260009190608090818501906020808a01865b83811015611ed7578151805115158652838101516001600160a01b03168487015260408082015190870152870151878601529385019390820190600101611e95565b50508601979097526040909401949094525090949350505050565b6020815260008251806020840152611f11816040850160208701611fff565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115611fa457611fa4612046565b500190565b600082611fc457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611fe357611fe3612046565b500290565b600082821015611ffa57611ffa612046565b500390565b60005b8381101561201a578181015183820152602001612002565b838111156119dc5750506000910152565b600060001982141561203f5761203f612046565b5060010190565b634e487b7160e01b600052601160045260246000fd5b8015158114610df157600080fdfea2646970667358221220b6662a315a88aba8ebf102a8e2ef6d1bcf8d95787a771a90e52904189e715bfb64736f6c63430008040033
Loading...
Loading
Loading...
Loading
OVERVIEW
Ring AI Staking Locked 90D PoolMultichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.030854 | 626,708.5378 | $19,336.18 |
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.