ERC-20
Overview
Max Total Supply
717,807.107671535609896806 stkCvxFxs
Holders
306
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
547.526737847830546624 stkCvxFxsValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
cvxFxsStaking
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "./interfaces/MathUtil.sol"; import "./interfaces/IBooster.sol"; import "./interfaces/IVoterProxy.sol"; import "./interfaces/IFxsDepositor.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 cvxFxsStaking 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 vefxsProxy = address(0x59CFCD384746ec3035299D90782Be065e466800B); address public constant cvxfxs = address(0xFEEf77d3f69374f66429C91d732A244f074bdf74); address public constant fxs = address(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0); address public constant fxsDepositor = address(0x8f55d7c21bDFf1A51AFAa60f3De7590222A3181e); //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() ERC20( "Staked CvxFxs", "stkCvxFxs" ){ IERC20(fxs).approve(fxsDepositor,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); require(_rewardsToken != cvxfxs && _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 fxs for cvxfxs 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 fxs IERC20(fxs).safeTransferFrom(msg.sender, address(this), _amount); //deposit, cvxfxs will be returned here IFxsDepositor(fxsDepositor).deposit(_amount,_lock); emit Staked(msg.sender, _amount); } //deposit fxs for cvxfxs and stake function deposit(uint256 _amount) external{ deposit(_amount, false); } //deposit cvxfxs function stake(uint256 _amount) public nonReentrant{ require(_amount > 0, 'RewardPool : Cannot stake 0'); //mint will call _updateReward _mint(msg.sender, _amount); //pull cvxfxs IERC20(cvxfxs).safeTransferFrom(msg.sender, address(this), _amount); emit Staked(msg.sender, _amount); } //deposit all cvxfxs function stakeAll() external{ uint256 balance = IERC20(cvxfxs).balanceOf(msg.sender); stake(balance); } //deposit cvxfxs 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(cvxfxs).safeTransferFrom(msg.sender, address(this), _amount); emit Staked(_for, _amount); } //withdraw cvxfxs function withdraw(uint256 _amount) external nonReentrant{ require(_amount > 0, 'RewardPool : Cannot withdraw 0'); //burn will call _updateReward _burn(msg.sender, _amount); //send cvxfxs IERC20(cvxfxs).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 != cvxfxs, "Cannot withdraw staking token"); IERC20(_tokenAddress).safeTransfer(IBooster(IVoterProxy(vefxsProxy).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(vefxsProxy).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 IFxsDepositor { 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, 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; _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; } _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 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 pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "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":[],"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 cvxFxsStaking.EarnedData[]","name":"userRewards","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxfxs","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":"fxs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxsDepositor","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxsProxy","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
60806040523480156200001157600080fd5b50604080518082018252600d81526c5374616b65642043767846787360981b60208083019182528351808501909452600984526873746b43767846787360b81b908401528151919291620000689160039162000121565b5080516200007e90600490602084019062000121565b505060016005555060405163095ea7b360e01b8152738f55d7c21bdff1a51afaa60f3de7590222a3181e60048201526000196024820152733432b6a60d23ca0dfca7761b7ab56459d9c964d09063095ea7b3906044016020604051808303816000875af1158015620000f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011a9190620001c7565b506200022f565b8280546200012f90620001f2565b90600052602060002090601f0160209004810192826200015357600085556200019e565b82601f106200016e57805160ff19168380011785556200019e565b828001600101855582156200019e579182015b828111156200019e57825182559160200191906001019062000181565b50620001ac929150620001b0565b5090565b5b80821115620001ac5760008155600101620001b1565b600060208284031215620001da57600080fd5b81518015158114620001eb57600080fd5b9392505050565b600181811c908216806200020757607f821691505b602082108114156200022957634e487b7160e01b600052602260045260246000fd5b50919050565b61298e806200023f6000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80637d4234461161013b578063b66503cf116100b8578063dc01f60d1161007c578063dc01f60d14610597578063dd62ed3e146105b7578063e509b9d9146105f0578063e70b9e2714610619578063f12297771461064457600080fd5b8063b66503cf14610530578063b6b55f2514610543578063bcd1101414610556578063c00007b014610569578063cbca603b1461057c57600080fd5b80639850a11d116100ff5780639850a11d146104c95780639a408321146104e4578063a457c2d7146104f7578063a694fc3a1461050a578063a9059cbb1461051d57600080fd5b80637d42344614610483578063857cb94a1461049e5780638980f11f146104a65780638dcb4061146104b957806395d89b41146104c157600080fd5b806339fc9713116101c95780636b0916951161018d5780636b091695146103f65780637035ab981461040957806370a082311461043457806375a410141461045d5780637bb7bed11461047057600080fd5b806339fc97131461033a57806340b47e1a1461036857806348e5d9f81461037b578063638634ee146103d05780636724c910146103e357600080fd5b80632e1a7d4d116102105780632e1a7d4d146102e65780632ee40908146102fb578063313ce5671461030e578063386a95251461031d578063395093511461032757600080fd5b806306fdde031461024d578063095ea7b31461026b57806318160ddd1461028e578063193ba6d1146102a057806323b872dd146102d3575b600080fd5b610255610657565b6040516102629190612596565b60405180910390f35b61027e6102793660046125de565b6106e9565b6040519015158152602001610262565b6002545b604051908152602001610262565b6102bb7359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b039091168152602001610262565b61027e6102e136600461260a565b6106ff565b6102f96102f436600461264b565b6107b0565b005b6102f96103093660046125de565b61088c565b60405160128152602001610262565b61029262093a8081565b61027e6103353660046125de565b610977565b61027e610348366004612664565b600960209081526000928352604080842090915290825290205460ff1681565b6102f9610376366004612664565b6109b3565b6103b061038936600461269d565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102926103de36600461269d565b610c08565b6102f96103f13660046126c8565b610c30565b6102f9610404366004612664565b610dbd565b610292610417366004612664565b600a60209081526000928352604080842090915290825290205481565b61029261044236600461269d565b6001600160a01b031660009081526020819052604090205490565b6102f961046b36600461269d565b610f2d565b6102bb61047e36600461264b565b610fb1565b6102bb733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600654610292565b6102f96104b43660046125de565b610fdb565b6102f961131d565b6102556113a1565b6102bb73feef77d3f69374f66429c91d732a244f074bdf7481565b6102f96104f2366004612713565b6113b0565b61027e6105053660046125de565b6114ee565b6102f961051836600461264b565b611587565b61027e61052b3660046125de565b611658565b6102f961053e3660046125de565b611665565b6102f961055136600461264b565b61178f565b61029261056436600461269d565b61179a565b6102f961057736600461269d565b6117c4565b6102bb738f55d7c21bdff1a51afaa60f3de7590222a3181e81565b6105aa6105a536600461269d565b611939565b6040516102629190612738565b6102926105c5366004612664565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102bb6105fe36600461269d565b6008602052600090815260409020546001600160a01b031681565b610292610627366004612664565b600b60209081526000928352604080842090915290825290205481565b61029261065236600461269d565b611a6d565b60606003805461066690612790565b80601f016020809104026020016040519081016040528092919081815260200182805461069290612790565b80156106df5780601f106106b4576101008083540402835291602001916106df565b820191906000526020600020905b8154815290600101906020018083116106c257829003601f168201915b5050505050905090565b60006106f6338484611a78565b50600192915050565b600061070c848484611b9d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107965760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6107a38533858403611a78565b60019150505b9392505050565b600260055414156107d35760405162461bcd60e51b815260040161078d906127c5565b6002600555806108255760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f7420776974686472617720300000604482015260640161078d565b61082f3382611d78565b61084e73feef77d3f69374f66429c91d732a244f074bdf743383611ecf565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2506001600555565b600260055414156108af5760405162461bcd60e51b815260040161078d906127c5565b6002600555806109015760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015260640161078d565b61090b8282611f32565b61092b73feef77d3f69374f66429c91d732a244f074bdf7433308461201d565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8260405161096691815260200190565b60405180910390a250506001600555565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106f69185906109ae908690612812565b611a78565b336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a33919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a96919061282a565b6001600160a01b031614610abc5760405162461bcd60e51b815260040161078d90612847565b6001600160a01b03821660009081526007602052604090206002015415610ae257600080fd5b6001600160a01b03821673feef77d3f69374f66429c91d732a244f074bdf7414801590610b1857506001600160a01b0382163014155b610b545760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640161078d565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b038116600090815260076020526040812054610c2a90612055565b92915050565b336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb0919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610cef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d13919061282a565b6001600160a01b031614610d395760405162461bcd60e51b815260040161078d90612847565b6001600160a01b038316600090815260076020526040902060020154610d5e57600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b60026005541415610de05760405162461bcd60e51b815260040161078d906127c5565b600260055581610def81612061565b336001600160a01b03841614610e2f5760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b604482015260640161078d565b60005b600654811015610f2257600060068281548110610e5157610e51612867565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610f0d576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610ebf908683611ecf565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610f0491815260200190565b60405180910390a35b50508080610f1a9061287d565b915050610e32565b505060016005555050565b60026005541415610f505760405162461bcd60e51b815260040161078d906127c5565b60026005553360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c910161087c565b60068181548110610fc157600080fd5b6000918252602090912001546001600160a01b0316905081565b60026005541415610ffe5760405162461bcd60e51b815260040161078d906127c5565b6002600581905550336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611062573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611086919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156110c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e9919061282a565b6001600160a01b03161461110f5760405162461bcd60e51b815260040161078d90612847565b6001600160a01b038216600090815260076020526040902060020154156111785760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e00000000604482015260640161078d565b6001600160a01b03821673feef77d3f69374f66429c91d732a244f074bdf7414156111e55760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e000000604482015260640161078d565b6112d27359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125e919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c1919061282a565b6001600160a01b0384169083611ecf565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a150506001600555565b6040516370a0823160e01b815233600482015260009073feef77d3f69374f66429c91d732a244f074bdf74906370a0823190602401602060405180830381865afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113939190612898565b905061139e81611587565b50565b60606004805461066690612790565b600260055414156113d35760405162461bcd60e51b815260040161078d906127c5565b6002600555816114255760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f7369742030000000604482015260640161078d565b61142f3383611f32565b61144f733432b6a60d23ca0dfca7761b7ab56459d9c964d033308561201d565b604051639a40832160e01b8152600481018390528115156024820152738f55d7c21bdff1a51afaa60f3de7590222a3181e90639a40832190604401600060405180830381600087803b1580156114a457600080fd5b505af11580156114b8573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9150602001610966565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156115705760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161078d565b61157d3385858403611a78565b5060019392505050565b600260055414156115aa5760405162461bcd60e51b815260040161078d906127c5565b6002600555806115fc5760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015260640161078d565b6116063382611f32565b61162673feef77d3f69374f66429c91d732a244f074bdf7433308461201d565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200161087c565b60006106f6338484611b9d565b600260055414156116885760405162461bcd60e51b815260040161078d906127c5565b6002600555600061169881612061565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff166116c857600080fd5b6000821180156116e457506c0c9f2c9cd04674edea4000000082105b6117235760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b604482015260640161078d565b61172d8383612177565b6117426001600160a01b03841633308561201d565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e298360405161177d91815260200190565b60405180910390a25050600160055550565b61139e8160006113b0565b6001600160a01b038116600090815260076020526040812060010154610c2a9062093a80906128b1565b600260055414156117e75760405162461bcd60e51b815260040161078d906127c5565b6002600555806117f681612061565b60005b60065481101561192f5760006006828154811061181857611818612867565b60009182526020808320909101546001600160a01b038781168452600b8352604080852091909216808552925290912054909150801561191a576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156118b8576001600160a01b038086166000908152600860205260409020546118b391848116911683611ecf565b6118cc565b6118cc6001600160a01b0383168683611ecf565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161191191815260200190565b60405180910390a35b505080806119279061287d565b9150506117f9565b5050600160055550565b60065460609067ffffffffffffffff811115611957576119576128d0565b60405190808252806020026020018201604052801561199c57816020015b60408051808201909152600080825260208201528152602001906001900390816119755790505b50905060005b8151811015611a67576000600682815481106119c0576119c0612867565b9060005260206000200160009054906101000a90046001600160a01b03169050808383815181106119f3576119f3612867565b60209081029190910101516001600160a01b039091169052611a348482611a2f826001600160a01b031660009081526020819052604090205490565b612210565b838381518110611a4657611a46612867565b60209081029190910181015101525080611a5f8161287d565b9150506119a2565b50919050565b6000610c2a82612290565b6001600160a01b038316611ada5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161078d565b6001600160a01b038216611b3b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161078d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611c015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161078d565b6001600160a01b038216611c635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161078d565b611c6e838383612347565b6001600160a01b03831660009081526020819052604090205481811015611ce65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161078d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611d1d908490612812565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d6991815260200190565b60405180910390a35b50505050565b6001600160a01b038216611dd85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161078d565b611de482600083612347565b6001600160a01b03821660009081526020819052604090205481811015611e585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161078d565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611e879084906128e6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611b90565b505050565b6040516001600160a01b038316602482015260448101829052611eca90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612377565b6001600160a01b038216611f885760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161078d565b611f9460008383612347565b8060026000828254611fa69190612812565b90915550506001600160a01b03821660009081526020819052604081208054839290611fd3908490612812565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611d729085906323b872dd60e01b90608401611efb565b6000610c2a4283612449565b6001600160a01b038116600090815260208190526040812054905b600654811015611eca5760006006828154811061209b5761209b612867565b6000918252602090912001546001600160a01b031690506120bb81612290565b6001600160a01b03821660009081526007602052604090206003810191909155546120e590612055565b6001600160a01b0380831660009081526007602052604090206002019190915584161561216457612117848285612210565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b508061216f8161287d565b91505061207c565b6001600160a01b0382166000908152600760205260409020805442106121ae576121a462093a80836128fd565b60018201556121f4565b80546000906121be9042906128e6565b905060008260010154826121d291906128b1565b905062093a806121e28286612812565b6121ec91906128fd565b600184015550505b426002820181905561220a9062093a8090612812565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061226086612290565b61226a91906128e6565b61227490856128b1565b61227e91906128fd565b6122889190612812565b949350505050565b600061229b60025490565b6122be57506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122f190612055565b6122fb91906128e6565b61230591906128b1565b61231790670de0b6b3a76400006128b1565b61232191906128fd565b6001600160a01b038316600090815260076020526040902060030154610c2a9190612812565b6001600160a01b0383161561235f5761235f83612061565b6001600160a01b03821615611eca57611eca82612061565b60006123cc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661245f9092919063ffffffff16565b805190915015611eca57808060200190518101906123ea919061291f565b611eca5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161078d565b600081831061245857816107a9565b5090919050565b6060612288848460008585843b6124b85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161078d565b600080866001600160a01b031685876040516124d4919061293c565b60006040518083038185875af1925050503d8060008114612511576040519150601f19603f3d011682016040523d82523d6000602084013e612516565b606091505b5091509150612526828286612531565b979650505050505050565b606083156125405750816107a9565b8251156125505782518084602001fd5b8160405162461bcd60e51b815260040161078d9190612596565b60005b8381101561258557818101518382015260200161256d565b83811115611d725750506000910152565b60208152600082518060208401526125b581604085016020870161256a565b601f01601f19169190910160400192915050565b6001600160a01b038116811461139e57600080fd5b600080604083850312156125f157600080fd5b82356125fc816125c9565b946020939093013593505050565b60008060006060848603121561261f57600080fd5b833561262a816125c9565b9250602084013561263a816125c9565b929592945050506040919091013590565b60006020828403121561265d57600080fd5b5035919050565b6000806040838503121561267757600080fd5b8235612682816125c9565b91506020830135612692816125c9565b809150509250929050565b6000602082840312156126af57600080fd5b81356107a9816125c9565b801515811461139e57600080fd5b6000806000606084860312156126dd57600080fd5b83356126e8816125c9565b925060208401356126f8816125c9565b91506040840135612708816126ba565b809150509250925092565b6000806040838503121561272657600080fd5b823591506020830135612692816126ba565b602080825282518282018190526000919060409081850190868401855b8281101561278357815180516001600160a01b03168552860151868501529284019290850190600101612755565b5091979650505050505050565b600181811c908216806127a457607f821691505b60208210811415611a6757634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612825576128256127fc565b500190565b60006020828403121561283c57600080fd5b81516107a9816125c9565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612891576128916127fc565b5060010190565b6000602082840312156128aa57600080fd5b5051919050565b60008160001904831182151516156128cb576128cb6127fc565b500290565b634e487b7160e01b600052604160045260246000fd5b6000828210156128f8576128f86127fc565b500390565b60008261291a57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561293157600080fd5b81516107a9816126ba565b6000825161294e81846020870161256a565b919091019291505056fea2646970667358221220e685c9221cb0b52264063d1ba04974dcc5ba609b72f1f70d9ba37ac6e77a51fb64736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102485760003560e01c80637d4234461161013b578063b66503cf116100b8578063dc01f60d1161007c578063dc01f60d14610597578063dd62ed3e146105b7578063e509b9d9146105f0578063e70b9e2714610619578063f12297771461064457600080fd5b8063b66503cf14610530578063b6b55f2514610543578063bcd1101414610556578063c00007b014610569578063cbca603b1461057c57600080fd5b80639850a11d116100ff5780639850a11d146104c95780639a408321146104e4578063a457c2d7146104f7578063a694fc3a1461050a578063a9059cbb1461051d57600080fd5b80637d42344614610483578063857cb94a1461049e5780638980f11f146104a65780638dcb4061146104b957806395d89b41146104c157600080fd5b806339fc9713116101c95780636b0916951161018d5780636b091695146103f65780637035ab981461040957806370a082311461043457806375a410141461045d5780637bb7bed11461047057600080fd5b806339fc97131461033a57806340b47e1a1461036857806348e5d9f81461037b578063638634ee146103d05780636724c910146103e357600080fd5b80632e1a7d4d116102105780632e1a7d4d146102e65780632ee40908146102fb578063313ce5671461030e578063386a95251461031d578063395093511461032757600080fd5b806306fdde031461024d578063095ea7b31461026b57806318160ddd1461028e578063193ba6d1146102a057806323b872dd146102d3575b600080fd5b610255610657565b6040516102629190612596565b60405180910390f35b61027e6102793660046125de565b6106e9565b6040519015158152602001610262565b6002545b604051908152602001610262565b6102bb7359cfcd384746ec3035299d90782be065e466800b81565b6040516001600160a01b039091168152602001610262565b61027e6102e136600461260a565b6106ff565b6102f96102f436600461264b565b6107b0565b005b6102f96103093660046125de565b61088c565b60405160128152602001610262565b61029262093a8081565b61027e6103353660046125de565b610977565b61027e610348366004612664565b600960209081526000928352604080842090915290825290205460ff1681565b6102f9610376366004612664565b6109b3565b6103b061038936600461269d565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610262565b6102926103de36600461269d565b610c08565b6102f96103f13660046126c8565b610c30565b6102f9610404366004612664565b610dbd565b610292610417366004612664565b600a60209081526000928352604080842090915290825290205481565b61029261044236600461269d565b6001600160a01b031660009081526020819052604090205490565b6102f961046b36600461269d565b610f2d565b6102bb61047e36600461264b565b610fb1565b6102bb733432b6a60d23ca0dfca7761b7ab56459d9c964d081565b600654610292565b6102f96104b43660046125de565b610fdb565b6102f961131d565b6102556113a1565b6102bb73feef77d3f69374f66429c91d732a244f074bdf7481565b6102f96104f2366004612713565b6113b0565b61027e6105053660046125de565b6114ee565b6102f961051836600461264b565b611587565b61027e61052b3660046125de565b611658565b6102f961053e3660046125de565b611665565b6102f961055136600461264b565b61178f565b61029261056436600461269d565b61179a565b6102f961057736600461269d565b6117c4565b6102bb738f55d7c21bdff1a51afaa60f3de7590222a3181e81565b6105aa6105a536600461269d565b611939565b6040516102629190612738565b6102926105c5366004612664565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102bb6105fe36600461269d565b6008602052600090815260409020546001600160a01b031681565b610292610627366004612664565b600b60209081526000928352604080842090915290825290205481565b61029261065236600461269d565b611a6d565b60606003805461066690612790565b80601f016020809104026020016040519081016040528092919081815260200182805461069290612790565b80156106df5780601f106106b4576101008083540402835291602001916106df565b820191906000526020600020905b8154815290600101906020018083116106c257829003601f168201915b5050505050905090565b60006106f6338484611a78565b50600192915050565b600061070c848484611b9d565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107965760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6107a38533858403611a78565b60019150505b9392505050565b600260055414156107d35760405162461bcd60e51b815260040161078d906127c5565b6002600555806108255760405162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f7420776974686472617720300000604482015260640161078d565b61082f3382611d78565b61084e73feef77d3f69374f66429c91d732a244f074bdf743383611ecf565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2506001600555565b600260055414156108af5760405162461bcd60e51b815260040161078d906127c5565b6002600555806109015760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015260640161078d565b61090b8282611f32565b61092b73feef77d3f69374f66429c91d732a244f074bdf7433308461201d565b816001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8260405161096691815260200190565b60405180910390a250506001600555565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106f69185906109ae908690612812565b611a78565b336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a33919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a96919061282a565b6001600160a01b031614610abc5760405162461bcd60e51b815260040161078d90612847565b6001600160a01b03821660009081526007602052604090206002015415610ae257600080fd5b6001600160a01b03821673feef77d3f69374f66429c91d732a244f074bdf7414801590610b1857506001600160a01b0382163014155b610b545760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b604482015260640161078d565b6006805460018082019092557ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038581169182179092556000818152600760209081526040808320426002820181905590556009825280832094871680845294909152808220805460ff19169095179094559251919290917f766c9ea233f83f351d6be4cb95362682949d7699abd8698799beae0db83ad96e9190a35050565b6001600160a01b038116600090815260076020526040812054610c2a90612055565b92915050565b336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb0919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610cef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d13919061282a565b6001600160a01b031614610d395760405162461bcd60e51b815260040161078d90612847565b6001600160a01b038316600090815260076020526040902060020154610d5e57600080fd5b6001600160a01b03838116600081815260096020908152604080832094871680845294909152808220805460ff1916861515179055517f2b78dc41f71ae29cc42d4714f937a272ae1319b7137e38be4965b443181b72379190a3505050565b60026005541415610de05760405162461bcd60e51b815260040161078d906127c5565b600260055581610def81612061565b336001600160a01b03841614610e2f5760405162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b604482015260640161078d565b60005b600654811015610f2257600060068281548110610e5157610e51612867565b60009182526020808320909101546001600160a01b038881168452600b83526040808520919092168085529252909120549091508015610f0d576001600160a01b038087166000908152600b6020908152604080832093861680845293909152812055610ebf908683611ecf565b816001600160a01b0316866001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e83604051610f0491815260200190565b60405180910390a35b50508080610f1a9061287d565b915050610e32565b505060016005555050565b60026005541415610f505760405162461bcd60e51b815260040161078d906127c5565b60026005553360008181526008602090815260409182902080546001600160a01b0319166001600160a01b03861690811790915591519182527ff4239ad0860f93469699dd4be8040b8838c5e25bb6cf24a1dfb381b937ff078c910161087c565b60068181548110610fc157600080fd5b6000918252602090912001546001600160a01b0316905081565b60026005541415610ffe5760405162461bcd60e51b815260040161078d906127c5565b6002600581905550336001600160a01b03167359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa158015611062573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611086919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af11580156110c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e9919061282a565b6001600160a01b03161461110f5760405162461bcd60e51b815260040161078d90612847565b6001600160a01b038216600090815260076020526040902060020154156111785760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e00000000604482015260640161078d565b6001600160a01b03821673feef77d3f69374f66429c91d732a244f074bdf7414156111e55760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e000000604482015260640161078d565b6112d27359cfcd384746ec3035299d90782be065e466800b6001600160a01b031663570ca7356040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125e919061282a565b6001600160a01b0316630f4ef8a66040518163ffffffff1660e01b81526004016020604051808303816000875af115801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c1919061282a565b6001600160a01b0384169083611ecf565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a150506001600555565b6040516370a0823160e01b815233600482015260009073feef77d3f69374f66429c91d732a244f074bdf74906370a0823190602401602060405180830381865afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113939190612898565b905061139e81611587565b50565b60606004805461066690612790565b600260055414156113d35760405162461bcd60e51b815260040161078d906127c5565b6002600555816114255760405162461bcd60e51b815260206004820152601d60248201527f526577617264506f6f6c203a2043616e6e6f74206465706f7369742030000000604482015260640161078d565b61142f3383611f32565b61144f733432b6a60d23ca0dfca7761b7ab56459d9c964d033308561201d565b604051639a40832160e01b8152600481018390528115156024820152738f55d7c21bdff1a51afaa60f3de7590222a3181e90639a40832190604401600060405180830381600087803b1580156114a457600080fd5b505af11580156114b8573d6000803e3d6000fd5b50506040518481523392507f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9150602001610966565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156115705760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161078d565b61157d3385858403611a78565b5060019392505050565b600260055414156115aa5760405162461bcd60e51b815260040161078d906127c5565b6002600555806115fc5760405162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015260640161078d565b6116063382611f32565b61162673feef77d3f69374f66429c91d732a244f074bdf7433308461201d565b60405181815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200161087c565b60006106f6338484611b9d565b600260055414156116885760405162461bcd60e51b815260040161078d906127c5565b6002600555600061169881612061565b6001600160a01b038316600090815260096020908152604080832033845290915290205460ff166116c857600080fd5b6000821180156116e457506c0c9f2c9cd04674edea4000000082105b6117235760405162461bcd60e51b815260206004820152601060248201526f626164207265776172642076616c756560801b604482015260640161078d565b61172d8383612177565b6117426001600160a01b03841633308561201d565b826001600160a01b03167fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e298360405161177d91815260200190565b60405180910390a25050600160055550565b61139e8160006113b0565b6001600160a01b038116600090815260076020526040812060010154610c2a9062093a80906128b1565b600260055414156117e75760405162461bcd60e51b815260040161078d906127c5565b6002600555806117f681612061565b60005b60065481101561192f5760006006828154811061181857611818612867565b60009182526020808320909101546001600160a01b038781168452600b8352604080852091909216808552925290912054909150801561191a576001600160a01b038086166000818152600b602090815260408083208786168452825280832083905592825260089052205416156118b8576001600160a01b038086166000908152600860205260409020546118b391848116911683611ecf565b6118cc565b6118cc6001600160a01b0383168683611ecf565b816001600160a01b0316856001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161191191815260200190565b60405180910390a35b505080806119279061287d565b9150506117f9565b5050600160055550565b60065460609067ffffffffffffffff811115611957576119576128d0565b60405190808252806020026020018201604052801561199c57816020015b60408051808201909152600080825260208201528152602001906001900390816119755790505b50905060005b8151811015611a67576000600682815481106119c0576119c0612867565b9060005260206000200160009054906101000a90046001600160a01b03169050808383815181106119f3576119f3612867565b60209081029190910101516001600160a01b039091169052611a348482611a2f826001600160a01b031660009081526020819052604090205490565b612210565b838381518110611a4657611a46612867565b60209081029190910181015101525080611a5f8161287d565b9150506119a2565b50919050565b6000610c2a82612290565b6001600160a01b038316611ada5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161078d565b6001600160a01b038216611b3b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161078d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611c015760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161078d565b6001600160a01b038216611c635760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161078d565b611c6e838383612347565b6001600160a01b03831660009081526020819052604090205481811015611ce65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161078d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611d1d908490612812565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d6991815260200190565b60405180910390a35b50505050565b6001600160a01b038216611dd85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161078d565b611de482600083612347565b6001600160a01b03821660009081526020819052604090205481811015611e585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161078d565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611e879084906128e6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611b90565b505050565b6040516001600160a01b038316602482015260448101829052611eca90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612377565b6001600160a01b038216611f885760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161078d565b611f9460008383612347565b8060026000828254611fa69190612812565b90915550506001600160a01b03821660009081526020819052604081208054839290611fd3908490612812565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611d729085906323b872dd60e01b90608401611efb565b6000610c2a4283612449565b6001600160a01b038116600090815260208190526040812054905b600654811015611eca5760006006828154811061209b5761209b612867565b6000918252602090912001546001600160a01b031690506120bb81612290565b6001600160a01b03821660009081526007602052604090206003810191909155546120e590612055565b6001600160a01b0380831660009081526007602052604090206002019190915584161561216457612117848285612210565b6001600160a01b038086166000818152600b60209081526040808320948716808452948252808320959095556007815284822060030154928252600a815284822093825292909252919020555b508061216f8161287d565b91505061207c565b6001600160a01b0382166000908152600760205260409020805442106121ae576121a462093a80836128fd565b60018201556121f4565b80546000906121be9042906128e6565b905060008260010154826121d291906128b1565b905062093a806121e28286612812565b6121ec91906128fd565b600184015550505b426002820181905561220a9062093a8090612812565b90555050565b6001600160a01b038084166000818152600b6020908152604080832094871680845294825280832054938352600a825280832094835293905291822054670de0b6b3a76400009061226086612290565b61226a91906128e6565b61227490856128b1565b61227e91906128fd565b6122889190612812565b949350505050565b600061229b60025490565b6122be57506001600160a01b031660009081526007602052604090206003015490565b6002546001600160a01b03831660009081526007602052604090206001810154600282015491549091906122f190612055565b6122fb91906128e6565b61230591906128b1565b61231790670de0b6b3a76400006128b1565b61232191906128fd565b6001600160a01b038316600090815260076020526040902060030154610c2a9190612812565b6001600160a01b0383161561235f5761235f83612061565b6001600160a01b03821615611eca57611eca82612061565b60006123cc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661245f9092919063ffffffff16565b805190915015611eca57808060200190518101906123ea919061291f565b611eca5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161078d565b600081831061245857816107a9565b5090919050565b6060612288848460008585843b6124b85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161078d565b600080866001600160a01b031685876040516124d4919061293c565b60006040518083038185875af1925050503d8060008114612511576040519150601f19603f3d011682016040523d82523d6000602084013e612516565b606091505b5091509150612526828286612531565b979650505050505050565b606083156125405750816107a9565b8251156125505782518084602001fd5b8160405162461bcd60e51b815260040161078d9190612596565b60005b8381101561258557818101518382015260200161256d565b83811115611d725750506000910152565b60208152600082518060208401526125b581604085016020870161256a565b601f01601f19169190910160400192915050565b6001600160a01b038116811461139e57600080fd5b600080604083850312156125f157600080fd5b82356125fc816125c9565b946020939093013593505050565b60008060006060848603121561261f57600080fd5b833561262a816125c9565b9250602084013561263a816125c9565b929592945050506040919091013590565b60006020828403121561265d57600080fd5b5035919050565b6000806040838503121561267757600080fd5b8235612682816125c9565b91506020830135612692816125c9565b809150509250929050565b6000602082840312156126af57600080fd5b81356107a9816125c9565b801515811461139e57600080fd5b6000806000606084860312156126dd57600080fd5b83356126e8816125c9565b925060208401356126f8816125c9565b91506040840135612708816126ba565b809150509250925092565b6000806040838503121561272657600080fd5b823591506020830135612692816126ba565b602080825282518282018190526000919060409081850190868401855b8281101561278357815180516001600160a01b03168552860151868501529284019290850190600101612755565b5091979650505050505050565b600181811c908216806127a457607f821691505b60208210811415611a6757634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612825576128256127fc565b500190565b60006020828403121561283c57600080fd5b81516107a9816125c9565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612891576128916127fc565b5060010190565b6000602082840312156128aa57600080fd5b5051919050565b60008160001904831182151516156128cb576128cb6127fc565b500290565b634e487b7160e01b600052604160045260246000fd5b6000828210156128f8576128f86127fc565b500390565b60008261291a57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561293157600080fd5b81516107a9816126ba565b6000825161294e81846020870161256a565b919091019291505056fea2646970667358221220e685c9221cb0b52264063d1ba04974dcc5ba609b72f1f70d9ba37ac6e77a51fb64736f6c634300080a0033
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.