Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 541 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 21408725 | 9 days ago | IN | 0 ETH | 0.00207872 | ||||
Claim | 21306287 | 23 days ago | IN | 0 ETH | 0.00179174 | ||||
Unstake | 21266554 | 29 days ago | IN | 0 ETH | 0.0017043 | ||||
Claim | 21266554 | 29 days ago | IN | 0 ETH | 0.00353546 | ||||
Claim | 21199938 | 38 days ago | IN | 0 ETH | 0.00226128 | ||||
Claim | 21195342 | 39 days ago | IN | 0 ETH | 0.00303539 | ||||
Claim | 21097563 | 52 days ago | IN | 0 ETH | 0.00094503 | ||||
Claim | 21007661 | 65 days ago | IN | 0 ETH | 0.00449992 | ||||
Unstake | 20972908 | 70 days ago | IN | 0 ETH | 0.0025817 | ||||
Claim | 20972899 | 70 days ago | IN | 0 ETH | 0.00600412 | ||||
Claim | 20913506 | 78 days ago | IN | 0 ETH | 0.00718926 | ||||
Claim | 20907946 | 79 days ago | IN | 0 ETH | 0.00255755 | ||||
Claim | 20886517 | 82 days ago | IN | 0 ETH | 0.0015747 | ||||
Claim | 20821885 | 91 days ago | IN | 0 ETH | 0.00442041 | ||||
Unstake | 20819552 | 91 days ago | IN | 0 ETH | 0.00424889 | ||||
Unstake | 20757345 | 100 days ago | IN | 0 ETH | 0.00079764 | ||||
Unstake | 20745403 | 101 days ago | IN | 0 ETH | 0.00040807 | ||||
Claim | 20733634 | 103 days ago | IN | 0 ETH | 0.00048445 | ||||
Unstake | 20696401 | 108 days ago | IN | 0 ETH | 0.0003314 | ||||
Unstake | 20653247 | 114 days ago | IN | 0 ETH | 0.0000816 | ||||
Claim | 20653240 | 114 days ago | IN | 0 ETH | 0.00019121 | ||||
Unstake | 20617735 | 119 days ago | IN | 0 ETH | 0.00031242 | ||||
Claim | 20617729 | 119 days ago | IN | 0 ETH | 0.00040469 | ||||
Unstake | 20601958 | 121 days ago | IN | 0 ETH | 0.00025421 | ||||
Claim | 20601928 | 121 days ago | IN | 0 ETH | 0.00058755 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RewardTracker
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "../Interfaces/IRewardDistributor.sol"; import "../Interfaces/IRewardTracker.sol"; import "./Governable.sol"; contract RewardTracker is IERC20, ReentrancyGuard, IRewardTracker, Governable { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public constant BASIS_POINTS_DIVISOR = 10000; uint256 public constant PRECISION = 1e30; uint8 public constant decimals = 18; bool public isInitialized; string public name; string public symbol; address public distributor; mapping (address => bool) public isDepositToken; mapping (address => mapping (address => uint256)) public override depositBalances; uint256 public override totalSupply; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowances; mapping (uint256 => uint256) public cumulativeRewardPerToken; mapping (address => uint256) public override stakedAmounts; mapping (address => mapping(uint256 => uint256)) public claimableRewards; mapping (address => mapping(uint256 => uint256)) public previousCumulatedRewardPerToken; mapping (address => mapping(uint256 => uint256)) public cumulativeRewards; mapping (address => mapping(uint256 => uint256)) public averageStakedAmounts; mapping(address => mapping(address => uint256)) public lastStakeTime; address public treasury; uint256 public feeRate1; uint256 public feeRate2; uint256 public feeRate3; uint256 public timeThreshold1; uint256 public timeThreshold2; uint256 public timeThreshold3; uint256 public constant MAX_FEE_RATE = 2500;//25% bool public inPrivateTransferMode; bool public inPrivateStakingMode; bool public inPrivateClaimingMode; mapping (address => bool) public isHandler; event Claim(address receiver,address _token, uint256 amount); constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } function initialize( address[] memory _depositTokens, address _distributor ) external onlyGov { require(!isInitialized, "RewardTracker: already initialized"); isInitialized = true; for (uint256 i = 0; i < _depositTokens.length; i++) { address depositToken = _depositTokens[i]; isDepositToken[depositToken] = true; } distributor = _distributor; } function setDepositToken(address _depositToken, bool _isDepositToken) external onlyGov { isDepositToken[_depositToken] = _isDepositToken; } function setTreasury(address _treasury) external onlyGov { treasury = _treasury; } function setInPrivateTransferMode(bool _inPrivateTransferMode) external onlyGov { inPrivateTransferMode = _inPrivateTransferMode; } function setInPrivateStakingMode(bool _inPrivateStakingMode) external onlyGov { inPrivateStakingMode = _inPrivateStakingMode; } function setInPrivateClaimingMode(bool _inPrivateClaimingMode) external onlyGov { inPrivateClaimingMode = _inPrivateClaimingMode; } function setHandler(address _handler, bool _isActive) external onlyGov { isHandler[_handler] = _isActive; } function setFeeRatesAndThresholds(uint256 _feeRate1, uint256 _feeRate2, uint256 _feeRate3, uint256 _timeThreshold1, uint256 _timeThreshold2, uint256 _timeThreshold3) external onlyGov { require(_feeRate1 <= MAX_FEE_RATE, "feeRate1 exceeds maximum limit"); require(_feeRate2 <= MAX_FEE_RATE, "feeRate2 exceeds maximum limit"); require(_feeRate3 <= MAX_FEE_RATE, "feeRate3 exceeds maximum limit"); feeRate1 = _feeRate1; feeRate2 = _feeRate2; feeRate3 = _feeRate3; timeThreshold1 = _timeThreshold1; timeThreshold2 = _timeThreshold2; timeThreshold3 = _timeThreshold3; } // to help users who accidentally send their tokens to this contract function withdrawToken(address _token, address _account, uint256 _amount) external onlyGov { require(!isDepositToken[_token], "RewardTracker: _token cannot be a depositToken"); IERC20(_token).safeTransfer(_account, _amount); } function balanceOf(address _account) external view override returns (uint256) { return balances[_account]; } function stake(address _depositToken, uint256 _amount) external override nonReentrant { if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); } _stake(msg.sender, msg.sender, _depositToken, _amount); } function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external override nonReentrant { _validateHandler(); _stake(_fundingAccount, _account, _depositToken, _amount); } function unstake(address _depositToken, uint256 _amount) external override nonReentrant { if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); } _unstake(msg.sender, _depositToken, _amount, msg.sender); } function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external override nonReentrant { _validateHandler(); _unstake(_account, _depositToken, _amount, _receiver); } function transfer(address _recipient, uint256 _amount) external override returns (bool) { _transfer(msg.sender, _recipient, _amount); return true; } function allowance(address _owner, address _spender) external view override returns (uint256) { return allowances[_owner][_spender]; } function approve(address _spender, uint256 _amount) external override returns (bool) { _approve(msg.sender, _spender, _amount); return true; } function transferFrom(address _sender, address _recipient, uint256 _amount) external override returns (bool) { if (isHandler[msg.sender]) { _transfer(_sender, _recipient, _amount); return true; } uint256 nextAllowance = allowances[_sender][msg.sender].sub(_amount, "RewardTracker: transfer amount exceeds allowance"); _approve(_sender, msg.sender, nextAllowance); _transfer(_sender, _recipient, _amount); return true; } function updateRewards() external override nonReentrant { _updateRewards(address(0)); } function claim(address _receiver) external override nonReentrant returns (uint256[] memory) { if (inPrivateClaimingMode) { revert("RewardTracker: action not enabled"); } return _claim(msg.sender, _receiver); } function claimForAccount(address _account, address _receiver) external override nonReentrant returns (uint256[] memory) { _validateHandler(); return _claim(_account, _receiver); } function claimable(address _account) public override view returns (uint256[] memory) { uint256 stakedAmount = stakedAmounts[_account]; IRewardDistributor.RewardInfo[] memory rewards = IRewardDistributor(distributor).viewRewards(); uint256 supply = totalSupply; uint256[] memory pendingRewardsArray = IRewardDistributor(distributor).pendingRewards(); uint256[] memory claimableRewardsArray = new uint256[](rewards.length); address userAccount = _account; for (uint256 i = 0; i < rewards.length; i++) { if(stakedAmount == 0 ){ claimableRewardsArray[i] = claimableRewards[userAccount][i]; continue; } uint256 pendingRewards = pendingRewardsArray[i].mul(PRECISION); uint256 nextCumulativeRewardPerToken = cumulativeRewardPerToken[i].add(pendingRewards.div(supply)); claimableRewardsArray[i] = claimableRewards[userAccount][i].add( stakedAmount.mul(nextCumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[userAccount][i])).div(PRECISION) ); } return claimableRewardsArray; } function rewardToken() public view returns (IRewardDistributor.RewardInfo[] memory) { return IRewardDistributor(distributor).viewRewards(); } function _claim(address _account, address _receiver) private returns (uint256[] memory) { _updateRewards(_account); IRewardDistributor.RewardInfo[] memory rewards = IRewardDistributor(distributor).viewRewards(); uint256[] memory tokenAmounts = new uint256[](rewards.length); for (uint256 i = 0; i < rewards.length; i++) { uint256 tokenAmount = claimableRewards[_account][i]; claimableRewards[_account][i] = 0; if (tokenAmount > 0) { rewards[i].token.safeTransfer(_receiver, tokenAmount); tokenAmounts[i] = tokenAmount; emit Claim(_account, address(rewards[i].token), tokenAmount); } } return tokenAmounts; } function _mint(address _account, uint256 _amount) internal { require(_account != address(0), "RewardTracker: mint to the zero address"); totalSupply = totalSupply.add(_amount); balances[_account] = balances[_account].add(_amount); emit Transfer(address(0), _account, _amount); } function _burn(address _account, uint256 _amount) internal { require(_account != address(0), "RewardTracker: burn from the zero address"); balances[_account] = balances[_account].sub(_amount, "RewardTracker: burn amount exceeds balance"); totalSupply = totalSupply.sub(_amount); emit Transfer(_account, address(0), _amount); } function _transfer(address _sender, address _recipient, uint256 _amount) private { require(_sender != address(0), "RewardTracker: transfer from the zero address"); require(_recipient != address(0), "RewardTracker: transfer to the zero address"); if (inPrivateTransferMode) { _validateHandler(); } balances[_sender] = balances[_sender].sub(_amount, "RewardTracker: transfer amount exceeds balance"); balances[_recipient] = balances[_recipient].add(_amount); emit Transfer(_sender, _recipient,_amount); } function _approve(address _owner, address _spender, uint256 _amount) private { require(_owner != address(0), "RewardTracker: approve from the zero address"); require(_spender != address(0), "RewardTracker: approve to the zero address"); allowances[_owner][_spender] = _amount; emit Approval(_owner, _spender, _amount); } function _validateHandler() private view { require(isHandler[msg.sender], "RewardTracker: forbidden"); } function _stake(address _fundingAccount, address _account, address _depositToken, uint256 _amount) private { require(_amount > 0, "RewardTracker: invalid _amount"); require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken"); IERC20(_depositToken).safeTransferFrom(_fundingAccount, address(this), _amount); _updateRewards(_account); stakedAmounts[_account] = stakedAmounts[_account].add(_amount); depositBalances[_account][_depositToken] = depositBalances[_account][_depositToken].add(_amount); lastStakeTime[_account][_depositToken] = block.timestamp; _mint(_account, _amount); } function _unstake(address _account, address _depositToken, uint256 _amount, address _receiver) private { require(_amount > 0, "RewardTracker: invalid _amount"); require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken"); _updateRewards(_account); uint256 stakedAmount = stakedAmounts[_account]; require(stakedAmounts[_account] >= _amount, "RewardTracker: _amount exceeds stakedAmount"); stakedAmounts[_account] = stakedAmount.sub(_amount); uint256 depositBalance = depositBalances[_account][_depositToken]; require(depositBalance >= _amount, "RewardTracker: _amount exceeds depositBalance"); depositBalances[_account][_depositToken] = depositBalance.sub(_amount); uint256 fee = getFee(_account,_depositToken,_amount); uint256 amountAfterFee = _amount.sub(fee); _burn(_account, _amount); if (fee > 0) { IERC20(_depositToken).safeTransfer(treasury, fee); } IERC20(_depositToken).safeTransfer(_receiver, amountAfterFee); } function getFee(address _account,address _depositToken,uint256 _amount) public view returns(uint256){ uint256 fee = 0; uint256 timeStaked = block.timestamp.sub(lastStakeTime[_account][_depositToken]); if (timeStaked <= timeThreshold1) { fee = _amount.mul(feeRate1).div(10000); } else if (timeStaked <= timeThreshold2) { fee = _amount.mul(feeRate2).div(10000); } else if (timeStaked <= timeThreshold3) { fee = _amount.mul(feeRate3).div(10000); } return fee; } function _updateRewards(address _account) private { uint256[] memory blockRewards = IRewardDistributor(distributor).distribute(); address userAccount = _account; for (uint256 i = 0; i < blockRewards.length; i++) { uint256 blockReward = blockRewards[i]; uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken[i]; uint256 supply = totalSupply; if (supply > 0 && blockReward > 0) { _cumulativeRewardPerToken = _cumulativeRewardPerToken.add(blockReward.mul(PRECISION).div(supply)); cumulativeRewardPerToken[i] = _cumulativeRewardPerToken; } // cumulativeRewardPerToken can only increase // so if cumulativeRewardPerToken is zero, it means there are no rewards yet if (_cumulativeRewardPerToken == 0) { continue; } if (_account != address(0)) { uint256 stakedAmount = stakedAmounts[userAccount]; uint256 accountReward = stakedAmount.mul(_cumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[userAccount][i])).div(PRECISION); uint256 _claimableReward = claimableRewards[userAccount][i].add(accountReward); claimableRewards[userAccount][i] = _claimableReward; previousCumulatedRewardPerToken[userAccount][i] = _cumulativeRewardPerToken; if (_claimableReward > 0 && stakedAmounts[userAccount] > 0) { uint256 nextCumulativeReward = cumulativeRewards[userAccount][i].add(accountReward); uint256 _averageStakedAmountsI = averageStakedAmounts[userAccount][i]; uint256 _cumulativeRewardsI = cumulativeRewards[userAccount][i]; averageStakedAmounts[userAccount][i] = _averageStakedAmountsI.mul(_cumulativeRewardsI).div(nextCumulativeReward) .add(stakedAmount.mul(accountReward).div(nextCumulativeReward)); cumulativeRewards[userAccount][i] = nextCumulativeReward; } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IRewardDistributor { struct RewardInfo { IERC20 token; uint256 lastDistributionTime; } function viewRewards() external view returns (RewardInfo[] memory); function pendingRewards() external view returns (uint256[] memory); function distribute() external returns ( uint256[] memory ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IRewardTracker { function depositBalances(address _account, address _depositToken) external view returns (uint256); function stakedAmounts(address _account) external view returns (uint256); function updateRewards() external; function stake(address _depositToken, uint256 _amount) external; function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external; function unstake(address _depositToken, uint256 _amount) external; function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external; function claim(address _receiver) external returns (uint256[] memory); function claimForAccount(address _account, address _receiver) external returns (uint256[] memory); function claimable(address _account) external view returns (uint256[] memory); function averageStakedAmounts(address _account,uint256 _index) external view returns (uint256); function cumulativeRewards(address _account,uint256 _index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; contract Governable { address public gov; constructor() { gov = msg.sender; } modifier onlyGov() { require(msg.sender == gov, "Governable: forbidden"); _; } function setGov(address _gov) external onlyGov { gov = _gov; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"averageStakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimForAccount","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimableRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"cumulativeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"depositBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRate1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRate2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRate3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateClaimingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateStakingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateTransferMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositTokens","type":"address[]"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"lastStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"previousCumulatedRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"lastDistributionTime","type":"uint256"}],"internalType":"struct IRewardDistributor.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"bool","name":"_isDepositToken","type":"bool"}],"name":"setDepositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeRate1","type":"uint256"},{"internalType":"uint256","name":"_feeRate2","type":"uint256"},{"internalType":"uint256","name":"_feeRate3","type":"uint256"},{"internalType":"uint256","name":"_timeThreshold1","type":"uint256"},{"internalType":"uint256","name":"_timeThreshold2","type":"uint256"},{"internalType":"uint256","name":"_timeThreshold3","type":"uint256"}],"name":"setFeeRatesAndThresholds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateClaimingMode","type":"bool"}],"name":"setInPrivateClaimingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateStakingMode","type":"bool"}],"name":"setInPrivateStakingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateTransferMode","type":"bool"}],"name":"setInPrivateTransferMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundingAccount","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeThreshold1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeThreshold2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeThreshold3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200319238038062003192833981016040819052620000349162000136565b6001600081905580546001600160a01b0319163317905560026200005983826200022f565b5060036200006882826200022f565b505050620002fb565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200009957600080fd5b81516001600160401b0380821115620000b657620000b662000071565b604051601f8301601f19908116603f01168101908282118183101715620000e157620000e162000071565b81604052838152602092508683858801011115620000fe57600080fd5b600091505b8382101562000122578582018301518183018401529082019062000103565b600093810190920192909252949350505050565b600080604083850312156200014a57600080fd5b82516001600160401b03808211156200016257600080fd5b620001708683870162000087565b935060208501519150808211156200018757600080fd5b50620001968582860162000087565b9150509250929050565b600181811c90821680620001b557607f821691505b602082108103620001d657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022a57600081815260208120601f850160051c81016020861015620002055750805b601f850160051c820191505b81811015620002265782815560010162000211565b5050505b505050565b81516001600160401b038111156200024b576200024b62000071565b62000263816200025c8454620001a0565b84620001dc565b602080601f8311600181146200029b5760008415620002825750858301515b600019600386901b1c1916600185901b17855562000226565b600085815260208120601f198616915b82811015620002cc57888601518255948401946001909101908401620002ab565b5085821015620002eb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612e87806200030b6000396000f3fe608060405234801561001057600080fd5b50600436106103835760003560e01c80634b6d6dc2116101de578063adc9772e1161010f578063dd62ed3e116100ad578063f5d9d63e1161007c578063f5d9d63e14610850578063f76033d31461087b578063f7c618c11461088e578063f9faa387146108a357600080fd5b8063dd62ed3e146107e4578063dfbaefb11461081d578063e44b75581461082a578063f0f442601461083d57600080fd5b8063bfe10928116100e9578063bfe1092814610799578063c2a672e0146107ac578063c5fa2730146107bf578063cfad57a2146107d157600080fd5b8063adc9772e14610750578063b89e45b314610763578063be3945e41461078657600080fd5b8063790b5a6c1161017c57806395d89b411161015657806395d89b411461070e5780639cb7de4b14610716578063a9059cbb14610729578063aaf5eb681461073c57600080fd5b8063790b5a6c146106e95780637be339cb146106fc57806392f6576e1461070557600080fd5b80635a47a1a7116101b85780635a47a1a71461067a57806361c51b161461068d57806361d027b3146106ad57806370a08231146106c057600080fd5b80634b6d6dc21461063d57806350da9e0a1461064657806355b6ed5c1461064f57600080fd5b806323b872dd116102b85780633cd7f70011610256578063462d0b2e11610230578063462d0b2e146105d357806346ea87af146105e6578063476c2f8a14610609578063491922af1461063457600080fd5b80633cd7f700146105a55780633e158b0c146105b8578063402914f5146105c057600080fd5b80632d73c3cb116102925780632d73c3cb14610521578063313ce5671461054c578063338111e714610566578063392e53cd1461059157600080fd5b806323b872dd146104db57806327e235e3146104ee5780632acc6f3e1461050e57600080fd5b8063126082cf1161032557806318160ddd116102ff57806318160ddd146104815780631d30d5bc1461048a5780631e83409a1461049d5780631f784658146104b057600080fd5b8063126082cf1461042d57806312d43a511461043657806313e82e7a1461046157600080fd5b8063095ea7b311610361578063095ea7b3146103ce578063098bf59d146103f15780630b17e2c61461040457806310c1c1031461040d57600080fd5b806301e33667146103885780630288c4691461039d57806306fdde03146103b9575b600080fd5b61039b610396366004612670565b6108ce565b005b6103a660145481565b6040519081526020015b60405180910390f35b6103c161099a565b6040516103b091906126d5565b6103e16103dc366004612708565b610a28565b60405190151581526020016103b0565b61039b6103ff366004612734565b610a3f565b6103a660175481565b6103a661041b366004612787565b600b6020526000908152604090205481565b6103a661271081565b600154610449906001600160a01b031681565b6040516001600160a01b0390911681526020016103b0565b61047461046f3660046127a4565b610a6b565b6040516103b091906127dd565b6103a660075481565b61039b61049836600461282f565b610a93565b6104746104ab366004612787565b610ad7565b6103a66104be3660046127a4565b601060209081526000928352604080842090915290825290205481565b6103e16104e9366004612670565b610b25565b6103a66104fc366004612787565b60086020526000908152604090205481565b61039b61051c36600461284c565b610bbf565b6103a661052f366004612708565b600d60209081526000928352604080842090915290825290205481565b610554601281565b60405160ff90911681526020016103b0565b6103a6610574366004612708565b600c60209081526000928352604080842090915290825290205481565b6001546103e190600160a01b900460ff1681565b61039b6105b336600461282f565b610cfc565b61039b610d42565b6104746105ce366004612787565b610d60565b61039b6105e1366004612923565b61103a565b6103e16105f4366004612787565b60196020526000908152604090205460ff1681565b6103a6610617366004612708565b600f60209081526000928352604080842090915290825290205481565b6103a660135481565b6103a660155481565b6103a660165481565b6103a661065d3660046127a4565b600960209081526000928352604080842090915290825290205481565b61039b61068836600461282f565b611161565b6103a661069b3660046129d4565b600a6020526000908152604090205481565b601154610449906001600160a01b031681565b6103a66106ce366004612787565b6001600160a01b031660009081526008602052604090205490565b61039b6106f73660046129ed565b61119e565b6103a660125481565b6103a66109c481565b6103c16111ba565b61039b610724366004612a3e565b6111c7565b6103e1610737366004612708565b61121c565b6103a66c0c9f2c9cd04674edea4000000081565b61039b61075e366004612708565b611229565b6103e1610771366004612787565b60056020526000908152604090205460ff1681565b6103a6610794366004612670565b611273565b600454610449906001600160a01b031681565b61039b6107ba366004612708565b61132b565b6018546103e190610100900460ff1681565b61039b6107df366004612787565b611367565b6103a66107f23660046127a4565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6018546103e19060ff1681565b61039b610838366004612a3e565b6113b3565b61039b61084b366004612787565b611408565b6103a661085e3660046127a4565b600660209081526000928352604080842090915290825290205481565b6018546103e19062010000900460ff1681565b610896611454565b6040516103b09190612a6c565b6103a66108b1366004612708565b600e60209081526000928352604080842090915290825290205481565b6001546001600160a01b031633146109015760405162461bcd60e51b81526004016108f890612ac4565b60405180910390fd5b6001600160a01b03831660009081526005602052604090205460ff16156109815760405162461bcd60e51b815260206004820152602e60248201527f526577617264547261636b65723a205f746f6b656e2063616e6e6f742062652060448201526d30903232b837b9b4ba2a37b5b2b760911b60648201526084016108f8565b6109956001600160a01b03841683836114d6565b505050565b600280546109a790612af3565b80601f01602080910402602001604051908101604052809291908181526020018280546109d390612af3565b8015610a205780601f106109f557610100808354040283529160200191610a20565b820191906000526020600020905b815481529060010190602001808311610a0357829003601f168201915b505050505081565b6000610a35338484611539565b5060015b92915050565b610a4761166f565b610a4f6116c8565b610a5b84848484611727565b610a656001600055565b50505050565b6060610a7561166f565b610a7d6116c8565b610a87838361196f565b9050610a396001600055565b6001546001600160a01b03163314610abd5760405162461bcd60e51b81526004016108f890612ac4565b601880549115156101000261ff0019909216919091179055565b6060610ae161166f565b60185462010000900460ff1615610b0a5760405162461bcd60e51b81526004016108f890612b2d565b610b14338361196f565b9050610b206001600055565b919050565b3360009081526019602052604081205460ff1615610b5057610b48848484611b56565b506001610bb8565b6000610b9a83604051806060016040528060308152602001612df4603091396001600160a01b03881660009081526009602090815260408083203384529091529020549190611cff565b9050610ba7853383611539565b610bb2858585611b56565b60019150505b9392505050565b6001546001600160a01b03163314610be95760405162461bcd60e51b81526004016108f890612ac4565b6109c4861115610c3b5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465312065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b6109c4851115610c8d5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465322065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b6109c4841115610cdf5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465332065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b601295909555601393909355601491909155601555601655601755565b6001546001600160a01b03163314610d265760405162461bcd60e51b81526004016108f890612ac4565b60188054911515620100000262ff000019909216919091179055565b610d4a61166f565b610d546000611d2b565b610d5e6001600055565b565b6001600160a01b038082166000908152600b602052604080822054600480548351633dfa83b360e01b815293516060969395949190931692633dfa83b39282810192869291908290030181865afa158015610dbf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610de79190810190612b6e565b9050600060075490506000600460009054906101000a90046001600160a01b03166001600160a01b031663eded3fda6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e6d9190810190612c22565b90506000835167ffffffffffffffff811115610e8b57610e8b61288f565b604051908082528060200260200182016040528015610eb4578160200160208202803683370190505b5090508660005b855181101561102d5786600003610f15576001600160a01b0382166000908152600c602090815260408083208484529091529020548351849083908110610f0457610f04612ca8565b60200260200101818152505061101b565b6000610f506c0c9f2c9cd04674edea40000000868481518110610f3a57610f3a612ca8565b602002602001015161203390919063ffffffff16565b90506000610f76610f61838961203f565b6000858152600a60205260409020549061204b565b6001600160a01b0385166000908152600d60209081526040808320878452909152902054909150610ffa90610fd0906c0c9f2c9cd04674edea4000000090610fca90610fc3908690612057565b8d90612033565b9061203f565b6001600160a01b0386166000908152600c602090815260408083208884529091529020549061204b565b85848151811061100c5761100c612ca8565b60200260200101818152505050505b8061102581612cd4565b915050610ebb565b5090979650505050505050565b6001546001600160a01b031633146110645760405162461bcd60e51b81526004016108f890612ac4565b600154600160a01b900460ff16156110c95760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b60648201526084016108f8565b6001805460ff60a01b1916600160a01b17905560005b825181101561113d5760008382815181106110fc576110fc612ca8565b6020908102919091018101516001600160a01b03166000908152600590915260409020805460ff19166001179055508061113581612cd4565b9150506110df565b50600480546001600160a01b0319166001600160a01b039290921691909117905550565b6001546001600160a01b0316331461118b5760405162461bcd60e51b81526004016108f890612ac4565b6018805460ff1916911515919091179055565b6111a661166f565b6111ae6116c8565b610a5b84848484612063565b600380546109a790612af3565b6001546001600160a01b031633146111f15760405162461bcd60e51b81526004016108f890612ac4565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000610a35338484611b56565b61123161166f565b601854610100900460ff16156112595760405162461bcd60e51b81526004016108f890612b2d565b61126533338484612063565b61126f6001600055565b5050565b6001600160a01b038084166000908152601060209081526040808320938616835292905290812054819081906112aa904290612057565b905060155481116112d7576112d0612710610fca6012548761203390919063ffffffff16565b9150611322565b60165481116112fb576112d0612710610fca6013548761203390919063ffffffff16565b60175481116113225761131f612710610fca6014548761203390919063ffffffff16565b91505b50949350505050565b61133361166f565b601854610100900460ff161561135b5760405162461bcd60e51b81526004016108f890612b2d565b61126533838333611727565b6001546001600160a01b031633146113915760405162461bcd60e51b81526004016108f890612ac4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146113dd5760405162461bcd60e51b81526004016108f890612ac4565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6001546001600160a01b031633146114325760405162461bcd60e51b81526004016108f890612ac4565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6060600460009054906101000a90046001600160a01b03166001600160a01b0316633dfa83b36040518163ffffffff1660e01b8152600401600060405180830381865afa1580156114a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114d19190810190612b6e565b905090565b6040516001600160a01b03831660248201526044810182905261099590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526121b2565b6001600160a01b0383166115a45760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016108f8565b6001600160a01b03821661160d5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b60648201526084016108f8565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600054036116c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f8565b6002600055565b3360009081526019602052604090205460ff16610d5e5760405162461bcd60e51b815260206004820152601860248201527f526577617264547261636b65723a20666f7262696464656e000000000000000060448201526064016108f8565b600082116117775760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e74000060448201526064016108f8565b6001600160a01b03831660009081526005602052604090205460ff166117af5760405162461bcd60e51b81526004016108f890612ced565b6117b884611d2b565b6001600160a01b0384166000908152600b6020526040902054828110156118355760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b60648201526084016108f8565b61183f8184612057565b6001600160a01b038087166000908152600b6020908152604080832094909455600681528382209288168252919091522054838110156118d75760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b60648201526084016108f8565b6118e18185612057565b6001600160a01b038088166000908152600660209081526040808320938a16835292905290812091909155611917878787611273565b905060006119258683612057565b90506119318887612287565b811561195157601154611951906001600160a01b038981169116846114d6565b6119656001600160a01b03881686836114d6565b5050505050505050565b606061197a83611d2b565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316633dfa83b36040518163ffffffff1660e01b8152600401600060405180830381865afa1580156119cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f79190810190612b6e565b90506000815167ffffffffffffffff811115611a1557611a1561288f565b604051908082528060200260200182016040528015611a3e578160200160208202803683370190505b50905060005b8251811015611322576001600160a01b0386166000908152600c60209081526040808320848452909152812080549190558015611b4357611ab68682868581518110611a9257611a92612ca8565b6020026020010151600001516001600160a01b03166114d69092919063ffffffff16565b80838381518110611ac957611ac9612ca8565b6020026020010181815250507f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706887858481518110611b0957611b09612ca8565b60209081029190910181015151604080516001600160a01b0394851681529390911691830191909152810183905260600160405180910390a15b5080611b4e81612cd4565b915050611a44565b6001600160a01b038316611bc25760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b60648201526084016108f8565b6001600160a01b038216611c2c5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b60648201526084016108f8565b60185460ff1615611c3f57611c3f6116c8565b611c7c816040518060600160405280602e8152602001612e24602e91396001600160a01b0386166000908152600860205260409020549190611cff565b6001600160a01b038085166000908152600860205260408082209390935590841681522054611cab908261204b565b6001600160a01b0380841660008181526008602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906116629085815260200190565b60008184841115611d235760405162461bcd60e51b81526004016108f891906126d5565b505050900390565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b81526004016000604051808303816000875af1158015611d82573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611daa9190810190612c22565b90508160005b8251811015610a65576000838281518110611dcd57611dcd612ca8565b6020908102919091018101516000848152600a909252604090912054600754919250908015801590611dff5750600083115b15611e3d57611e29611e2282610fca866c0c9f2c9cd04674edea40000000612033565b839061204b565b6000858152600a6020526040902081905591505b81600003611e4d57505050612021565b6001600160a01b0387161561201d576001600160a01b0385166000908152600b6020908152604080832054600d8352818420888552909252822054909190611eb4906c0c9f2c9cd04674edea4000000090610fca90611ead908890612057565b8590612033565b6001600160a01b0388166000908152600c602090815260408083208a845290915281205491925090611ee6908361204b565b6001600160a01b0389166000818152600c602090815260408083208c84528252808320859055928252600d81528282208b835290522086905590508015801590611f4757506001600160a01b0388166000908152600b602052604090205415155b15612019576001600160a01b0388166000908152600e602090815260408083208a8452909152812054611f7a908461204b565b6001600160a01b038a166000818152600f602090815260408083208d8452825280832054938352600e82528083208d845290915290205491925090611fda611fc684610fca8989612033565b611fd485610fca8686612033565b9061204b565b6001600160a01b038c166000818152600f602090815260408083208f8452825280832094909455918152600e82528281208d8252909152209290925550505b5050505b5050505b8061202b81612cd4565b915050611db0565b6000610bb88284612d31565b6000610bb88284612d48565b6000610bb88284612d6a565b6000610bb88284612d7d565b600081116120b35760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e74000060448201526064016108f8565b6001600160a01b03821660009081526005602052604090205460ff166120eb5760405162461bcd60e51b81526004016108f890612ced565b6121006001600160a01b03831685308461239b565b61210983611d2b565b6001600160a01b0383166000908152600b602052604090205461212c908261204b565b6001600160a01b038085166000908152600b6020908152604080832094909455600681528382209286168252919091522054612168908261204b565b6001600160a01b038085166000818152600660209081526040808320948816808452948252808320959095559181526010825283812092815291905220429055610a6583826123d3565b6000612207826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124bd9092919063ffffffff16565b90508051600014806122285750808060200190518101906122289190612d90565b6109955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108f8565b6001600160a01b0382166122ef5760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016108f8565b61232c816040518060600160405280602a8152602001612dca602a91396001600160a01b0385166000908152600860205260409020549190611cff565b6001600160a01b0383166000908152600860205260409020556007546123529082612057565b6007556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a659085906323b872dd60e01b90608401611502565b6001600160a01b0382166124395760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b60648201526084016108f8565b600754612446908261204b565b6007556001600160a01b03821660009081526008602052604090205461246c908261204b565b6001600160a01b0383166000818152600860205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061238f9085815260200190565b60606124cc84846000856124d4565b949350505050565b6060824710156125355760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108f8565b600080866001600160a01b031685876040516125519190612dad565b60006040518083038185875af1925050503d806000811461258e576040519150601f19603f3d011682016040523d82523d6000602084013e612593565b606091505b50915091506125a4878383876125af565b979650505050505050565b6060831561261e578251600003612617576001600160a01b0385163b6126175760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108f8565b50816124cc565b6124cc83838151156126335781518083602001fd5b8060405162461bcd60e51b81526004016108f891906126d5565b6001600160a01b038116811461266257600080fd5b50565b8035610b208161264d565b60008060006060848603121561268557600080fd5b83356126908161264d565b925060208401356126a08161264d565b929592945050506040919091013590565b60005b838110156126cc5781810151838201526020016126b4565b50506000910152565b60208152600082518060208401526126f48160408501602087016126b1565b601f01601f19169190910160400192915050565b6000806040838503121561271b57600080fd5b82356127268161264d565b946020939093013593505050565b6000806000806080858703121561274a57600080fd5b84356127558161264d565b935060208501356127658161264d565b925060408501359150606085013561277c8161264d565b939692955090935050565b60006020828403121561279957600080fd5b8135610bb88161264d565b600080604083850312156127b757600080fd5b82356127c28161264d565b915060208301356127d28161264d565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612815578351835292840192918401916001016127f9565b50909695505050505050565b801515811461266257600080fd5b60006020828403121561284157600080fd5b8135610bb881612821565b60008060008060008060c0878903121561286557600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156128c8576128c861288f565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156128f7576128f761288f565b604052919050565b600067ffffffffffffffff8211156129195761291961288f565b5060051b60200190565b6000806040838503121561293657600080fd5b823567ffffffffffffffff81111561294d57600080fd5b8301601f8101851361295e57600080fd5b8035602061297361296e836128ff565b6128ce565b82815260059290921b8301810191818101908884111561299257600080fd5b938201935b838510156129b95784356129aa8161264d565b82529382019390820190612997565b95506129c89050868201612665565b93505050509250929050565b6000602082840312156129e657600080fd5b5035919050565b60008060008060808587031215612a0357600080fd5b8435612a0e8161264d565b93506020850135612a1e8161264d565b92506040850135612a2e8161264d565b9396929550929360600135925050565b60008060408385031215612a5157600080fd5b8235612a5c8161264d565b915060208301356127d281612821565b602080825282518282018190526000919060409081850190868401855b82811015612ab757815180516001600160a01b03168552860151868501529284019290850190600101612a89565b5091979650505050505050565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c90821680612b0757607f821691505b602082108103612b2757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526021908201527f526577617264547261636b65723a20616374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b60006020808385031215612b8157600080fd5b825167ffffffffffffffff811115612b9857600080fd5b8301601f81018513612ba957600080fd5b8051612bb761296e826128ff565b81815260069190911b82018301908381019087831115612bd657600080fd5b928401925b828410156125a45760408489031215612bf45760008081fd5b612bfc6128a5565b8451612c078161264d565b81528486015186820152825260409093019290840190612bdb565b60006020808385031215612c3557600080fd5b825167ffffffffffffffff811115612c4c57600080fd5b8301601f81018513612c5d57600080fd5b8051612c6b61296e826128ff565b81815260059190911b82018301908381019087831115612c8a57600080fd5b928401925b828410156125a457835182529284019290840190612c8f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ce657612ce6612cbe565b5060010190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b8082028115828204841417610a3957610a39612cbe565b600082612d6557634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610a3957610a39612cbe565b81810381811115610a3957610a39612cbe565b600060208284031215612da257600080fd5b8151610bb881612821565b60008251612dbf8184602087016126b1565b919091019291505056fe526577617264547261636b65723a206275726e20616d6f756e7420657863656564732062616c616e6365526577617264547261636b65723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526577617264547261636b65723a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a2646970667358221220237e3d2c780247ec9d2473ffa33d0a252496db357db2f95c94ba3e894d9b265364736f6c63430008140033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000005764c7976650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005764c797665000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103835760003560e01c80634b6d6dc2116101de578063adc9772e1161010f578063dd62ed3e116100ad578063f5d9d63e1161007c578063f5d9d63e14610850578063f76033d31461087b578063f7c618c11461088e578063f9faa387146108a357600080fd5b8063dd62ed3e146107e4578063dfbaefb11461081d578063e44b75581461082a578063f0f442601461083d57600080fd5b8063bfe10928116100e9578063bfe1092814610799578063c2a672e0146107ac578063c5fa2730146107bf578063cfad57a2146107d157600080fd5b8063adc9772e14610750578063b89e45b314610763578063be3945e41461078657600080fd5b8063790b5a6c1161017c57806395d89b411161015657806395d89b411461070e5780639cb7de4b14610716578063a9059cbb14610729578063aaf5eb681461073c57600080fd5b8063790b5a6c146106e95780637be339cb146106fc57806392f6576e1461070557600080fd5b80635a47a1a7116101b85780635a47a1a71461067a57806361c51b161461068d57806361d027b3146106ad57806370a08231146106c057600080fd5b80634b6d6dc21461063d57806350da9e0a1461064657806355b6ed5c1461064f57600080fd5b806323b872dd116102b85780633cd7f70011610256578063462d0b2e11610230578063462d0b2e146105d357806346ea87af146105e6578063476c2f8a14610609578063491922af1461063457600080fd5b80633cd7f700146105a55780633e158b0c146105b8578063402914f5146105c057600080fd5b80632d73c3cb116102925780632d73c3cb14610521578063313ce5671461054c578063338111e714610566578063392e53cd1461059157600080fd5b806323b872dd146104db57806327e235e3146104ee5780632acc6f3e1461050e57600080fd5b8063126082cf1161032557806318160ddd116102ff57806318160ddd146104815780631d30d5bc1461048a5780631e83409a1461049d5780631f784658146104b057600080fd5b8063126082cf1461042d57806312d43a511461043657806313e82e7a1461046157600080fd5b8063095ea7b311610361578063095ea7b3146103ce578063098bf59d146103f15780630b17e2c61461040457806310c1c1031461040d57600080fd5b806301e33667146103885780630288c4691461039d57806306fdde03146103b9575b600080fd5b61039b610396366004612670565b6108ce565b005b6103a660145481565b6040519081526020015b60405180910390f35b6103c161099a565b6040516103b091906126d5565b6103e16103dc366004612708565b610a28565b60405190151581526020016103b0565b61039b6103ff366004612734565b610a3f565b6103a660175481565b6103a661041b366004612787565b600b6020526000908152604090205481565b6103a661271081565b600154610449906001600160a01b031681565b6040516001600160a01b0390911681526020016103b0565b61047461046f3660046127a4565b610a6b565b6040516103b091906127dd565b6103a660075481565b61039b61049836600461282f565b610a93565b6104746104ab366004612787565b610ad7565b6103a66104be3660046127a4565b601060209081526000928352604080842090915290825290205481565b6103e16104e9366004612670565b610b25565b6103a66104fc366004612787565b60086020526000908152604090205481565b61039b61051c36600461284c565b610bbf565b6103a661052f366004612708565b600d60209081526000928352604080842090915290825290205481565b610554601281565b60405160ff90911681526020016103b0565b6103a6610574366004612708565b600c60209081526000928352604080842090915290825290205481565b6001546103e190600160a01b900460ff1681565b61039b6105b336600461282f565b610cfc565b61039b610d42565b6104746105ce366004612787565b610d60565b61039b6105e1366004612923565b61103a565b6103e16105f4366004612787565b60196020526000908152604090205460ff1681565b6103a6610617366004612708565b600f60209081526000928352604080842090915290825290205481565b6103a660135481565b6103a660155481565b6103a660165481565b6103a661065d3660046127a4565b600960209081526000928352604080842090915290825290205481565b61039b61068836600461282f565b611161565b6103a661069b3660046129d4565b600a6020526000908152604090205481565b601154610449906001600160a01b031681565b6103a66106ce366004612787565b6001600160a01b031660009081526008602052604090205490565b61039b6106f73660046129ed565b61119e565b6103a660125481565b6103a66109c481565b6103c16111ba565b61039b610724366004612a3e565b6111c7565b6103e1610737366004612708565b61121c565b6103a66c0c9f2c9cd04674edea4000000081565b61039b61075e366004612708565b611229565b6103e1610771366004612787565b60056020526000908152604090205460ff1681565b6103a6610794366004612670565b611273565b600454610449906001600160a01b031681565b61039b6107ba366004612708565b61132b565b6018546103e190610100900460ff1681565b61039b6107df366004612787565b611367565b6103a66107f23660046127a4565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b6018546103e19060ff1681565b61039b610838366004612a3e565b6113b3565b61039b61084b366004612787565b611408565b6103a661085e3660046127a4565b600660209081526000928352604080842090915290825290205481565b6018546103e19062010000900460ff1681565b610896611454565b6040516103b09190612a6c565b6103a66108b1366004612708565b600e60209081526000928352604080842090915290825290205481565b6001546001600160a01b031633146109015760405162461bcd60e51b81526004016108f890612ac4565b60405180910390fd5b6001600160a01b03831660009081526005602052604090205460ff16156109815760405162461bcd60e51b815260206004820152602e60248201527f526577617264547261636b65723a205f746f6b656e2063616e6e6f742062652060448201526d30903232b837b9b4ba2a37b5b2b760911b60648201526084016108f8565b6109956001600160a01b03841683836114d6565b505050565b600280546109a790612af3565b80601f01602080910402602001604051908101604052809291908181526020018280546109d390612af3565b8015610a205780601f106109f557610100808354040283529160200191610a20565b820191906000526020600020905b815481529060010190602001808311610a0357829003601f168201915b505050505081565b6000610a35338484611539565b5060015b92915050565b610a4761166f565b610a4f6116c8565b610a5b84848484611727565b610a656001600055565b50505050565b6060610a7561166f565b610a7d6116c8565b610a87838361196f565b9050610a396001600055565b6001546001600160a01b03163314610abd5760405162461bcd60e51b81526004016108f890612ac4565b601880549115156101000261ff0019909216919091179055565b6060610ae161166f565b60185462010000900460ff1615610b0a5760405162461bcd60e51b81526004016108f890612b2d565b610b14338361196f565b9050610b206001600055565b919050565b3360009081526019602052604081205460ff1615610b5057610b48848484611b56565b506001610bb8565b6000610b9a83604051806060016040528060308152602001612df4603091396001600160a01b03881660009081526009602090815260408083203384529091529020549190611cff565b9050610ba7853383611539565b610bb2858585611b56565b60019150505b9392505050565b6001546001600160a01b03163314610be95760405162461bcd60e51b81526004016108f890612ac4565b6109c4861115610c3b5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465312065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b6109c4851115610c8d5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465322065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b6109c4841115610cdf5760405162461bcd60e51b815260206004820152601e60248201527f66656552617465332065786365656473206d6178696d756d206c696d6974000060448201526064016108f8565b601295909555601393909355601491909155601555601655601755565b6001546001600160a01b03163314610d265760405162461bcd60e51b81526004016108f890612ac4565b60188054911515620100000262ff000019909216919091179055565b610d4a61166f565b610d546000611d2b565b610d5e6001600055565b565b6001600160a01b038082166000908152600b602052604080822054600480548351633dfa83b360e01b815293516060969395949190931692633dfa83b39282810192869291908290030181865afa158015610dbf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610de79190810190612b6e565b9050600060075490506000600460009054906101000a90046001600160a01b03166001600160a01b031663eded3fda6040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e6d9190810190612c22565b90506000835167ffffffffffffffff811115610e8b57610e8b61288f565b604051908082528060200260200182016040528015610eb4578160200160208202803683370190505b5090508660005b855181101561102d5786600003610f15576001600160a01b0382166000908152600c602090815260408083208484529091529020548351849083908110610f0457610f04612ca8565b60200260200101818152505061101b565b6000610f506c0c9f2c9cd04674edea40000000868481518110610f3a57610f3a612ca8565b602002602001015161203390919063ffffffff16565b90506000610f76610f61838961203f565b6000858152600a60205260409020549061204b565b6001600160a01b0385166000908152600d60209081526040808320878452909152902054909150610ffa90610fd0906c0c9f2c9cd04674edea4000000090610fca90610fc3908690612057565b8d90612033565b9061203f565b6001600160a01b0386166000908152600c602090815260408083208884529091529020549061204b565b85848151811061100c5761100c612ca8565b60200260200101818152505050505b8061102581612cd4565b915050610ebb565b5090979650505050505050565b6001546001600160a01b031633146110645760405162461bcd60e51b81526004016108f890612ac4565b600154600160a01b900460ff16156110c95760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b60648201526084016108f8565b6001805460ff60a01b1916600160a01b17905560005b825181101561113d5760008382815181106110fc576110fc612ca8565b6020908102919091018101516001600160a01b03166000908152600590915260409020805460ff19166001179055508061113581612cd4565b9150506110df565b50600480546001600160a01b0319166001600160a01b039290921691909117905550565b6001546001600160a01b0316331461118b5760405162461bcd60e51b81526004016108f890612ac4565b6018805460ff1916911515919091179055565b6111a661166f565b6111ae6116c8565b610a5b84848484612063565b600380546109a790612af3565b6001546001600160a01b031633146111f15760405162461bcd60e51b81526004016108f890612ac4565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b6000610a35338484611b56565b61123161166f565b601854610100900460ff16156112595760405162461bcd60e51b81526004016108f890612b2d565b61126533338484612063565b61126f6001600055565b5050565b6001600160a01b038084166000908152601060209081526040808320938616835292905290812054819081906112aa904290612057565b905060155481116112d7576112d0612710610fca6012548761203390919063ffffffff16565b9150611322565b60165481116112fb576112d0612710610fca6013548761203390919063ffffffff16565b60175481116113225761131f612710610fca6014548761203390919063ffffffff16565b91505b50949350505050565b61133361166f565b601854610100900460ff161561135b5760405162461bcd60e51b81526004016108f890612b2d565b61126533838333611727565b6001546001600160a01b031633146113915760405162461bcd60e51b81526004016108f890612ac4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146113dd5760405162461bcd60e51b81526004016108f890612ac4565b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6001546001600160a01b031633146114325760405162461bcd60e51b81526004016108f890612ac4565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6060600460009054906101000a90046001600160a01b03166001600160a01b0316633dfa83b36040518163ffffffff1660e01b8152600401600060405180830381865afa1580156114a9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114d19190810190612b6e565b905090565b6040516001600160a01b03831660248201526044810182905261099590849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526121b2565b6001600160a01b0383166115a45760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016108f8565b6001600160a01b03821661160d5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b60648201526084016108f8565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600054036116c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f8565b6002600055565b3360009081526019602052604090205460ff16610d5e5760405162461bcd60e51b815260206004820152601860248201527f526577617264547261636b65723a20666f7262696464656e000000000000000060448201526064016108f8565b600082116117775760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e74000060448201526064016108f8565b6001600160a01b03831660009081526005602052604090205460ff166117af5760405162461bcd60e51b81526004016108f890612ced565b6117b884611d2b565b6001600160a01b0384166000908152600b6020526040902054828110156118355760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b60648201526084016108f8565b61183f8184612057565b6001600160a01b038087166000908152600b6020908152604080832094909455600681528382209288168252919091522054838110156118d75760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b60648201526084016108f8565b6118e18185612057565b6001600160a01b038088166000908152600660209081526040808320938a16835292905290812091909155611917878787611273565b905060006119258683612057565b90506119318887612287565b811561195157601154611951906001600160a01b038981169116846114d6565b6119656001600160a01b03881686836114d6565b5050505050505050565b606061197a83611d2b565b6000600460009054906101000a90046001600160a01b03166001600160a01b0316633dfa83b36040518163ffffffff1660e01b8152600401600060405180830381865afa1580156119cf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119f79190810190612b6e565b90506000815167ffffffffffffffff811115611a1557611a1561288f565b604051908082528060200260200182016040528015611a3e578160200160208202803683370190505b50905060005b8251811015611322576001600160a01b0386166000908152600c60209081526040808320848452909152812080549190558015611b4357611ab68682868581518110611a9257611a92612ca8565b6020026020010151600001516001600160a01b03166114d69092919063ffffffff16565b80838381518110611ac957611ac9612ca8565b6020026020010181815250507f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706887858481518110611b0957611b09612ca8565b60209081029190910181015151604080516001600160a01b0394851681529390911691830191909152810183905260600160405180910390a15b5080611b4e81612cd4565b915050611a44565b6001600160a01b038316611bc25760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b60648201526084016108f8565b6001600160a01b038216611c2c5760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b60648201526084016108f8565b60185460ff1615611c3f57611c3f6116c8565b611c7c816040518060600160405280602e8152602001612e24602e91396001600160a01b0386166000908152600860205260409020549190611cff565b6001600160a01b038085166000908152600860205260408082209390935590841681522054611cab908261204b565b6001600160a01b0380841660008181526008602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906116629085815260200190565b60008184841115611d235760405162461bcd60e51b81526004016108f891906126d5565b505050900390565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b81526004016000604051808303816000875af1158015611d82573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611daa9190810190612c22565b90508160005b8251811015610a65576000838281518110611dcd57611dcd612ca8565b6020908102919091018101516000848152600a909252604090912054600754919250908015801590611dff5750600083115b15611e3d57611e29611e2282610fca866c0c9f2c9cd04674edea40000000612033565b839061204b565b6000858152600a6020526040902081905591505b81600003611e4d57505050612021565b6001600160a01b0387161561201d576001600160a01b0385166000908152600b6020908152604080832054600d8352818420888552909252822054909190611eb4906c0c9f2c9cd04674edea4000000090610fca90611ead908890612057565b8590612033565b6001600160a01b0388166000908152600c602090815260408083208a845290915281205491925090611ee6908361204b565b6001600160a01b0389166000818152600c602090815260408083208c84528252808320859055928252600d81528282208b835290522086905590508015801590611f4757506001600160a01b0388166000908152600b602052604090205415155b15612019576001600160a01b0388166000908152600e602090815260408083208a8452909152812054611f7a908461204b565b6001600160a01b038a166000818152600f602090815260408083208d8452825280832054938352600e82528083208d845290915290205491925090611fda611fc684610fca8989612033565b611fd485610fca8686612033565b9061204b565b6001600160a01b038c166000818152600f602090815260408083208f8452825280832094909455918152600e82528281208d8252909152209290925550505b5050505b5050505b8061202b81612cd4565b915050611db0565b6000610bb88284612d31565b6000610bb88284612d48565b6000610bb88284612d6a565b6000610bb88284612d7d565b600081116120b35760405162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e74000060448201526064016108f8565b6001600160a01b03821660009081526005602052604090205460ff166120eb5760405162461bcd60e51b81526004016108f890612ced565b6121006001600160a01b03831685308461239b565b61210983611d2b565b6001600160a01b0383166000908152600b602052604090205461212c908261204b565b6001600160a01b038085166000908152600b6020908152604080832094909455600681528382209286168252919091522054612168908261204b565b6001600160a01b038085166000818152600660209081526040808320948816808452948252808320959095559181526010825283812092815291905220429055610a6583826123d3565b6000612207826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124bd9092919063ffffffff16565b90508051600014806122285750808060200190518101906122289190612d90565b6109955760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108f8565b6001600160a01b0382166122ef5760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016108f8565b61232c816040518060600160405280602a8152602001612dca602a91396001600160a01b0385166000908152600860205260409020549190611cff565b6001600160a01b0383166000908152600860205260409020556007546123529082612057565b6007556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a659085906323b872dd60e01b90608401611502565b6001600160a01b0382166124395760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b60648201526084016108f8565b600754612446908261204b565b6007556001600160a01b03821660009081526008602052604090205461246c908261204b565b6001600160a01b0383166000818152600860205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061238f9085815260200190565b60606124cc84846000856124d4565b949350505050565b6060824710156125355760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108f8565b600080866001600160a01b031685876040516125519190612dad565b60006040518083038185875af1925050503d806000811461258e576040519150601f19603f3d011682016040523d82523d6000602084013e612593565b606091505b50915091506125a4878383876125af565b979650505050505050565b6060831561261e578251600003612617576001600160a01b0385163b6126175760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108f8565b50816124cc565b6124cc83838151156126335781518083602001fd5b8060405162461bcd60e51b81526004016108f891906126d5565b6001600160a01b038116811461266257600080fd5b50565b8035610b208161264d565b60008060006060848603121561268557600080fd5b83356126908161264d565b925060208401356126a08161264d565b929592945050506040919091013590565b60005b838110156126cc5781810151838201526020016126b4565b50506000910152565b60208152600082518060208401526126f48160408501602087016126b1565b601f01601f19169190910160400192915050565b6000806040838503121561271b57600080fd5b82356127268161264d565b946020939093013593505050565b6000806000806080858703121561274a57600080fd5b84356127558161264d565b935060208501356127658161264d565b925060408501359150606085013561277c8161264d565b939692955090935050565b60006020828403121561279957600080fd5b8135610bb88161264d565b600080604083850312156127b757600080fd5b82356127c28161264d565b915060208301356127d28161264d565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612815578351835292840192918401916001016127f9565b50909695505050505050565b801515811461266257600080fd5b60006020828403121561284157600080fd5b8135610bb881612821565b60008060008060008060c0878903121561286557600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156128c8576128c861288f565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156128f7576128f761288f565b604052919050565b600067ffffffffffffffff8211156129195761291961288f565b5060051b60200190565b6000806040838503121561293657600080fd5b823567ffffffffffffffff81111561294d57600080fd5b8301601f8101851361295e57600080fd5b8035602061297361296e836128ff565b6128ce565b82815260059290921b8301810191818101908884111561299257600080fd5b938201935b838510156129b95784356129aa8161264d565b82529382019390820190612997565b95506129c89050868201612665565b93505050509250929050565b6000602082840312156129e657600080fd5b5035919050565b60008060008060808587031215612a0357600080fd5b8435612a0e8161264d565b93506020850135612a1e8161264d565b92506040850135612a2e8161264d565b9396929550929360600135925050565b60008060408385031215612a5157600080fd5b8235612a5c8161264d565b915060208301356127d281612821565b602080825282518282018190526000919060409081850190868401855b82811015612ab757815180516001600160a01b03168552860151868501529284019290850190600101612a89565b5091979650505050505050565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c90821680612b0757607f821691505b602082108103612b2757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526021908201527f526577617264547261636b65723a20616374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b60006020808385031215612b8157600080fd5b825167ffffffffffffffff811115612b9857600080fd5b8301601f81018513612ba957600080fd5b8051612bb761296e826128ff565b81815260069190911b82018301908381019087831115612bd657600080fd5b928401925b828410156125a45760408489031215612bf45760008081fd5b612bfc6128a5565b8451612c078161264d565b81528486015186820152825260409093019290840190612bdb565b60006020808385031215612c3557600080fd5b825167ffffffffffffffff811115612c4c57600080fd5b8301601f81018513612c5d57600080fd5b8051612c6b61296e826128ff565b81815260059190911b82018301908381019087831115612c8a57600080fd5b928401925b828410156125a457835182529284019290840190612c8f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ce657612ce6612cbe565b5060010190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b8082028115828204841417610a3957610a39612cbe565b600082612d6557634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610a3957610a39612cbe565b81810381811115610a3957610a39612cbe565b600060208284031215612da257600080fd5b8151610bb881612821565b60008251612dbf8184602087016126b1565b919091019291505056fe526577617264547261636b65723a206275726e20616d6f756e7420657863656564732062616c616e6365526577617264547261636b65723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526577617264547261636b65723a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a2646970667358221220237e3d2c780247ec9d2473ffa33d0a252496db357db2f95c94ba3e894d9b265364736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000005764c7976650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005764c797665000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): vLyve
Arg [1] : _symbol (string): vLyve
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 764c797665000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 764c797665000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.063298 | 189,103.1511 | $11,969.85 |
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.