Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
75,724.950716784773955841 stkCvxFxn
Holders
277
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
780.028294402111939061 stkCvxFxnValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
cvxFxnStaking
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "./interfaces/MathUtil.sol"; import "./interfaces/IBooster.sol"; import "./interfaces/IVoterProxy.sol"; import "./interfaces/IFxnDepositor.sol"; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract cvxFxnStaking is ERC20, ReentrancyGuard{ using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { uint256 periodFinish; uint256 rewardRate; uint256 lastUpdateTime; uint256 rewardPerTokenStored; } struct EarnedData { address token; uint256 amount; } address public constant fxn = address(0x365AccFCa291e7D3914637ABf1F7635dB165Bb09); address public immutable vefxnProxy; address public immutable cvxfxn; address public immutable fxnDepositor; //rewards address[] public rewardTokens; mapping(address => Reward) public rewardData; mapping(address => address) public rewardRedirect; // Duration that rewards are streamed over uint256 public constant rewardsDuration = 86400 * 7; // reward token -> distributor -> is approved to add rewards mapping(address => mapping(address => bool)) public rewardDistributors; // user -> reward token -> amount mapping(address => mapping(address => uint256)) public userRewardPerTokenPaid; mapping(address => mapping(address => uint256)) public rewards; /* ========== CONSTRUCTOR ========== */ constructor(address _proxy, address _cvxfxn, address _depositor) ERC20( "Staked CvxFxn", "stkCvxFxn" ){ vefxnProxy = _proxy; cvxfxn = _cvxfxn; fxnDepositor = _depositor; IERC20(fxn).approve(_depositor,type(uint256).max); } /* ========== ADMIN CONFIGURATION ========== */ // Add a new reward token to be distributed to stakers function addReward( address _rewardsToken, address _distributor ) public onlyOwner { require(rewardData[_rewardsToken].lastUpdateTime == 0, "!new"); require(_rewardsToken != cvxfxn && _rewardsToken != address(this), "invalid token"); rewardTokens.push(_rewardsToken); rewardData[_rewardsToken].lastUpdateTime = block.timestamp; rewardData[_rewardsToken].periodFinish = block.timestamp; rewardDistributors[_rewardsToken][_distributor] = true; emit RewardAdded(_rewardsToken, _distributor); } // Modify approval for an address to call notifyRewardAmount function approveRewardDistributor( address _rewardsToken, address _distributor, bool _approved ) external onlyOwner { require(rewardData[_rewardsToken].lastUpdateTime > 0); rewardDistributors[_rewardsToken][_distributor] = _approved; emit RewardDistributorApproved(_rewardsToken, _distributor); } /* ========== MUTATIVE FUNCTIONS ========== */ //deposit fxn for cvxfxn and stake function deposit(uint256 _amount, bool _lock) public nonReentrant{ require(_amount > 0, 'RewardPool : Cannot deposit 0'); //mint will call _updateReward _mint(msg.sender, _amount); //transfer fxn IERC20(fxn).safeTransferFrom(msg.sender, address(this), _amount); //deposit, cvxfxn will be returned here IFxnDepositor(fxnDepositor).deposit(_amount,_lock); emit Staked(msg.sender, _amount); } //deposit fxn for cvxfxn and stake function deposit(uint256 _amount) external{ deposit(_amount, false); } //deposit cvxfxn function stake(uint256 _amount) public nonReentrant{ require(_amount > 0, 'RewardPool : Cannot stake 0'); //mint will call _updateReward _mint(msg.sender, _amount); //pull cvxfxn IERC20(cvxfxn).safeTransferFrom(msg.sender, address(this), _amount); emit Staked(msg.sender, _amount); } //deposit all cvxfxn function stakeAll() external{ uint256 balance = IERC20(cvxfxn).balanceOf(msg.sender); stake(balance); } //deposit cvxfxn and accredit a different address function stakeFor(address _for, uint256 _amount) external nonReentrant{ require(_amount > 0, 'RewardPool : Cannot stake 0'); //give to _for //mint will call _updateReward _mint(_for, _amount); //pull from sender IERC20(cvxfxn).safeTransferFrom(msg.sender, address(this), _amount); emit Staked(_for, _amount); } //withdraw cvxfxn function withdraw(uint256 _amount) external nonReentrant{ require(_amount > 0, 'RewardPool : Cannot withdraw 0'); //burn will call _updateReward _burn(msg.sender, _amount); //send cvxfxn IERC20(cvxfxn).safeTransfer(msg.sender, _amount); emit Withdrawn(msg.sender, _amount); } /* ========== VIEWS ========== */ function _rewardPerToken(address _rewardsToken) internal view returns(uint256) { if (totalSupply() == 0) { return rewardData[_rewardsToken].rewardPerTokenStored; } return rewardData[_rewardsToken].rewardPerTokenStored + ( (_lastTimeRewardApplicable(rewardData[_rewardsToken].periodFinish) - rewardData[_rewardsToken].lastUpdateTime) * rewardData[_rewardsToken].rewardRate * 1e18 / totalSupply() ); } function _earned( address _user, address _rewardsToken, uint256 _balance ) internal view returns(uint256) { return (_balance * (_rewardPerToken(_rewardsToken) - userRewardPerTokenPaid[_user][_rewardsToken] ) / 1e18) + rewards[_user][_rewardsToken]; } function _lastTimeRewardApplicable(uint256 _finishTime) internal view returns(uint256){ return MathUtil.min(block.timestamp, _finishTime); } function lastTimeRewardApplicable(address _rewardsToken) public view returns(uint256) { return _lastTimeRewardApplicable(rewardData[_rewardsToken].periodFinish); } function rewardPerToken(address _rewardsToken) external view returns(uint256) { return _rewardPerToken(_rewardsToken); } function getRewardForDuration(address _rewardsToken) external view returns(uint256) { return rewardData[_rewardsToken].rewardRate * rewardsDuration; } // Address and claimable amount of all reward tokens for the given account function claimableRewards(address _account) external view returns(EarnedData[] memory userRewards) { userRewards = new EarnedData[](rewardTokens.length); for (uint256 i = 0; i < userRewards.length; i++) { address token = rewardTokens[i]; userRewards[i].token = token; userRewards[i].amount = _earned(_account, token, balanceOf(_account)); } return userRewards; } //set any claimed rewards to automatically go to a different address //set address to zero to disable function setRewardRedirect(address _to) external nonReentrant{ rewardRedirect[msg.sender] = _to; emit RewardRedirected(msg.sender, _to); } // Claim all pending rewards function getReward(address _address) public nonReentrant updateReward(_address) { for (uint i; i < rewardTokens.length; i++) { address _rewardsToken = rewardTokens[i]; uint256 reward = rewards[_address][_rewardsToken]; if (reward > 0) { rewards[_address][_rewardsToken] = 0; if(rewardRedirect[_address] != address(0)){ IERC20(_rewardsToken).safeTransfer(rewardRedirect[_address], reward); }else{ IERC20(_rewardsToken).safeTransfer(_address, reward); } emit RewardPaid(_address, _rewardsToken, reward); } } } // Claim all pending rewards and forward function getReward(address _address, address _forwardTo) public nonReentrant updateReward(_address) { //if forwarding, require caller is self require(msg.sender == _address, "!self"); for (uint i; i < rewardTokens.length; i++) { address _rewardsToken = rewardTokens[i]; uint256 reward = rewards[_address][_rewardsToken]; if (reward > 0) { rewards[_address][_rewardsToken] = 0; IERC20(_rewardsToken).safeTransfer(_forwardTo, reward); emit RewardPaid(_address, _rewardsToken, reward); } } } /* ========== RESTRICTED FUNCTIONS ========== */ function rewardTokenLength() external view returns(uint256){ return rewardTokens.length; } function _notifyReward(address _rewardsToken, uint256 _reward) internal { Reward storage rdata = rewardData[_rewardsToken]; if (block.timestamp >= rdata.periodFinish) { rdata.rewardRate = _reward / rewardsDuration; } else { uint256 remaining = rdata.periodFinish - block.timestamp; uint256 leftover = remaining * rdata.rewardRate; rdata.rewardRate = (_reward + leftover) / rewardsDuration; } rdata.lastUpdateTime = block.timestamp; rdata.periodFinish = block.timestamp + rewardsDuration; } function notifyRewardAmount(address _rewardsToken, uint256 _reward) external nonReentrant updateReward(address(0)) { require(rewardDistributors[_rewardsToken][msg.sender]); require(_reward > 0 && _reward < 1e30, "bad reward value"); _notifyReward(_rewardsToken, _reward); // handle the transfer of reward tokens via `transferFrom` to reduce the number // of transactions required and ensure correctness of the _reward amount IERC20(_rewardsToken).safeTransferFrom(msg.sender, address(this), _reward); emit RewardAdded(_rewardsToken, _reward); } // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external nonReentrant onlyOwner { require(rewardData[_tokenAddress].lastUpdateTime == 0, "Cannot withdraw reward token"); require(_tokenAddress != cvxfxn, "Cannot withdraw staking token"); IERC20(_tokenAddress).safeTransfer(IBooster(IVoterProxy(vefxnProxy).operator()).rewardManager(), _tokenAmount); emit Recovered(_tokenAddress, _tokenAmount); } function _updateReward(address _account) internal{ uint256 userBal = balanceOf(_account); for (uint i = 0; i < rewardTokens.length; i++) { address token = rewardTokens[i]; rewardData[token].rewardPerTokenStored = _rewardPerToken(token); rewardData[token].lastUpdateTime = _lastTimeRewardApplicable(rewardData[token].periodFinish); if (_account != address(0)) { rewards[_account][token] = _earned(_account, token, userBal ); userRewardPerTokenPaid[_account][token] = rewardData[token].rewardPerTokenStored; } } } function _beforeTokenTransfer(address _from, address _to, uint256 ) internal override { //checkpoint from and to, can skip if address 0 so no extra gas //is used when minting burning if(_from != address(0)){ _updateReward(_from); } if(_to != address(0)){ _updateReward(_to); } } /* ========== MODIFIERS ========== */ modifier onlyOwner() { require(IBooster(IVoterProxy(vefxnProxy).operator()).rewardManager() == msg.sender, "!owner"); _; } modifier updateReward(address _account) { _updateReward(_account); _; } /* ========== EVENTS ========== */ event RewardAdded(address indexed _token, uint256 _reward); event Staked(address indexed _user, uint256 _amount); event Withdrawn(address indexed _user, uint256 _amount); event RewardPaid(address indexed _user, address indexed _rewardsToken, uint256 _reward); event Recovered(address _token, uint256 _amount); event RewardAdded(address indexed _reward, address indexed _distributor); event RewardDistributorApproved(address indexed _reward, address indexed _distributor); event RewardRedirected(address indexed _account, address _forward); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUtil { /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IVoterProxy{ function operator() external view returns(address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IFxnDepositor { function deposit(uint256 _amount, bool _lock) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; interface IBooster { function addPool(address _implementation, address _stakingAddress, address _stakingToken) external; function deactivatePool(uint256 _pid) external; function voteGaugeWeight(address _controller, address _gauge, uint256 _weight) external; function setDelegate(address _delegateContract, address _delegate, bytes32 _space) external; function owner() external returns(address); function rewardManager() external returns(address); function isShutdown() external returns(bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// 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.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) (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. */ 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]. */ 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 v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// 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; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_cvxfxn","type":"address"},{"internalType":"address","name":"_depositor","type":"address"}],"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":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_reward","type":"address"},{"indexed":true,"internalType":"address","name":"_distributor","type":"address"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_reward","type":"address"},{"indexed":true,"internalType":"address","name":"_distributor","type":"address"}],"name":"RewardDistributorApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":false,"internalType":"address","name":"_forward","type":"address"}],"name":"RewardRedirected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Staked","type":"event"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"addReward","outputs":[],"stateMutability":"nonpayable","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":"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":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"approveRewardDistributor","outputs":[],"stateMutability":"nonpayable","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":"_account","type":"address"}],"name":"claimableRewards","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct cvxFxnStaking.EarnedData[]","name":"userRewards","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxfxn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fxn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxnDepositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"address","name":"_forwardTo","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"lastTimeRewardApplicable","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":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardData","outputs":[{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewardDistributors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardRedirect","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"setRewardRedirect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxnProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162002c6e38038062002c6e833981016040819052620000349162000212565b604080518082018252600d81526c29ba30b5b2b21021bb3c233c3760991b60208083019182528351808501909452600984526839ba35a1bb3c233c3760b91b9084015281519192916200008a916003916200014f565b508051620000a09060049060208401906200014f565b50506001600555506001600160a01b0383811660805282811660a052811660c081905260405163095ea7b360e01b81526004810191909152600019602482015273365accfca291e7d3914637abf1f7635db165bb099063095ea7b3906044016020604051808303816000875af11580156200011f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014591906200025c565b50505050620002c4565b8280546200015d9062000287565b90600052602060002090601f016020900481019282620001815760008555620001cc565b82601f106200019c57805160ff1916838001178555620001cc565b82800160010185558215620001cc579182015b82811115620001cc578251825591602001919060010190620001af565b50620001da929150620001de565b5090565b5b80821115620001da5760008155600101620001df565b80516001600160a01b03811681146200020d57600080fd5b919050565b6000806000606084860312156200022857600080fd5b6200023384620001f5565b92506200024360208501620001f5565b91506200025360408501620001f5565b90509250925092565b6000602082840312156200026f57600080fd5b815180151581146200028057600080fd5b9392505050565b600181811c908216806200029c57607f821691505b60208210811415620002be57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05161292d620003416000396000818161049c01526113df015260008181610293015281816107970152818161087001528181610a74015281816110d5015281816112b2015261155f0152600081816104d60152818161091701528181610be101528181610f61015261115a015261292d6000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c806378ed98ff1161013b578063a9059cbb116100b8578063dc01f60d1161007c578063dc01f60d146105bb578063dd62ed3e146105db578063e509b9d9146105ee578063e70b9e2714610617578063f12297771461064257600080fd5b8063a9059cbb1461055c578063b66503cf1461056f578063b6b55f2514610582578063bcd1101414610595578063c00007b0146105a857600080fd5b80638dcb4061116100ff5780638dcb40611461051357806395d89b411461051b5780639a40832114610523578063a457c2d714610536578063a694fc3a1461054957600080fd5b806378ed98ff146104975780637bb7bed1146104be578063835d1b87146104d1578063857cb94a146104f85780638980f11f1461050057600080fd5b806339509351116101c95780636724c9101161018d5780636724c9101461040a5780636b0916951461041d5780637035ab981461043057806370a082311461045b57806375a410141461048457600080fd5b8063395093511461034e57806339fc97131461036157806340b47e1a1461038f57806348e5d9f8146103a2578063638634ee146103f757600080fd5b80632e1a7d4d116102105780632e1a7d4d146102f25780632ee4090814610307578063313ce5671461031a578063383d5dc814610329578063386a95251461034457600080fd5b806306fdde031461024d578063095ea7b31461026b57806315c77cb11461028e57806318160ddd146102cd57806323b872dd146102df575b600080fd5b610255610655565b604051610262919061256c565b60405180910390f35b61027e6102793660046125b4565b6106e7565b6040519015158152602001610262565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610262565b6002545b604051908152602001610262565b61027e6102ed3660046125e0565b6106ff565b610305610300366004612621565b610723565b005b6103056103153660046125b4565b610801565b60405160128152602001610262565b6102b573365accfca291e7d3914637abf1f7635db165bb0981565b6102d162093a8081565b61027e61035c3660046125b4565b6108e9565b61027e61036f36600461263a565b600960209081526000928352604080842090915290825290205460ff1681565b61030561039d36600461263a565b61090b565b6103d76103b0366004612673565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102d1610405366004612673565b610bad565b61030561041836600461269e565b610bd5565b61030561042b36600461263a565b610d6e565b6102d161043e36600461263a565b600a60209081526000928352604080842090915290825290205481565b6102d1610469366004612673565b6001600160a01b031660009081526020819052604090205490565b610305610492366004612673565b610ebf565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6102b56104cc366004612621565b610f23565b6102b57f000000000000000000000000000000000000000000000000000000000000000081565b6006546102d1565b61030561050e3660046125b4565b610f4d565b61030561129a565b610255611330565b6103056105313660046126e9565b61133f565b61027e6105443660046125b4565b611475565b610305610557366004612621565b6114f0565b61027e61056a3660046125b4565b6115b9565b61030561057d3660046125b4565b6115c7565b610305610590366004612621565b6116d2565b6102d16105a3366004612673565b6116dd565b6103056105b6366004612673565b611707565b6105ce6105c9366004612673565b61185e565b604051610262919061270e565b6102d16105e936600461263a565b611992565b6102b56105fc366004612673565b6008602052600090815260409020546001600160a01b031681565b6102d161062536600461263a565b600b60209081526000928352604080842090915290825290205481565b6102d1610650366004612673565b6119bd565b60606003805461066490612766565b80601f016020809104026020016040519081016040528092919081815260200182805461069090612766565b80156106dd5780601f106106b2576101008083540402835291602001916106dd565b820191906000526020600020905b8154815290600101906020018083116106c057829003601f168201915b5050505050905090565b6000336106f58185856119c8565b5060019392505050565b60003361070d858285611aed565b610718858585611b67565b506001949350505050565b61072b611d16565b600081116107805760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f742077697468647261772030000060448201526064015b60405180910390fd5b61078a3382611d70565b6107be6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611eab565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a26107fe6001600555565b50565b610809611d16565b600081116108595760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610777565b6108638282611f0e565b6108986001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611fd9565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516108d391815260200190565b60405180910390a26108e56001600555565b5050565b6000336106f58185856108fc8383611992565b61090691906127b1565b6119c8565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610973573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099791906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906127c9565b6001600160a01b031614610a205760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b03821660009081526007602052604090206002015415610a725760405162461bcd60e51b815260040161077790602080825260049082015263216e657760e01b604082015260600190565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614158015610abd57506001600160a01b0382163014155b610af95760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610777565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b038116600090815260076020526040812054610bcf90612011565b92915050565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6191906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ca0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc491906127c9565b6001600160a01b031614610cea5760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b038316600090815260076020526040902060020154610d0f57600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b610d76611d16565b81610d808161201d565b336001600160a01b03841614610dc05760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b6044820152606401610777565b60005b600654811015610eb357600060068281548110610de257610de2612806565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610e9e576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610e50908683611eab565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610e9591815260200190565b60405180910390a35b50508080610eab9061281c565b915050610dc3565b50506108e56001600555565b610ec7611d16565b3360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c91016107ec565b60068181548110610f3357600080fd5b6000918252602090912001546001600160a01b0316905081565b610f55611d16565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe191906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104491906127c9565b6001600160a01b03161461106a5760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b038216600090815260076020526040902060020154156110d35760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e000000006044820152606401610777565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156111555760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e0000006044820152606401610777565b61124e7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111da91906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d91906127c9565b6001600160a01b0384169083611eab565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a16108e56001600555565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113259190612837565b90506107fe816114f0565b60606004805461066490612766565b611347611d16565b600082116113975760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f73697420300000006044820152606401610777565b6113a13383611f0e565b6113c173365accfca291e7d3914637abf1f7635db165bb09333085611fd9565b604051639a40832160e01b81526004810183905281151560248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639a40832190604401600060405180830381600087803b15801561142b57600080fd5b505af115801561143f573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91506020016108d3565b600033816114838286611992565b9050838110156114e35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610777565b61071882868684036119c8565b6114f8611d16565b600081116115485760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610777565b6115523382611f0e565b6115876001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611fd9565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016107ec565b6000336106f5818585611b67565b6115cf611d16565b60006115da8161201d565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff1661160a57600080fd5b60008211801561162657506c0c9f2c9cd04674edea4000000082105b6116655760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b6044820152606401610777565b61166f8383612133565b6116846001600160a01b038416333085611fd9565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29836040516116bf91815260200190565b60405180910390a2506108e56001600555565b6107fe81600061133f565b6001600160a01b038116600090815260076020526040812060010154610bcf9062093a8090612850565b61170f611d16565b806117198161201d565b60005b6006548110156118525760006006828154811061173b5761173b612806565b60009182526020808320909101546001600160a01b038781168452600b8352604080852091909216808552925290912054909150801561183d576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156117db576001600160a01b038086166000908152600860205260409020546117d691848116911683611eab565b6117ef565b6117ef6001600160a01b0383168683611eab565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161183491815260200190565b60405180910390a35b5050808061184a9061281c565b91505061171c565b50506107fe6001600555565b60065460609067ffffffffffffffff81111561187c5761187c61286f565b6040519080825280602002602001820160405280156118c157816020015b604080518082019091526000808252602082015281526020019060019003908161189a5790505b50905060005b815181101561198c576000600682815481106118e5576118e5612806565b9060005260206000200160009054906101000a90046001600160a01b031690508083838151811061191857611918612806565b60209081029190910101516001600160a01b0390911690526119598482611954826001600160a01b031660009081526020819052604090205490565b6121cc565b83838151811061196b5761196b612806565b602090810291909101810151015250806119848161281c565b9150506118c7565b50919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610bcf8261224c565b6001600160a01b038316611a2a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610777565b6001600160a01b038216611a8b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610777565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000611af98484611992565b90506000198114611b615781811015611b545760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610777565b611b6184848484036119c8565b50505050565b6001600160a01b038316611bcb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610777565b6001600160a01b038216611c2d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610777565b611c38838383612303565b6001600160a01b03831660009081526020819052604090205481811015611cb05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610777565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611b61565b60026005541415611d695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610777565b6002600555565b6001600160a01b038216611dd05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610777565b611ddc82600083612303565b6001600160a01b03821660009081526020819052604090205481811015611e505760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610777565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611ae0565b505050565b6040516001600160a01b038316602482015260448101829052611ea690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612333565b6001600160a01b038216611f645760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610777565b611f7060008383612303565b8060026000828254611f8291906127b1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b619085906323b872dd60e01b90608401611ed7565b6000610bcf4283612408565b6001600160a01b038116600090815260208190526040812054905b600654811015611ea65760006006828154811061205757612057612806565b6000918252602090912001546001600160a01b031690506120778161224c565b6001600160a01b03821660009081526007602052604090206003810191909155546120a190612011565b6001600160a01b03808316600090815260076020526040902060020191909155841615612120576120d38482856121cc565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b508061212b8161281c565b915050612038565b6001600160a01b03821660009081526007602052604090208054421061216a5761216062093a8083612885565b60018201556121b0565b805460009061217a9042906128a7565b9050600082600101548261218e9190612850565b905062093a8061219e82866127b1565b6121a89190612885565b600184015550505b42600282018190556121c69062093a80906127b1565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061221c8661224c565b61222691906128a7565b6122309085612850565b61223a9190612885565b61224491906127b1565b949350505050565b600061225760025490565b61227a57506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122ad90612011565b6122b791906128a7565b6122c19190612850565b6122d390670de0b6b3a7640000612850565b6122dd9190612885565b6001600160a01b038316600090815260076020526040902060030154610bcf91906127b1565b6001600160a01b0383161561231b5761231b8361201d565b6001600160a01b03821615611ea657611ea68261201d565b6000612388826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124209092919063ffffffff16565b90508051600014806123a95750808060200190518101906123a991906128be565b611ea65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610777565b60008183106124175781612419565b825b9392505050565b6060612244848460008585600080866001600160a01b0316858760405161244791906128db565b60006040518083038185875af1925050503d8060008114612484576040519150601f19603f3d011682016040523d82523d6000602084013e612489565b606091505b509150915061249a878383876124a5565b979650505050505050565b6060831561251157825161250a576001600160a01b0385163b61250a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610777565b5081612244565b61224483838151156125265781518083602001fd5b8060405162461bcd60e51b8152600401610777919061256c565b60005b8381101561255b578181015183820152602001612543565b83811115611b615750506000910152565b602081526000825180602084015261258b816040850160208701612540565b601f01601f19169190910160400192915050565b6001600160a01b03811681146107fe57600080fd5b600080604083850312156125c757600080fd5b82356125d28161259f565b946020939093013593505050565b6000806000606084860312156125f557600080fd5b83356126008161259f565b925060208401356126108161259f565b929592945050506040919091013590565b60006020828403121561263357600080fd5b5035919050565b6000806040838503121561264d57600080fd5b82356126588161259f565b915060208301356126688161259f565b809150509250929050565b60006020828403121561268557600080fd5b81356124198161259f565b80151581146107fe57600080fd5b6000806000606084860312156126b357600080fd5b83356126be8161259f565b925060208401356126ce8161259f565b915060408401356126de81612690565b809150509250925092565b600080604083850312156126fc57600080fd5b82359150602083013561266881612690565b602080825282518282018190526000919060409081850190868401855b8281101561275957815180516001600160a01b0316855286015186850152928401929085019060010161272b565b5091979650505050505050565b600181811c9082168061277a57607f821691505b6020821081141561198c57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156127c4576127c461279b565b500190565b6000602082840312156127db57600080fd5b81516124198161259f565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156128305761283061279b565b5060010190565b60006020828403121561284957600080fd5b5051919050565b600081600019048311821515161561286a5761286a61279b565b500290565b634e487b7160e01b600052604160045260246000fd5b6000826128a257634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156128b9576128b961279b565b500390565b6000602082840312156128d057600080fd5b815161241981612690565b600082516128ed818460208701612540565b919091019291505056fea2646970667358221220642d172370cc73fc9edf5ec777200c10377583c2823caaa948773415bb2401c564736f6c634300080a0033000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb300000000000000000000000056b3c8ef8a095f8637b6a84942aa898326b82b91
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c806378ed98ff1161013b578063a9059cbb116100b8578063dc01f60d1161007c578063dc01f60d146105bb578063dd62ed3e146105db578063e509b9d9146105ee578063e70b9e2714610617578063f12297771461064257600080fd5b8063a9059cbb1461055c578063b66503cf1461056f578063b6b55f2514610582578063bcd1101414610595578063c00007b0146105a857600080fd5b80638dcb4061116100ff5780638dcb40611461051357806395d89b411461051b5780639a40832114610523578063a457c2d714610536578063a694fc3a1461054957600080fd5b806378ed98ff146104975780637bb7bed1146104be578063835d1b87146104d1578063857cb94a146104f85780638980f11f1461050057600080fd5b806339509351116101c95780636724c9101161018d5780636724c9101461040a5780636b0916951461041d5780637035ab981461043057806370a082311461045b57806375a410141461048457600080fd5b8063395093511461034e57806339fc97131461036157806340b47e1a1461038f57806348e5d9f8146103a2578063638634ee146103f757600080fd5b80632e1a7d4d116102105780632e1a7d4d146102f25780632ee4090814610307578063313ce5671461031a578063383d5dc814610329578063386a95251461034457600080fd5b806306fdde031461024d578063095ea7b31461026b57806315c77cb11461028e57806318160ddd146102cd57806323b872dd146102df575b600080fd5b610255610655565b604051610262919061256c565b60405180910390f35b61027e6102793660046125b4565b6106e7565b6040519015158152602001610262565b6102b57f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb381565b6040516001600160a01b039091168152602001610262565b6002545b604051908152602001610262565b61027e6102ed3660046125e0565b6106ff565b610305610300366004612621565b610723565b005b6103056103153660046125b4565b610801565b60405160128152602001610262565b6102b573365accfca291e7d3914637abf1f7635db165bb0981565b6102d162093a8081565b61027e61035c3660046125b4565b6108e9565b61027e61036f36600461263a565b600960209081526000928352604080842090915290825290205460ff1681565b61030561039d36600461263a565b61090b565b6103d76103b0366004612673565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102d1610405366004612673565b610bad565b61030561041836600461269e565b610bd5565b61030561042b36600461263a565b610d6e565b6102d161043e36600461263a565b600a60209081526000928352604080842090915290825290205481565b6102d1610469366004612673565b6001600160a01b031660009081526020819052604090205490565b610305610492366004612673565b610ebf565b6102b57f00000000000000000000000056b3c8ef8a095f8637b6a84942aa898326b82b9181565b6102b56104cc366004612621565b610f23565b6102b57f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b788181565b6006546102d1565b61030561050e3660046125b4565b610f4d565b61030561129a565b610255611330565b6103056105313660046126e9565b61133f565b61027e6105443660046125b4565b611475565b610305610557366004612621565b6114f0565b61027e61056a3660046125b4565b6115b9565b61030561057d3660046125b4565b6115c7565b610305610590366004612621565b6116d2565b6102d16105a3366004612673565b6116dd565b6103056105b6366004612673565b611707565b6105ce6105c9366004612673565b61185e565b604051610262919061270e565b6102d16105e936600461263a565b611992565b6102b56105fc366004612673565b6008602052600090815260409020546001600160a01b031681565b6102d161062536600461263a565b600b60209081526000928352604080842090915290825290205481565b6102d1610650366004612673565b6119bd565b60606003805461066490612766565b80601f016020809104026020016040519081016040528092919081815260200182805461069090612766565b80156106dd5780601f106106b2576101008083540402835291602001916106dd565b820191906000526020600020905b8154815290600101906020018083116106c057829003601f168201915b5050505050905090565b6000336106f58185856119c8565b5060019392505050565b60003361070d858285611aed565b610718858585611b67565b506001949350505050565b61072b611d16565b600081116107805760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f742077697468647261772030000060448201526064015b60405180910390fd5b61078a3382611d70565b6107be6001600160a01b037f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb3163383611eab565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a26107fe6001600555565b50565b610809611d16565b600081116108595760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610777565b6108638282611f0e565b6108986001600160a01b037f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb316333084611fd9565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040516108d391815260200190565b60405180910390a26108e56001600555565b5050565b6000336106f58185856108fc8383611992565b61090691906127b1565b6119c8565b336001600160a01b03167f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610973573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099791906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906127c9565b6001600160a01b031614610a205760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b03821660009081526007602052604090206002015415610a725760405162461bcd60e51b815260040161077790602080825260049082015263216e657760e01b604082015260600190565b7f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb36001600160a01b0316826001600160a01b031614158015610abd57506001600160a01b0382163014155b610af95760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b6044820152606401610777565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b038116600090815260076020526040812054610bcf90612011565b92915050565b336001600160a01b03167f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6191906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610ca0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc491906127c9565b6001600160a01b031614610cea5760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b038316600090815260076020526040902060020154610d0f57600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b610d76611d16565b81610d808161201d565b336001600160a01b03841614610dc05760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b6044820152606401610777565b60005b600654811015610eb357600060068281548110610de257610de2612806565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610e9e576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610e50908683611eab565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610e9591815260200190565b60405180910390a35b50508080610eab9061281c565b915050610dc3565b50506108e56001600555565b610ec7611d16565b3360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c91016107ec565b60068181548110610f3357600080fd5b6000918252602090912001546001600160a01b0316905081565b610f55611d16565b336001600160a01b03167f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe191906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611020573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104491906127c9565b6001600160a01b03161461106a5760405162461bcd60e51b8152600401610777906127e6565b6001600160a01b038216600090815260076020526040902060020154156110d35760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e000000006044820152606401610777565b7f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb36001600160a01b0316826001600160a01b031614156111555760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e0000006044820152606401610777565b61124e7f000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b78816001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111da91906127c9565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d91906127c9565b6001600160a01b0384169083611eab565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a16108e56001600555565b6040516370a0823160e01b81523360048201526000907f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb36001600160a01b0316906370a0823190602401602060405180830381865afa158015611301573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113259190612837565b90506107fe816114f0565b60606004805461066490612766565b611347611d16565b600082116113975760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f73697420300000006044820152606401610777565b6113a13383611f0e565b6113c173365accfca291e7d3914637abf1f7635db165bb09333085611fd9565b604051639a40832160e01b81526004810183905281151560248201527f00000000000000000000000056b3c8ef8a095f8637b6a84942aa898326b82b916001600160a01b031690639a40832190604401600060405180830381600087803b15801561142b57600080fd5b505af115801561143f573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d91506020016108d3565b600033816114838286611992565b9050838110156114e35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610777565b61071882868684036119c8565b6114f8611d16565b600081116115485760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b65203000000000006044820152606401610777565b6115523382611f0e565b6115876001600160a01b037f000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb316333084611fd9565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016107ec565b6000336106f5818585611b67565b6115cf611d16565b60006115da8161201d565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff1661160a57600080fd5b60008211801561162657506c0c9f2c9cd04674edea4000000082105b6116655760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b6044820152606401610777565b61166f8383612133565b6116846001600160a01b038416333085611fd9565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e29836040516116bf91815260200190565b60405180910390a2506108e56001600555565b6107fe81600061133f565b6001600160a01b038116600090815260076020526040812060010154610bcf9062093a8090612850565b61170f611d16565b806117198161201d565b60005b6006548110156118525760006006828154811061173b5761173b612806565b60009182526020808320909101546001600160a01b038781168452600b8352604080852091909216808552925290912054909150801561183d576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156117db576001600160a01b038086166000908152600860205260409020546117d691848116911683611eab565b6117ef565b6117ef6001600160a01b0383168683611eab565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161183491815260200190565b60405180910390a35b5050808061184a9061281c565b91505061171c565b50506107fe6001600555565b60065460609067ffffffffffffffff81111561187c5761187c61286f565b6040519080825280602002602001820160405280156118c157816020015b604080518082019091526000808252602082015281526020019060019003908161189a5790505b50905060005b815181101561198c576000600682815481106118e5576118e5612806565b9060005260206000200160009054906101000a90046001600160a01b031690508083838151811061191857611918612806565b60209081029190910101516001600160a01b0390911690526119598482611954826001600160a01b031660009081526020819052604090205490565b6121cc565b83838151811061196b5761196b612806565b602090810291909101810151015250806119848161281c565b9150506118c7565b50919050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610bcf8261224c565b6001600160a01b038316611a2a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610777565b6001600160a01b038216611a8b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610777565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000611af98484611992565b90506000198114611b615781811015611b545760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610777565b611b6184848484036119c8565b50505050565b6001600160a01b038316611bcb5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610777565b6001600160a01b038216611c2d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610777565b611c38838383612303565b6001600160a01b03831660009081526020819052604090205481811015611cb05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610777565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611b61565b60026005541415611d695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610777565b6002600555565b6001600160a01b038216611dd05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610777565b611ddc82600083612303565b6001600160a01b03821660009081526020819052604090205481811015611e505760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610777565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611ae0565b505050565b6040516001600160a01b038316602482015260448101829052611ea690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612333565b6001600160a01b038216611f645760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610777565b611f7060008383612303565b8060026000828254611f8291906127b1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611b619085906323b872dd60e01b90608401611ed7565b6000610bcf4283612408565b6001600160a01b038116600090815260208190526040812054905b600654811015611ea65760006006828154811061205757612057612806565b6000918252602090912001546001600160a01b031690506120778161224c565b6001600160a01b03821660009081526007602052604090206003810191909155546120a190612011565b6001600160a01b03808316600090815260076020526040902060020191909155841615612120576120d38482856121cc565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b508061212b8161281c565b915050612038565b6001600160a01b03821660009081526007602052604090208054421061216a5761216062093a8083612885565b60018201556121b0565b805460009061217a9042906128a7565b9050600082600101548261218e9190612850565b905062093a8061219e82866127b1565b6121a89190612885565b600184015550505b42600282018190556121c69062093a80906127b1565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061221c8661224c565b61222691906128a7565b6122309085612850565b61223a9190612885565b61224491906127b1565b949350505050565b600061225760025490565b61227a57506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122ad90612011565b6122b791906128a7565b6122c19190612850565b6122d390670de0b6b3a7640000612850565b6122dd9190612885565b6001600160a01b038316600090815260076020526040902060030154610bcf91906127b1565b6001600160a01b0383161561231b5761231b8361201d565b6001600160a01b03821615611ea657611ea68261201d565b6000612388826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124209092919063ffffffff16565b90508051600014806123a95750808060200190518101906123a991906128be565b611ea65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610777565b60008183106124175781612419565b825b9392505050565b6060612244848460008585600080866001600160a01b0316858760405161244791906128db565b60006040518083038185875af1925050503d8060008114612484576040519150601f19603f3d011682016040523d82523d6000602084013e612489565b606091505b509150915061249a878383876124a5565b979650505050505050565b6060831561251157825161250a576001600160a01b0385163b61250a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610777565b5081612244565b61224483838151156125265781518083602001fd5b8060405162461bcd60e51b8152600401610777919061256c565b60005b8381101561255b578181015183820152602001612543565b83811115611b615750506000910152565b602081526000825180602084015261258b816040850160208701612540565b601f01601f19169190910160400192915050565b6001600160a01b03811681146107fe57600080fd5b600080604083850312156125c757600080fd5b82356125d28161259f565b946020939093013593505050565b6000806000606084860312156125f557600080fd5b83356126008161259f565b925060208401356126108161259f565b929592945050506040919091013590565b60006020828403121561263357600080fd5b5035919050565b6000806040838503121561264d57600080fd5b82356126588161259f565b915060208301356126688161259f565b809150509250929050565b60006020828403121561268557600080fd5b81356124198161259f565b80151581146107fe57600080fd5b6000806000606084860312156126b357600080fd5b83356126be8161259f565b925060208401356126ce8161259f565b915060408401356126de81612690565b809150509250925092565b600080604083850312156126fc57600080fd5b82359150602083013561266881612690565b602080825282518282018190526000919060409081850190868401855b8281101561275957815180516001600160a01b0316855286015186850152928401929085019060010161272b565b5091979650505050505050565b600181811c9082168061277a57607f821691505b6020821081141561198c57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156127c4576127c461279b565b500190565b6000602082840312156127db57600080fd5b81516124198161259f565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156128305761283061279b565b5060010190565b60006020828403121561284957600080fd5b5051919050565b600081600019048311821515161561286a5761286a61279b565b500290565b634e487b7160e01b600052604160045260246000fd5b6000826128a257634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156128b9576128b961279b565b500390565b6000602082840312156128d057600080fd5b815161241981612690565b600082516128ed818460208701612540565b919091019291505056fea2646970667358221220642d172370cc73fc9edf5ec777200c10377583c2823caaa948773415bb2401c564736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb300000000000000000000000056b3c8ef8a095f8637b6a84942aa898326b82b91
-----Decoded View---------------
Arg [0] : _proxy (address): 0xd11a4Ee017cA0BECA8FA45fF2abFe9C6267b7881
Arg [1] : _cvxfxn (address): 0x183395DbD0B5e93323a7286D1973150697FFFCB3
Arg [2] : _depositor (address): 0x56B3c8eF8A095f8637B6A84942aA898326B82b91
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d11a4ee017ca0beca8fa45ff2abfe9c6267b7881
Arg [1] : 000000000000000000000000183395dbd0b5e93323a7286d1973150697fffcb3
Arg [2] : 00000000000000000000000056b3c8ef8a095f8637b6a84942aa898326b82b91
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.