ERC-20
Overview
Max Total Supply
52,522.222683018442716586 uCRV
Holders
691
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000011 uCRVValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UnionVault
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-01-11 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; // Part: IBasicRewards interface IBasicRewards { function stakeFor(address, uint256) external returns (bool); function balanceOf(address) external view returns (uint256); function earned(address) external view returns (uint256); function withdrawAll(bool) external returns (bool); function withdraw(uint256, bool) external returns (bool); function getReward() external returns (bool); function stake(uint256) external returns (bool); } // Part: ICurveFactoryPool interface ICurveFactoryPool { function get_dy( int128 i, int128 j, uint256 dx ) external view returns (uint256); function get_balances() external view returns (uint256[2] memory); function add_liquidity( uint256[2] memory _amounts, uint256 _min_mint_amount, address _receiver ) external returns (uint256); function exchange( int128 i, int128 j, uint256 _dx, uint256 _min_dy, address _receiver ) external returns (uint256); } // Part: ICurvePool interface ICurvePool { function remove_liquidity_one_coin( uint256 token_amount, int128 i, uint256 min_amount ) external; function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256); } // Part: ICurveTriCrypto interface ICurveTriCrypto { function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth ) external; function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); } // Part: ICurveV2Pool interface ICurveV2Pool { function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); function exchange_underlying( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external payable returns (uint256); } // Part: ICvxCrvDeposit interface ICvxCrvDeposit { function deposit(uint256, bool) external; } // Part: ICvxMining interface ICvxMining { function ConvertCrvToCvx(uint256 _amount) external view returns (uint256); } // Part: IVirtualBalanceRewardPool interface IVirtualBalanceRewardPool { function earned(address account) external view returns (uint256); } // Part: OpenZeppelin/[email protected]/Address /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: OpenZeppelin/[email protected]/Context /* * @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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Part: OpenZeppelin/[email protected]/IERC20 /** * @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); } // Part: OpenZeppelin/[email protected]/ReentrancyGuard /** * @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; } } // Part: OpenZeppelin/[email protected]/IERC20Metadata /** * @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); } // Part: OpenZeppelin/[email protected]/Ownable /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Part: OpenZeppelin/[email protected]/SafeERC20 /** * @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' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + 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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Part: UnionBase // Common variables and functions contract UnionBase { address public constant CVXCRV_STAKING_CONTRACT = 0x3Fe65692bfCD0e6CF84cB1E7d24108E434A7587e; address public constant CURVE_CRV_ETH_POOL = 0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511; address public constant CURVE_CVX_ETH_POOL = 0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4; address public constant CURVE_CVXCRV_CRV_POOL = 0x9D0464996170c6B9e75eED71c68B99dDEDf279e8; address public constant CRV_TOKEN = 0xD533a949740bb3306d119CC777fa900bA034cd52; address public constant CVXCRV_TOKEN = 0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7; address public constant CVX_TOKEN = 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B; uint256 public constant CRVETH_ETH_INDEX = 0; uint256 public constant CRVETH_CRV_INDEX = 1; int128 public constant CVXCRV_CRV_INDEX = 0; int128 public constant CVXCRV_CVXCRV_INDEX = 1; uint256 public constant CVXETH_ETH_INDEX = 0; uint256 public constant CVXETH_CVX_INDEX = 1; IBasicRewards cvxCrvStaking = IBasicRewards(CVXCRV_STAKING_CONTRACT); ICurveV2Pool cvxEthSwap = ICurveV2Pool(CURVE_CVX_ETH_POOL); ICurveV2Pool crvEthSwap = ICurveV2Pool(CURVE_CRV_ETH_POOL); ICurveFactoryPool crvCvxCrvSwap = ICurveFactoryPool(CURVE_CVXCRV_CRV_POOL); /// @notice Swap CRV for cvxCRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @return amount of CRV obtained after the swap function _swapCrvToCvxCrv(uint256 amount, address recipient) internal returns (uint256) { return _crvToCvxCrv(amount, recipient, 0); } /// @notice Swap CRV for cvxCRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _swapCrvToCvxCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return _crvToCvxCrv(amount, recipient, minAmountOut); } /// @notice Swap CRV for cvxCRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _crvToCvxCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return crvCvxCrvSwap.exchange( CVXCRV_CRV_INDEX, CVXCRV_CVXCRV_INDEX, amount, minAmountOut, recipient ); } /// @notice Swap cvxCRV for CRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @return amount of CRV obtained after the swap function _swapCvxCrvToCrv(uint256 amount, address recipient) internal returns (uint256) { return _cvxCrvToCrv(amount, recipient, 0); } /// @notice Swap cvxCRV for CRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _swapCvxCrvToCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return _cvxCrvToCrv(amount, recipient, minAmountOut); } /// @notice Swap cvxCRV for CRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _cvxCrvToCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return crvCvxCrvSwap.exchange( CVXCRV_CVXCRV_INDEX, CVXCRV_CRV_INDEX, amount, minAmountOut, recipient ); } /// @notice Swap CRV for native ETH on Curve /// @param amount - amount to swap /// @return amount of ETH obtained after the swap function _swapCrvToEth(uint256 amount) internal returns (uint256) { return _crvToEth(amount, 0); } /// @notice Swap CRV for native ETH on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of ETH obtained after the swap function _swapCrvToEth(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return _crvToEth(amount, minAmountOut); } /// @notice Swap CRV for native ETH on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of ETH obtained after the swap function _crvToEth(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return crvEthSwap.exchange_underlying{value: 0}( CRVETH_CRV_INDEX, CRVETH_ETH_INDEX, amount, minAmountOut ); } /// @notice Swap native ETH for CRV on Curve /// @param amount - amount to swap /// @return amount of CRV obtained after the swap function _swapEthToCrv(uint256 amount) internal returns (uint256) { return _ethToCrv(amount, 0); } /// @notice Swap native ETH for CRV on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _swapEthToCrv(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return _ethToCrv(amount, minAmountOut); } /// @notice Swap native ETH for CRV on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _ethToCrv(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return crvEthSwap.exchange_underlying{value: amount}( CRVETH_ETH_INDEX, CRVETH_CRV_INDEX, amount, minAmountOut ); } /// @notice Swap native ETH for CVX on Curve /// @param amount - amount to swap /// @return amount of CRV obtained after the swap function _swapEthToCvx(uint256 amount) internal returns (uint256) { return _ethToCvx(amount, 0); } /// @notice Swap native ETH for CVX on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _swapEthToCvx(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return _ethToCvx(amount, minAmountOut); } /// @notice Swap native ETH for CVX on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _ethToCvx(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return cvxEthSwap.exchange_underlying{value: amount}( CVXETH_ETH_INDEX, CVXETH_CVX_INDEX, amount, minAmountOut ); } modifier notToZeroAddress(address _to) { require(_to != address(0), "Invalid address!"); _; } } // Part: ClaimZaps contract ClaimZaps is ReentrancyGuard, UnionBase { using SafeERC20 for IERC20; // Possible options when claiming enum Option { Claim, ClaimAsETH, ClaimAsCRV, ClaimAsCVX, ClaimAndStake } /// @notice Set approvals for the tokens used when swapping function _setApprovals() internal { IERC20(CRV_TOKEN).safeApprove(CURVE_CRV_ETH_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CRV_ETH_POOL, type(uint256).max); IERC20(CVXCRV_TOKEN).safeApprove(CVXCRV_STAKING_CONTRACT, 0); IERC20(CVXCRV_TOKEN).safeApprove( CVXCRV_STAKING_CONTRACT, type(uint256).max ); IERC20(CVXCRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CVXCRV_TOKEN).safeApprove( CURVE_CVXCRV_CRV_POOL, type(uint256).max ); } function _claimAs( address account, uint256 amount, Option option ) internal { _claim(account, amount, option, 0); } function _claimAs( address account, uint256 amount, Option option, uint256 minAmountOut ) internal { _claim(account, amount, option, minAmountOut); } /// @notice Zap function to claim token balance as another token /// @param account - recipient of the swapped token /// @param amount - amount to swap /// @param option - what to swap to /// @param minAmountOut - minimum desired amount of output token function _claim( address account, uint256 amount, Option option, uint256 minAmountOut ) internal nonReentrant { if (option == Option.ClaimAsCRV) { _swapCvxCrvToCrv(amount, account, minAmountOut); } else if (option == Option.ClaimAsETH) { uint256 _crvBalance = _swapCvxCrvToCrv(amount, address(this)); uint256 _ethAmount = _swapCrvToEth(_crvBalance, minAmountOut); (bool success, ) = account.call{value: _ethAmount}(""); require(success, "ETH transfer failed"); } else if (option == Option.ClaimAsCVX) { uint256 _crvBalance = _swapCvxCrvToCrv(amount, address(this)); uint256 _ethAmount = _swapCrvToEth(_crvBalance); uint256 _cvxAmount = _swapEthToCvx(_ethAmount, minAmountOut); IERC20(CVX_TOKEN).safeTransfer(account, _cvxAmount); } else if (option == Option.ClaimAndStake) { require(cvxCrvStaking.stakeFor(account, amount), "Staking failed"); } else { IERC20(CVXCRV_TOKEN).safeTransfer(account, amount); } } } // Part: OpenZeppelin/[email protected]/ERC20 /** * @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 guidelines: functions revert instead * of 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 defaut 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"); _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"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(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: * * - `to` 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); } /** * @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"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(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 to 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 { } } // File: UnionVault.sol contract UnionVault is ClaimZaps, ERC20, Ownable { using SafeERC20 for IERC20; address private constant TRIPOOL = 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7; address private constant THREECRV_TOKEN = 0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490; address private constant USDT_TOKEN = 0xdAC17F958D2ee523a2206206994597C13D831ec7; address private constant TRICRYPTO = 0xD51a44d3FaE010294C616388b506AcdA1bfAAE46; address private constant CVX_MINING_LIB = 0x3c75BFe6FbfDa3A94E7E7E8c2216AFc684dE5343; address private constant THREE_CRV_REWARDS = 0x7091dbb7fcbA54569eF1387Ac89Eb2a5C9F6d2EA; address private constant CVXCRV_DEPOSIT = 0x8014595F2AB54cD7c604B00E9fb932176fDc86Ae; address public platform = 0x9Bc7c6ad7E7Cf3A6fCB58fb21e27752AC1e53f99; uint256 public withdrawalPenalty = 100; uint256 public constant MAX_WITHDRAWAL_PENALTY = 150; uint256 public platformFee = 500; uint256 public constant MAX_PLATFORM_FEE = 2000; uint256 public callIncentive = 500; uint256 public constant MAX_CALL_INCENTIVE = 500; uint256 public constant FEE_DENOMINATOR = 10000; ICurvePool private tripool = ICurvePool(TRIPOOL); ICurveTriCrypto private tricrypto = ICurveTriCrypto(TRICRYPTO); event Harvest(address indexed _caller, uint256 _value); event Deposit(address indexed _from, address indexed _to, uint256 _value); event Withdraw(address indexed _from, address indexed _to, uint256 _value); event WithdrawalPenaltyUpdated(uint256 _penalty); event CallerIncentiveUpdated(uint256 _incentive); event PlatformFeeUpdated(uint256 _fee); event PlatformUpdated(address indexed _platform); constructor() ERC20( string(abi.encodePacked("Unionized cvxCRV")), string(abi.encodePacked("uCRV")) ) {} /// @notice Set approvals for the contracts used when swapping & staking function setApprovals() external onlyOwner { IERC20(THREECRV_TOKEN).safeApprove(TRIPOOL, 0); IERC20(THREECRV_TOKEN).safeApprove(TRIPOOL, type(uint256).max); IERC20(CVX_TOKEN).safeApprove(CURVE_CVX_ETH_POOL, 0); IERC20(CVX_TOKEN).safeApprove(CURVE_CVX_ETH_POOL, type(uint256).max); IERC20(USDT_TOKEN).safeApprove(TRICRYPTO, 0); IERC20(USDT_TOKEN).safeApprove(TRICRYPTO, type(uint256).max); IERC20(CRV_TOKEN).safeApprove(CVXCRV_DEPOSIT, 0); IERC20(CRV_TOKEN).safeApprove(CVXCRV_DEPOSIT, type(uint256).max); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, type(uint256).max); _setApprovals(); } /// @notice Updates the withdrawal penalty /// @param _penalty - the amount of the new penalty (in BIPS) function setWithdrawalPenalty(uint256 _penalty) external onlyOwner { require(_penalty <= MAX_WITHDRAWAL_PENALTY); withdrawalPenalty = _penalty; emit WithdrawalPenaltyUpdated(_penalty); } /// @notice Updates the caller incentive for harvests /// @param _incentive - the amount of the new incentive (in BIPS) function setCallIncentive(uint256 _incentive) external onlyOwner { require(_incentive <= MAX_CALL_INCENTIVE); callIncentive = _incentive; emit CallerIncentiveUpdated(_incentive); } /// @notice Updates the part of yield redirected to the platform /// @param _fee - the amount of the new platform fee (in BIPS) function setPlatformFee(uint256 _fee) external onlyOwner { require(_fee <= MAX_PLATFORM_FEE); platformFee = _fee; emit PlatformFeeUpdated(_fee); } /// @notice Updates the address to which platform fees are paid out /// @param _platform - the new platform wallet address function setPlatform(address _platform) external onlyOwner notToZeroAddress(_platform) { platform = _platform; emit PlatformUpdated(_platform); } /// @notice Query the amount currently staked /// @return total - the total amount of tokens staked function totalUnderlying() public view returns (uint256 total) { return cvxCrvStaking.balanceOf(address(this)); } /// @notice Query the total amount of currently claimable CRV /// @return total - the total amount of CRV claimable function outstandingCrvRewards() public view returns (uint256 total) { return cvxCrvStaking.earned(address(this)); } /// @notice Query the total amount of currently claimable CVX /// @return total - the total amount of CVX claimable function outstandingCvxRewards() external view returns (uint256 total) { return ICvxMining(CVX_MINING_LIB).ConvertCrvToCvx(outstandingCrvRewards()); } /// @notice Query the total amount of currently claimable 3CRV /// @return total - the total amount of 3CRV claimable function outstanding3CrvRewards() external view returns (uint256 total) { return IVirtualBalanceRewardPool(THREE_CRV_REWARDS).earned(address(this)); } /// @notice Returns the amount of cvxCRV a user can claim /// @param user - address whose claimable amount to query /// @return amount - claimable amount /// @dev Does not account for penalties and fees function balanceOfUnderlying(address user) external view returns (uint256 amount) { require(totalSupply() > 0, "No users"); return ((balanceOf(user) * totalUnderlying()) / totalSupply()); } /// @notice Returns the address of the underlying token function underlying() external view returns (address) { return CVXCRV_TOKEN; } /// @notice Claim rewards and swaps them to cvxCrv for restaking /// @dev Can be called by anyone against an incentive in cvxCrv function harvest() public { // claim rewards cvxCrvStaking.getReward(); // sell CVX rewards for ETH uint256 _cvxAmount = IERC20(CVX_TOKEN).balanceOf(address(this)); if (_cvxAmount > 0) { cvxEthSwap.exchange_underlying{value: 0}( CVXETH_CVX_INDEX, CVXETH_ETH_INDEX, _cvxAmount, 0 ); } // pull 3crv out as USDT, swap for ETH uint256 _threeCrvBalance = IERC20(THREECRV_TOKEN).balanceOf( address(this) ); if (_threeCrvBalance > 0) { tripool.remove_liquidity_one_coin(_threeCrvBalance, 2, 0); uint256 _usdtBalance = IERC20(USDT_TOKEN).balanceOf(address(this)); if (_usdtBalance > 0) { tricrypto.exchange(0, 2, _usdtBalance, 0, true); } } // swap everything to CRV uint256 _crvBalance = IERC20(CRV_TOKEN).balanceOf(address(this)); uint256 _ethBalance = address(this).balance; if (_ethBalance > 0) { _crvBalance += _swapEthToCrv(address(this).balance); } if (_crvBalance > 0) { uint256 _quote = crvCvxCrvSwap.get_dy( CVXCRV_CRV_INDEX, CVXCRV_CVXCRV_INDEX, _crvBalance ); // swap on Curve if there is a premium for doing so if (_quote > _crvBalance) { _swapCrvToCvxCrv(_crvBalance, address(this)); } // otherwise deposit & lock else { ICvxCrvDeposit(CVXCRV_DEPOSIT).deposit(_crvBalance, true); } } uint256 _cvxCrvBalance = IERC20(CVXCRV_TOKEN).balanceOf(address(this)); emit Harvest(msg.sender, _cvxCrvBalance); // if this is the last call, no restake & no fees if (totalSupply() == 0) { return; } if (_cvxCrvBalance > 0) { uint256 _stakingAmount = _cvxCrvBalance; // Deduce and pay out incentive to caller (not needed for final exit) if (callIncentive > 0) { uint256 incentiveAmount = (_cvxCrvBalance * callIncentive) / FEE_DENOMINATOR; IERC20(CVXCRV_TOKEN).safeTransfer(msg.sender, incentiveAmount); _stakingAmount = _stakingAmount - incentiveAmount; } // Deduce and pay platform fee if (platformFee > 0) { uint256 feeAmount = (_cvxCrvBalance * platformFee) / FEE_DENOMINATOR; IERC20(CVXCRV_TOKEN).safeTransfer(platform, feeAmount); _stakingAmount = _stakingAmount - feeAmount; } cvxCrvStaking.stake(_stakingAmount); } } /// @notice Deposit user funds in the autocompounder and mints tokens /// representing user's share of the pool in exchange /// @param _to - the address that will receive the shares /// @param _amount - the amount of cvxCrv to deposit /// @return _shares - the amount of shares issued function deposit(address _to, uint256 _amount) public notToZeroAddress(_to) returns (uint256 _shares) { require(_amount > 0, "Deposit too small"); uint256 _before = totalUnderlying(); IERC20(CVXCRV_TOKEN).safeTransferFrom( msg.sender, address(this), _amount ); cvxCrvStaking.stake(_amount); // Issues shares in proportion of deposit to pool amount uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount * totalSupply()) / _before; } _mint(_to, shares); emit Deposit(msg.sender, _to, _amount); return shares; } /// @notice Deposit all of user's cvxCRV balance /// @param _to - the address that will receive the shares /// @return _shares - the amount of shares issued function depositAll(address _to) external returns (uint256 _shares) { return deposit(_to, IERC20(CVXCRV_TOKEN).balanceOf(msg.sender)); } /// @notice Unstake cvxCrv in proportion to the amount of shares sent /// @param _shares - the number of shares sent /// @return _withdrawable - the withdrawable cvxCrv amount function _withdraw(uint256 _shares) internal returns (uint256 _withdrawable) { require(totalSupply() > 0); // Computes the amount withdrawable based on the number of shares sent uint256 amount = (_shares * totalUnderlying()) / totalSupply(); // Burn the shares before retrieving tokens _burn(msg.sender, _shares); // If user is last to withdraw, harvest before exit if (totalSupply() == 0) { harvest(); cvxCrvStaking.withdraw(totalUnderlying(), false); _withdrawable = IERC20(CVXCRV_TOKEN).balanceOf(address(this)); } // Otherwise compute share and unstake else { _withdrawable = amount; // Substract a small withdrawal fee to prevent users "timing" // the harvests. The fee stays staked and is therefore // redistributed to all remaining participants. uint256 _penalty = (_withdrawable * withdrawalPenalty) / FEE_DENOMINATOR; _withdrawable = _withdrawable - _penalty; cvxCrvStaking.withdraw(_withdrawable, false); } return _withdrawable; } /// @notice Unstake cvxCrv in proportion to the amount of shares sent /// @param _to - address to send cvxCrv to /// @param _shares - the number of shares sent /// @return withdrawn - the amount of cvxCRV returned to the user function withdraw(address _to, uint256 _shares) public notToZeroAddress(_to) returns (uint256 withdrawn) { // Withdraw requested amount of cvxCrv uint256 _withdrawable = _withdraw(_shares); // And sends back cvxCrv to user IERC20(CVXCRV_TOKEN).safeTransfer(_to, _withdrawable); emit Withdraw(msg.sender, _to, _withdrawable); return _withdrawable; } /// @notice Withdraw all of a users' position as cvxCRV /// @param _to - address to send cvxCrv to /// @return withdrawn - the amount of cvxCRV returned to the user function withdrawAll(address _to) external notToZeroAddress(_to) returns (uint256 withdrawn) { return withdraw(_to, balanceOf(msg.sender)); } /// @notice Zap function to withdraw as another token /// @param _to - address to send cvxCrv to /// @param _shares - the number of shares sent /// @param option - what to swap to function withdrawAs( address _to, uint256 _shares, Option option ) external notToZeroAddress(_to) { uint256 _withdrawn = _withdraw(_shares); _claimAs(_to, _withdrawn, option); } /// @notice Zap function to withdraw all shares to another token /// @param _to - address to send cvxCrv to /// @param option - what to swap to function withdrawAllAs(address _to, Option option) external notToZeroAddress(_to) { uint256 _withdrawn = _withdraw(balanceOf(msg.sender)); _claimAs(_to, _withdrawn, option); } /// @notice Zap function to withdraw as another token /// @param _to - address to send cvxCrv to /// @param _shares - the number of shares sent /// @param option - what to swap to /// @param minAmountOut - minimum desired amount of output token function withdrawAs( address _to, uint256 _shares, Option option, uint256 minAmountOut ) external notToZeroAddress(_to) { uint256 _withdrawn = _withdraw(_shares); _claimAs(_to, _withdrawn, option, minAmountOut); } /// @notice Zap function to withdraw all shares to another token /// @param _to - address to send cvxCrv to /// @param option - what to swap to /// @param minAmountOut - minimum desired amount of output token function withdrawAllAs( address _to, Option option, uint256 minAmountOut ) external notToZeroAddress(_to) { uint256 _withdrawn = _withdraw(balanceOf(msg.sender)); _claimAs(_to, _withdrawn, option, minAmountOut); } receive() external payable {} }
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":"uint256","name":"_incentive","type":"uint256"}],"name":"CallerIncentiveUpdated","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":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"PlatformFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platform","type":"address"}],"name":"PlatformUpdated","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":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"WithdrawalPenaltyUpdated","type":"event"},{"inputs":[],"name":"CRVETH_CRV_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRVETH_ETH_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURVE_CRV_ETH_POOL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURVE_CVXCRV_CRV_POOL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CURVE_CVX_ETH_POOL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXCRV_CRV_INDEX","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXCRV_CVXCRV_INDEX","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXCRV_STAKING_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXCRV_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXETH_CVX_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVXETH_ETH_INDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CALL_INCENTIVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAWAL_PENALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"depositAll","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outstanding3CrvRewards","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outstandingCrvRewards","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outstandingCvxRewards","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platform","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"setCallIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platform","type":"address"}],"name":"setPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"setWithdrawalPenalty","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":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"enum ClaimZaps.Option","name":"option","type":"uint8"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"withdrawAllAs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"enum ClaimZaps.Option","name":"option","type":"uint8"}],"name":"withdrawAllAs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"},{"internalType":"enum ClaimZaps.Option","name":"option","type":"uint8"}],"name":"withdrawAs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"},{"internalType":"enum ClaimZaps.Option","name":"option","type":"uint8"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"withdrawAs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600180546001600160a01b0319908116733fe65692bfcd0e6cf84cb1e7d24108e434a7587e1790915560028054821673b576491f1e6e5e62f1d8f26062ee822b40b0e0d4179055600380548216738301ae4fc9c624d1d396cbdaa1ed877821d7c511179055600480548216739d0464996170c6b9e75eed71c68b99ddedf279e8179055600b80548216739bc7c6ad7e7cf3a6fcb58fb21e27752ac1e53f991790556064600c556101f4600d819055600e55600f8054821673bebc44782c7db0a1a60cb6fe97d0b483032ff1c71790556010805490911673d51a44d3fae010294c616388b506acda1bfaae46179055348015620000ff57600080fd5b506040516f2ab734b7b734bd32b21031bb3c21a92b60811b602082015260300160408051601f1981840301815290829052633aa1a92b60e11b60208301529060240160408051601f19818403018152919052600160005581516200016b906008906020850190620001ee565b50805162000181906009906020840190620001ee565b505050600062000196620001ea60201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002d1565b3390565b828054620001fc9062000294565b90600052602060002090601f0160209004810192826200022057600085556200026b565b82601f106200023b57805160ff19168380011785556200026b565b828001600101855582156200026b579182015b828111156200026b5782518255916020019190600101906200024e565b50620002799291506200027d565b5090565b5b808211156200027957600081556001016200027e565b600181811c90821680620002a957607f821691505b60208210811415620002cb57634e487b7160e01b600052602260045260246000fd5b50919050565b6134ef80620002e16000396000f3fe6080604052600436106103545760003560e01c80637506ceb9116101c6578063ab6e25cd116100f7578063d8697a5011610095578063f1d5253e1161006f578063f1d5253e1461095d578063f2fde38b14610985578063f3fef3a3146109a5578063fa09e630146109c557600080fd5b8063d8697a50146108ec578063dd62ed3e14610901578063e7c1b7711461094757600080fd5b8063c70eddff116100d1578063c70eddff14610878578063cb22356b146108a0578063cc7554eb146108b6578063d73792a9146108d657600080fd5b8063ab6e25cd1461043c578063ad74abbd14610843578063c70920bc1461086357600080fd5b806395d89b4111610164578063a2468c191161013e578063a2468c19146107d8578063a457c2d7146107ee578063a47393541461080e578063a9059cbb1461082357600080fd5b806395d89b411461077b578063961deefe146107905780639f0d5f27146107b857600080fd5b806381e45235116101a057806381e45235146107005780638757b15b146107205780638da5cb5b14610735578063935166761461075357600080fd5b80637506ceb9146106965780637ec5508a146106be5780637faaa6c1146106e057600080fd5b80633998a681116102a0578063657428a31161023e5780636acabc2e116102185780636acabc2e146105ad5780636f307dc31461062a57806370a082311461064b578063715018a61461068157600080fd5b8063657428a3146105c257806368f5acac146105ea5780636945c5ea1461060a57600080fd5b80634641257d1161027a5780634641257d1461055857806347e7ef241461056d5780634bde38c81461058d57806360c3a38c146105ad57600080fd5b80633998a6811461050d5780633af9e669146105235780633f8dd2f51461054357600080fd5b8063197cdde61161030d57806323b872dd116102e757806323b872dd1461049b57806326232a2e146104bb578063313ce567146104d157806339509351146104ed57600080fd5b8063197cdde6146104515780631a617b19146104665780632060176b1461048657600080fd5b806306fdde0314610360578063095ea7b31461038b5780630960b7fa146103bb57806312e8e2c3146103fb57806318160ddd1461041d5780631857b3081461043c57600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b506103756109e5565b6040516103829190613111565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004613160565b610a77565b6040519015158152602001610382565b3480156103c757600080fd5b506103e3734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6040516001600160a01b039091168152602001610382565b34801561040757600080fd5b5061041b61041636600461318a565b610a8d565b005b34801561042957600080fd5b506007545b604051908152602001610382565b34801561044857600080fd5b5061042e600081565b34801561045d57600080fd5b5061042e610b0b565b34801561047257600080fd5b5061041b6104813660046131b2565b610b8b565b34801561049257600080fd5b5061042e609681565b3480156104a757600080fd5b506103ab6104b63660046131ee565b610be0565b3480156104c757600080fd5b5061042e600d5481565b3480156104dd57600080fd5b5060405160128152602001610382565b3480156104f957600080fd5b506103ab610508366004613160565b610c93565b34801561051957600080fd5b5061042e6107d081565b34801561052f57600080fd5b5061042e61053e36600461321a565b610cca565b34801561054f57600080fd5b5061042e610d4c565b34801561056457600080fd5b5061041b610d84565b34801561057957600080fd5b5061042e610588366004613160565b6114f1565b34801561059957600080fd5b50600b546103e3906001600160a01b031681565b3480156105b957600080fd5b5061042e600181565b3480156105ce57600080fd5b506103e373d533a949740bb3306d119cc777fa900ba034cd5281565b3480156105f657600080fd5b5061041b610605366004613235565b61168d565b34801561061657600080fd5b5061041b61062536600461321a565b6116cc565b34801561063657600080fd5b5060008051602061349a8339815191526103e3565b34801561065757600080fd5b5061042e61066636600461321a565b6001600160a01b031660009081526005602052604090205490565b34801561068d57600080fd5b5061041b611768565b3480156106a257600080fd5b506103e3739d0464996170c6b9e75eed71c68b99ddedf279e881565b3480156106ca57600080fd5b506103e360008051602061349a83398151915281565b3480156106ec57600080fd5b5061041b6106fb36600461318a565b6117dc565b34801561070c57600080fd5b5061041b61071b366004613271565b611849565b34801561072c57600080fd5b5061041b611891565b34801561074157600080fd5b50600a546001600160a01b03166103e3565b34801561075f57600080fd5b50610768600181565b604051600f9190910b8152602001610382565b34801561078757600080fd5b50610375611ad2565b34801561079c57600080fd5b506103e373b576491f1e6e5e62f1d8f26062ee822b40b0e0d481565b3480156107c457600080fd5b5061042e6107d336600461321a565b611ae1565b3480156107e457600080fd5b5061042e600c5481565b3480156107fa57600080fd5b506103ab610809366004613160565b611b66565b34801561081a57600080fd5b5061042e611c01565b34801561082f57600080fd5b506103ab61083e366004613160565b611c43565b34801561084f57600080fd5b5061041b61085e3660046132b5565b611c50565b34801561086f57600080fd5b5061042e611ca3565b34801561088457600080fd5b506103e3733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b3480156108ac57600080fd5b5061042e600e5481565b3480156108c257600080fd5b5061041b6108d136600461318a565b611cd4565b3480156108e257600080fd5b5061042e61271081565b3480156108f857600080fd5b50610768600081565b34801561090d57600080fd5b5061042e61091c3660046132e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561095357600080fd5b5061042e6101f481565b34801561096957600080fd5b506103e3738301ae4fc9c624d1d396cbdaa1ed877821d7c51181565b34801561099157600080fd5b5061041b6109a036600461321a565b611d42565b3480156109b157600080fd5b5061042e6109c0366004613160565b611e2d565b3480156109d157600080fd5b5061042e6109e036600461321a565b611ec4565b6060600880546109f490613312565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2090613312565b8015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b5050505050905090565b6000610a84338484611f11565b50600192915050565b600a546001600160a01b03163314610ac05760405162461bcd60e51b8152600401610ab790613347565b60405180910390fd5b6107d0811115610acf57600080fd5b600d8190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b6001546040516246613160e11b81523060048201526000916001600160a01b031690628cc262906024015b60206040518083038186803b158015610b4e57600080fd5b505afa158015610b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b86919061337c565b905090565b826001600160a01b038116610bb25760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040812054610bcb90612036565b9050610bd98582868661225d565b5050505050565b6000610bed848484612269565b6001600160a01b038416600090815260066020908152604080832033845290915290205482811015610c725760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610ab7565b610c868533610c8186856133d5565b611f11565b60019150505b9392505050565b3360008181526006602090815260408083206001600160a01b03871684529091528120549091610a84918590610c819086906133ec565b600080610cd660075490565b11610d0e5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b6044820152606401610ab7565b600754610d19611ca3565b6001600160a01b038416600090815260056020526040902054610d3c9190613404565b610d469190613423565b92915050565b6040516246613160e11b8152306004820152600090737091dbb7fcba54569ef1387ac89eb2a5c9f6d2ea90628cc26290602401610b36565b600160009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dd457600080fd5b505af1158015610de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0c9190613445565b506040516370a0823160e01b8152306004820152600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a082319060240160206040518083038186803b158015610e5a57600080fd5b505afa158015610e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e92919061337c565b90508015610f31576002546040516365b2489b60e01b81526001600482015260006024820181905260448201849052606482018190526001600160a01b03909216916365b2489b916084016020604051808303818588803b158015610ef657600080fd5b505af1158015610f0a573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f2f919061337c565b505b6040516370a0823160e01b8152306004820152600090736c3f90f043a72fa612cbac8115ee7e52bde6e490906370a082319060240160206040518083038186803b158015610f7e57600080fd5b505afa158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb6919061337c565b9050801561113457600f54604051630d2680e960e11b81526004810183905260026024820152600060448201526001600160a01b0390911690631a4d01d290606401600060405180830381600087803b15801561101257600080fd5b505af1158015611026573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073dac17f958d2ee523a2206206994597c13d831ec791506370a082319060240160206040518083038186803b15801561107757600080fd5b505afa15801561108b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110af919061337c565b905080156111325760105460405163394747c560e01b815260006004820181905260026024830152604482018490526064820152600160848201526001600160a01b039091169063394747c59060a401600060405180830381600087803b15801561111957600080fd5b505af115801561112d573d6000803e3d6000fd5b505050505b505b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a082319060240160206040518083038186803b15801561118157600080fd5b505afa158015611195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b9919061337c565b90504780156111d8576111cb47612441565b6111d590836133ec565b91505b81156112f35760048054604051635e0d443f60e01b8152600092810183905260016024820152604481018590526001600160a01b0390911690635e0d443f9060640160206040518083038186803b15801561123257600080fd5b505afa158015611246573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126a919061337c565b9050828111156112845761127e833061244e565b506112f1565b604051639a40832160e01b81526004810184905260016024820152738014595f2ab54cd7c604b00e9fb932176fdc86ae90639a40832190604401600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b505050505b505b6040516370a0823160e01b815230600482015260009060008051602061349a833981519152906370a082319060240160206040518083038186803b15801561133a57600080fd5b505afa15801561134e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611372919061337c565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a26007546113b8575050505050565b8015610bd957600e5481901561140e576000612710600e54846113db9190613404565b6113e59190613423565b905061140060008051602061349a833981519152338361245c565b61140a81836133d5565b9150505b600d541561146a576000612710600d54846114299190613404565b6114339190613423565b600b5490915061145c9060008051602061349a833981519152906001600160a01b03168361245c565b61146681836133d5565b9150505b60015460405163534a7e1d60e11b8152600481018390526001600160a01b039091169063a694fc3a90602401602060405180830381600087803b1580156114b057600080fd5b505af11580156114c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e89190613445565b50505050505050565b6000826001600160a01b03811661151a5760405162461bcd60e51b8152600401610ab790613395565b6000831161155e5760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b6044820152606401610ab7565b6000611568611ca3565b905061158460008051602061349a8339815191523330876124c4565b60015460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401602060405180830381600087803b1580156115ca57600080fd5b505af11580156115de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116029190613445565b50600061160e60075490565b61161957508361163a565b8161162360075490565b61162d9087613404565b6116379190613423565b90505b61164486826124fc565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b826001600160a01b0381166116b45760405162461bcd60e51b8152600401610ab790613395565b60006116bf84612036565b9050610bd98582856125db565b600a546001600160a01b031633146116f65760405162461bcd60e51b8152600401610ab790613347565b806001600160a01b03811661171d5760405162461bcd60e51b8152600401610ab790613395565b600b80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b600a546001600160a01b031633146117925760405162461bcd60e51b8152600401610ab790613347565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146118065760405162461bcd60e51b8152600401610ab790613347565b609681111561181457600080fd5b600c8190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb4813259290602001610b00565b836001600160a01b0381166118705760405162461bcd60e51b8152600401610ab790613395565b600061187b85612036565b90506118898682868661225d565b505050505050565b600a546001600160a01b031633146118bb5760405162461bcd60e51b8152600401610ab790613347565b6118ef736c3f90f043a72fa612cbac8115ee7e52bde6e49073bebc44782c7db0a1a60cb6fe97d0b483032ff1c760006125e8565b611924736c3f90f043a72fa612cbac8115ee7e52bde6e49073bebc44782c7db0a1a60cb6fe97d0b483032ff1c76000196125e8565b611958734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73b576491f1e6e5e62f1d8f26062ee822b40b0e0d460006125e8565b61198d734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73b576491f1e6e5e62f1d8f26062ee822b40b0e0d46000196125e8565b6119c173dac17f958d2ee523a2206206994597c13d831ec773d51a44d3fae010294c616388b506acda1bfaae4660006125e8565b6119f673dac17f958d2ee523a2206206994597c13d831ec773d51a44d3fae010294c616388b506acda1bfaae466000196125e8565b611a2a73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae60006125e8565b611a5f73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae6000196125e8565b611a9373d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e860006125e8565b611ac873d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e86000196125e8565b611ad061270c565b565b6060600980546109f490613312565b6040516370a0823160e01b8152336004820152600090610d4690839060008051602061349a833981519152906370a082319060240160206040518083038186803b158015611b2e57600080fd5b505afa158015611b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610588919061337c565b3360009081526006602090815260408083206001600160a01b038616845290915281205482811015611be85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ab7565b611bf73385610c8186856133d5565b5060019392505050565b6000733c75bfe6fbfda3a94e7e7e8c2216afc684de53436384874745611c25610b0b565b6040518263ffffffff1660e01b8152600401610b3691815260200190565b6000610a84338484612269565b816001600160a01b038116611c775760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040812054611c9090612036565b9050611c9d8482856125db565b50505050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401610b36565b600a546001600160a01b03163314611cfe5760405162461bcd60e51b8152600401610ab790613347565b6101f4811115611d0d57600080fd5b600e8190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a4290602001610b00565b600a546001600160a01b03163314611d6c5760405162461bcd60e51b8152600401610ab790613347565b6001600160a01b038116611dd15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab7565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b038116611e565760405162461bcd60e51b8152600401610ab790613395565b6000611e6184612036565b9050611e7c60008051602061349a833981519152868361245c565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b038116611eed5760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040902054611f08908490611e2d565b91505b50919050565b6001600160a01b038316611f735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab7565b6001600160a01b038216611fd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ab7565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60008061204260075490565b1161204c57600080fd5b600061205760075490565b61205f611ca3565b6120699085613404565b6120739190613423565b905061207f338461282f565b6007546121a35761208e610d84565b6001546001600160a01b03166338d074366120a7611ca3565b6040516001600160e01b031960e084901b168152600481019190915260006024820152604401602060405180830381600087803b1580156120e757600080fd5b505af11580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190613445565b506040516370a0823160e01b815230600482015260008051602061349a833981519152906370a082319060240160206040518083038186803b15801561216457600080fd5b505afa158015612178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219c919061337c565b9150611f0b565b8091506000612710600c54846121b99190613404565b6121c39190613423565b90506121cf81846133d5565b600154604051631c683a1b60e11b815260048101839052600060248201529194506001600160a01b0316906338d0743690604401602060405180830381600087803b15801561221d57600080fd5b505af1158015612231573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122559190613445565b505050919050565b611c9d8484848461297e565b6001600160a01b0383166122cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ab7565b6001600160a01b03821661232f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ab7565b6001600160a01b038316600090815260056020526040902054818110156123a75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ab7565b6123b182826133d5565b6001600160a01b0380861660009081526005602052604080822093909355908516815290812080548492906123e79084906133ec565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161243391815260200190565b60405180910390a350505050565b6000610d46826000612c40565b6000610c8c83836000612cd7565b6040516001600160a01b0383166024820152604481018290526124bf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612d7d565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611c9d9085906323b872dd60e01b90608401612488565b6001600160a01b0382166125525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ab7565b806007600082825461256491906133ec565b90915550506001600160a01b038216600090815260056020526040812080548392906125919084906133ec565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6124bf838383600061297e565b8015806126715750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561263757600080fd5b505afa15801561264b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061266f919061337c565b155b6126dc5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610ab7565b6040516001600160a01b0383166024820152604481018290526124bf90849063095ea7b360e01b90606401612488565b61274073d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c51160006125e8565b61277573d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c5116000196125e8565b6127a360008051602061349a833981519152733fe65692bfcd0e6cf84cb1e7d24108e434a7587e60006125e8565b6127d260008051602061349a833981519152733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000196125e8565b61280060008051602061349a833981519152739d0464996170c6b9e75eed71c68b99ddedf279e860006125e8565b611ad060008051602061349a833981519152739d0464996170c6b9e75eed71c68b99ddedf279e86000196125e8565b6001600160a01b03821661288f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ab7565b6001600160a01b038216600090815260056020526040902054818110156129035760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ab7565b61290d82826133d5565b6001600160a01b0384166000908152600560205260408120919091556007805484929061293b9084906133d5565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612029565b600260005414156129d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ab7565b600260008190558260048111156129ea576129ea613467565b1415612a01576129fb838583612e4f565b50612c35565b6001826004811115612a1557612a15613467565b1415612ad8576000612a278430612e5c565b90506000612a358284612e6a565b90506000866001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b5050905080612ad05760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610ab7565b505050612c35565b6003826004811115612aec57612aec613467565b1415612b3a576000612afe8430612e5c565b90506000612b0b82612e76565b90506000612b198285612e83565b9050612ad0734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b888361245c565b6004826004811115612b4e57612b4e613467565b1415612c1c576001546040516305dc812160e31b81526001600160a01b0386811660048301526024820186905290911690632ee4090890604401602060405180830381600087803b158015612ba257600080fd5b505af1158015612bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bda9190613445565b612c175760405162461bcd60e51b815260206004820152600e60248201526d14dd185ada5b99c819985a5b195960921b6044820152606401610ab7565b612c35565b612c3560008051602061349a833981519152858561245c565b505060016000555050565b6003546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b9085906084015b6020604051808303818588803b158015612c9e57600080fd5b505af1158015612cb2573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c8c919061337c565b6004805460405163ddc1f59d60e01b815260009281018390526001602482015260448101869052606481018490526001600160a01b0385811660848301529091169063ddc1f59d9060a4015b602060405180830381600087803b158015612d3d57600080fd5b505af1158015612d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d75919061337c565b949350505050565b6000612dd2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e8f9092919063ffffffff16565b8051909150156124bf5780806020019051810190612df09190613445565b6124bf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ab7565b6000612d75848484612e9e565b6000610c8c83836000612e9e565b6000610c8c8383612ef2565b6000610d46826000612ef2565b6000610c8c8383612f3b565b6060612d758484600085612f84565b6004805460405163ddc1f59d60e01b815260019281019290925260006024830181905260448301869052606483018490526001600160a01b038581166084850152909291169063ddc1f59d9060a401612d23565b6003546040516365b2489b60e01b8152600160048201526000602482018190526044820185905260648201849052916001600160a01b0316906365b2489b908390608401612c85565b6002546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b908590608401612c85565b606082471015612fe55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ab7565b843b6130335760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ab7565b600080866001600160a01b0316858760405161304f919061347d565b60006040518083038185875af1925050503d806000811461308c576040519150601f19603f3d011682016040523d82523d6000602084013e613091565b606091505b50915091506130a18282866130ac565b979650505050505050565b606083156130bb575081610c8c565b8251156130cb5782518084602001fd5b8160405162461bcd60e51b8152600401610ab79190613111565b60005b838110156131005781810151838201526020016130e8565b83811115611c9d5750506000910152565b60208152600082518060208401526131308160408501602087016130e5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461315b57600080fd5b919050565b6000806040838503121561317357600080fd5b61317c83613144565b946020939093013593505050565b60006020828403121561319c57600080fd5b5035919050565b80356005811061315b57600080fd5b6000806000606084860312156131c757600080fd5b6131d084613144565b92506131de602085016131a3565b9150604084013590509250925092565b60008060006060848603121561320357600080fd5b61320c84613144565b92506131de60208501613144565b60006020828403121561322c57600080fd5b610c8c82613144565b60008060006060848603121561324a57600080fd5b61325384613144565b925060208401359150613268604085016131a3565b90509250925092565b6000806000806080858703121561328757600080fd5b61329085613144565b9350602085013592506132a5604086016131a3565b9396929550929360600135925050565b600080604083850312156132c857600080fd5b6132d183613144565b91506132df602084016131a3565b90509250929050565b600080604083850312156132fb57600080fd5b61330483613144565b91506132df60208401613144565b600181811c9082168061332657607f821691505b60208210811415611f0b57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561338e57600080fd5b5051919050565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156133e7576133e76133bf565b500390565b600082198211156133ff576133ff6133bf565b500190565b600081600019048311821515161561341e5761341e6133bf565b500290565b60008261344057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561345757600080fd5b81518015158114610c8c57600080fd5b634e487b7160e01b600052602160045260246000fd5b6000825161348f8184602087016130e5565b919091019291505056fe00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7a26469706673582212207451fbe23ee55a53c8e2a96a034b244a230de3ff3267a35e6c259776d7279ae464736f6c63430008090033
Deployed Bytecode
0x6080604052600436106103545760003560e01c80637506ceb9116101c6578063ab6e25cd116100f7578063d8697a5011610095578063f1d5253e1161006f578063f1d5253e1461095d578063f2fde38b14610985578063f3fef3a3146109a5578063fa09e630146109c557600080fd5b8063d8697a50146108ec578063dd62ed3e14610901578063e7c1b7711461094757600080fd5b8063c70eddff116100d1578063c70eddff14610878578063cb22356b146108a0578063cc7554eb146108b6578063d73792a9146108d657600080fd5b8063ab6e25cd1461043c578063ad74abbd14610843578063c70920bc1461086357600080fd5b806395d89b4111610164578063a2468c191161013e578063a2468c19146107d8578063a457c2d7146107ee578063a47393541461080e578063a9059cbb1461082357600080fd5b806395d89b411461077b578063961deefe146107905780639f0d5f27146107b857600080fd5b806381e45235116101a057806381e45235146107005780638757b15b146107205780638da5cb5b14610735578063935166761461075357600080fd5b80637506ceb9146106965780637ec5508a146106be5780637faaa6c1146106e057600080fd5b80633998a681116102a0578063657428a31161023e5780636acabc2e116102185780636acabc2e146105ad5780636f307dc31461062a57806370a082311461064b578063715018a61461068157600080fd5b8063657428a3146105c257806368f5acac146105ea5780636945c5ea1461060a57600080fd5b80634641257d1161027a5780634641257d1461055857806347e7ef241461056d5780634bde38c81461058d57806360c3a38c146105ad57600080fd5b80633998a6811461050d5780633af9e669146105235780633f8dd2f51461054357600080fd5b8063197cdde61161030d57806323b872dd116102e757806323b872dd1461049b57806326232a2e146104bb578063313ce567146104d157806339509351146104ed57600080fd5b8063197cdde6146104515780631a617b19146104665780632060176b1461048657600080fd5b806306fdde0314610360578063095ea7b31461038b5780630960b7fa146103bb57806312e8e2c3146103fb57806318160ddd1461041d5780631857b3081461043c57600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b506103756109e5565b6040516103829190613111565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004613160565b610a77565b6040519015158152602001610382565b3480156103c757600080fd5b506103e3734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6040516001600160a01b039091168152602001610382565b34801561040757600080fd5b5061041b61041636600461318a565b610a8d565b005b34801561042957600080fd5b506007545b604051908152602001610382565b34801561044857600080fd5b5061042e600081565b34801561045d57600080fd5b5061042e610b0b565b34801561047257600080fd5b5061041b6104813660046131b2565b610b8b565b34801561049257600080fd5b5061042e609681565b3480156104a757600080fd5b506103ab6104b63660046131ee565b610be0565b3480156104c757600080fd5b5061042e600d5481565b3480156104dd57600080fd5b5060405160128152602001610382565b3480156104f957600080fd5b506103ab610508366004613160565b610c93565b34801561051957600080fd5b5061042e6107d081565b34801561052f57600080fd5b5061042e61053e36600461321a565b610cca565b34801561054f57600080fd5b5061042e610d4c565b34801561056457600080fd5b5061041b610d84565b34801561057957600080fd5b5061042e610588366004613160565b6114f1565b34801561059957600080fd5b50600b546103e3906001600160a01b031681565b3480156105b957600080fd5b5061042e600181565b3480156105ce57600080fd5b506103e373d533a949740bb3306d119cc777fa900ba034cd5281565b3480156105f657600080fd5b5061041b610605366004613235565b61168d565b34801561061657600080fd5b5061041b61062536600461321a565b6116cc565b34801561063657600080fd5b5060008051602061349a8339815191526103e3565b34801561065757600080fd5b5061042e61066636600461321a565b6001600160a01b031660009081526005602052604090205490565b34801561068d57600080fd5b5061041b611768565b3480156106a257600080fd5b506103e3739d0464996170c6b9e75eed71c68b99ddedf279e881565b3480156106ca57600080fd5b506103e360008051602061349a83398151915281565b3480156106ec57600080fd5b5061041b6106fb36600461318a565b6117dc565b34801561070c57600080fd5b5061041b61071b366004613271565b611849565b34801561072c57600080fd5b5061041b611891565b34801561074157600080fd5b50600a546001600160a01b03166103e3565b34801561075f57600080fd5b50610768600181565b604051600f9190910b8152602001610382565b34801561078757600080fd5b50610375611ad2565b34801561079c57600080fd5b506103e373b576491f1e6e5e62f1d8f26062ee822b40b0e0d481565b3480156107c457600080fd5b5061042e6107d336600461321a565b611ae1565b3480156107e457600080fd5b5061042e600c5481565b3480156107fa57600080fd5b506103ab610809366004613160565b611b66565b34801561081a57600080fd5b5061042e611c01565b34801561082f57600080fd5b506103ab61083e366004613160565b611c43565b34801561084f57600080fd5b5061041b61085e3660046132b5565b611c50565b34801561086f57600080fd5b5061042e611ca3565b34801561088457600080fd5b506103e3733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b3480156108ac57600080fd5b5061042e600e5481565b3480156108c257600080fd5b5061041b6108d136600461318a565b611cd4565b3480156108e257600080fd5b5061042e61271081565b3480156108f857600080fd5b50610768600081565b34801561090d57600080fd5b5061042e61091c3660046132e8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561095357600080fd5b5061042e6101f481565b34801561096957600080fd5b506103e3738301ae4fc9c624d1d396cbdaa1ed877821d7c51181565b34801561099157600080fd5b5061041b6109a036600461321a565b611d42565b3480156109b157600080fd5b5061042e6109c0366004613160565b611e2d565b3480156109d157600080fd5b5061042e6109e036600461321a565b611ec4565b6060600880546109f490613312565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2090613312565b8015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b5050505050905090565b6000610a84338484611f11565b50600192915050565b600a546001600160a01b03163314610ac05760405162461bcd60e51b8152600401610ab790613347565b60405180910390fd5b6107d0811115610acf57600080fd5b600d8190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b6001546040516246613160e11b81523060048201526000916001600160a01b031690628cc262906024015b60206040518083038186803b158015610b4e57600080fd5b505afa158015610b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b86919061337c565b905090565b826001600160a01b038116610bb25760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040812054610bcb90612036565b9050610bd98582868661225d565b5050505050565b6000610bed848484612269565b6001600160a01b038416600090815260066020908152604080832033845290915290205482811015610c725760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610ab7565b610c868533610c8186856133d5565b611f11565b60019150505b9392505050565b3360008181526006602090815260408083206001600160a01b03871684529091528120549091610a84918590610c819086906133ec565b600080610cd660075490565b11610d0e5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b6044820152606401610ab7565b600754610d19611ca3565b6001600160a01b038416600090815260056020526040902054610d3c9190613404565b610d469190613423565b92915050565b6040516246613160e11b8152306004820152600090737091dbb7fcba54569ef1387ac89eb2a5c9f6d2ea90628cc26290602401610b36565b600160009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dd457600080fd5b505af1158015610de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0c9190613445565b506040516370a0823160e01b8152306004820152600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a082319060240160206040518083038186803b158015610e5a57600080fd5b505afa158015610e6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e92919061337c565b90508015610f31576002546040516365b2489b60e01b81526001600482015260006024820181905260448201849052606482018190526001600160a01b03909216916365b2489b916084016020604051808303818588803b158015610ef657600080fd5b505af1158015610f0a573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610f2f919061337c565b505b6040516370a0823160e01b8152306004820152600090736c3f90f043a72fa612cbac8115ee7e52bde6e490906370a082319060240160206040518083038186803b158015610f7e57600080fd5b505afa158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb6919061337c565b9050801561113457600f54604051630d2680e960e11b81526004810183905260026024820152600060448201526001600160a01b0390911690631a4d01d290606401600060405180830381600087803b15801561101257600080fd5b505af1158015611026573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073dac17f958d2ee523a2206206994597c13d831ec791506370a082319060240160206040518083038186803b15801561107757600080fd5b505afa15801561108b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110af919061337c565b905080156111325760105460405163394747c560e01b815260006004820181905260026024830152604482018490526064820152600160848201526001600160a01b039091169063394747c59060a401600060405180830381600087803b15801561111957600080fd5b505af115801561112d573d6000803e3d6000fd5b505050505b505b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a082319060240160206040518083038186803b15801561118157600080fd5b505afa158015611195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b9919061337c565b90504780156111d8576111cb47612441565b6111d590836133ec565b91505b81156112f35760048054604051635e0d443f60e01b8152600092810183905260016024820152604481018590526001600160a01b0390911690635e0d443f9060640160206040518083038186803b15801561123257600080fd5b505afa158015611246573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126a919061337c565b9050828111156112845761127e833061244e565b506112f1565b604051639a40832160e01b81526004810184905260016024820152738014595f2ab54cd7c604b00e9fb932176fdc86ae90639a40832190604401600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b505050505b505b6040516370a0823160e01b815230600482015260009060008051602061349a833981519152906370a082319060240160206040518083038186803b15801561133a57600080fd5b505afa15801561134e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611372919061337c565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a26007546113b8575050505050565b8015610bd957600e5481901561140e576000612710600e54846113db9190613404565b6113e59190613423565b905061140060008051602061349a833981519152338361245c565b61140a81836133d5565b9150505b600d541561146a576000612710600d54846114299190613404565b6114339190613423565b600b5490915061145c9060008051602061349a833981519152906001600160a01b03168361245c565b61146681836133d5565b9150505b60015460405163534a7e1d60e11b8152600481018390526001600160a01b039091169063a694fc3a90602401602060405180830381600087803b1580156114b057600080fd5b505af11580156114c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e89190613445565b50505050505050565b6000826001600160a01b03811661151a5760405162461bcd60e51b8152600401610ab790613395565b6000831161155e5760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b6044820152606401610ab7565b6000611568611ca3565b905061158460008051602061349a8339815191523330876124c4565b60015460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401602060405180830381600087803b1580156115ca57600080fd5b505af11580156115de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116029190613445565b50600061160e60075490565b61161957508361163a565b8161162360075490565b61162d9087613404565b6116379190613423565b90505b61164486826124fc565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b826001600160a01b0381166116b45760405162461bcd60e51b8152600401610ab790613395565b60006116bf84612036565b9050610bd98582856125db565b600a546001600160a01b031633146116f65760405162461bcd60e51b8152600401610ab790613347565b806001600160a01b03811661171d5760405162461bcd60e51b8152600401610ab790613395565b600b80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b600a546001600160a01b031633146117925760405162461bcd60e51b8152600401610ab790613347565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146118065760405162461bcd60e51b8152600401610ab790613347565b609681111561181457600080fd5b600c8190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb4813259290602001610b00565b836001600160a01b0381166118705760405162461bcd60e51b8152600401610ab790613395565b600061187b85612036565b90506118898682868661225d565b505050505050565b600a546001600160a01b031633146118bb5760405162461bcd60e51b8152600401610ab790613347565b6118ef736c3f90f043a72fa612cbac8115ee7e52bde6e49073bebc44782c7db0a1a60cb6fe97d0b483032ff1c760006125e8565b611924736c3f90f043a72fa612cbac8115ee7e52bde6e49073bebc44782c7db0a1a60cb6fe97d0b483032ff1c76000196125e8565b611958734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73b576491f1e6e5e62f1d8f26062ee822b40b0e0d460006125e8565b61198d734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73b576491f1e6e5e62f1d8f26062ee822b40b0e0d46000196125e8565b6119c173dac17f958d2ee523a2206206994597c13d831ec773d51a44d3fae010294c616388b506acda1bfaae4660006125e8565b6119f673dac17f958d2ee523a2206206994597c13d831ec773d51a44d3fae010294c616388b506acda1bfaae466000196125e8565b611a2a73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae60006125e8565b611a5f73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae6000196125e8565b611a9373d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e860006125e8565b611ac873d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e86000196125e8565b611ad061270c565b565b6060600980546109f490613312565b6040516370a0823160e01b8152336004820152600090610d4690839060008051602061349a833981519152906370a082319060240160206040518083038186803b158015611b2e57600080fd5b505afa158015611b42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610588919061337c565b3360009081526006602090815260408083206001600160a01b038616845290915281205482811015611be85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ab7565b611bf73385610c8186856133d5565b5060019392505050565b6000733c75bfe6fbfda3a94e7e7e8c2216afc684de53436384874745611c25610b0b565b6040518263ffffffff1660e01b8152600401610b3691815260200190565b6000610a84338484612269565b816001600160a01b038116611c775760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040812054611c9090612036565b9050611c9d8482856125db565b50505050565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401610b36565b600a546001600160a01b03163314611cfe5760405162461bcd60e51b8152600401610ab790613347565b6101f4811115611d0d57600080fd5b600e8190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a4290602001610b00565b600a546001600160a01b03163314611d6c5760405162461bcd60e51b8152600401610ab790613347565b6001600160a01b038116611dd15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab7565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b038116611e565760405162461bcd60e51b8152600401610ab790613395565b6000611e6184612036565b9050611e7c60008051602061349a833981519152868361245c565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b038116611eed5760405162461bcd60e51b8152600401610ab790613395565b33600090815260056020526040902054611f08908490611e2d565b91505b50919050565b6001600160a01b038316611f735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab7565b6001600160a01b038216611fd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ab7565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60008061204260075490565b1161204c57600080fd5b600061205760075490565b61205f611ca3565b6120699085613404565b6120739190613423565b905061207f338461282f565b6007546121a35761208e610d84565b6001546001600160a01b03166338d074366120a7611ca3565b6040516001600160e01b031960e084901b168152600481019190915260006024820152604401602060405180830381600087803b1580156120e757600080fd5b505af11580156120fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211f9190613445565b506040516370a0823160e01b815230600482015260008051602061349a833981519152906370a082319060240160206040518083038186803b15801561216457600080fd5b505afa158015612178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061219c919061337c565b9150611f0b565b8091506000612710600c54846121b99190613404565b6121c39190613423565b90506121cf81846133d5565b600154604051631c683a1b60e11b815260048101839052600060248201529194506001600160a01b0316906338d0743690604401602060405180830381600087803b15801561221d57600080fd5b505af1158015612231573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122559190613445565b505050919050565b611c9d8484848461297e565b6001600160a01b0383166122cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ab7565b6001600160a01b03821661232f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ab7565b6001600160a01b038316600090815260056020526040902054818110156123a75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ab7565b6123b182826133d5565b6001600160a01b0380861660009081526005602052604080822093909355908516815290812080548492906123e79084906133ec565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161243391815260200190565b60405180910390a350505050565b6000610d46826000612c40565b6000610c8c83836000612cd7565b6040516001600160a01b0383166024820152604481018290526124bf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612d7d565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611c9d9085906323b872dd60e01b90608401612488565b6001600160a01b0382166125525760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ab7565b806007600082825461256491906133ec565b90915550506001600160a01b038216600090815260056020526040812080548392906125919084906133ec565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6124bf838383600061297e565b8015806126715750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561263757600080fd5b505afa15801561264b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061266f919061337c565b155b6126dc5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610ab7565b6040516001600160a01b0383166024820152604481018290526124bf90849063095ea7b360e01b90606401612488565b61274073d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c51160006125e8565b61277573d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c5116000196125e8565b6127a360008051602061349a833981519152733fe65692bfcd0e6cf84cb1e7d24108e434a7587e60006125e8565b6127d260008051602061349a833981519152733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000196125e8565b61280060008051602061349a833981519152739d0464996170c6b9e75eed71c68b99ddedf279e860006125e8565b611ad060008051602061349a833981519152739d0464996170c6b9e75eed71c68b99ddedf279e86000196125e8565b6001600160a01b03821661288f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ab7565b6001600160a01b038216600090815260056020526040902054818110156129035760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ab7565b61290d82826133d5565b6001600160a01b0384166000908152600560205260408120919091556007805484929061293b9084906133d5565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612029565b600260005414156129d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ab7565b600260008190558260048111156129ea576129ea613467565b1415612a01576129fb838583612e4f565b50612c35565b6001826004811115612a1557612a15613467565b1415612ad8576000612a278430612e5c565b90506000612a358284612e6a565b90506000866001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b5050905080612ad05760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610ab7565b505050612c35565b6003826004811115612aec57612aec613467565b1415612b3a576000612afe8430612e5c565b90506000612b0b82612e76565b90506000612b198285612e83565b9050612ad0734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b888361245c565b6004826004811115612b4e57612b4e613467565b1415612c1c576001546040516305dc812160e31b81526001600160a01b0386811660048301526024820186905290911690632ee4090890604401602060405180830381600087803b158015612ba257600080fd5b505af1158015612bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bda9190613445565b612c175760405162461bcd60e51b815260206004820152600e60248201526d14dd185ada5b99c819985a5b195960921b6044820152606401610ab7565b612c35565b612c3560008051602061349a833981519152858561245c565b505060016000555050565b6003546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b9085906084015b6020604051808303818588803b158015612c9e57600080fd5b505af1158015612cb2573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610c8c919061337c565b6004805460405163ddc1f59d60e01b815260009281018390526001602482015260448101869052606481018490526001600160a01b0385811660848301529091169063ddc1f59d9060a4015b602060405180830381600087803b158015612d3d57600080fd5b505af1158015612d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d75919061337c565b949350505050565b6000612dd2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e8f9092919063ffffffff16565b8051909150156124bf5780806020019051810190612df09190613445565b6124bf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ab7565b6000612d75848484612e9e565b6000610c8c83836000612e9e565b6000610c8c8383612ef2565b6000610d46826000612ef2565b6000610c8c8383612f3b565b6060612d758484600085612f84565b6004805460405163ddc1f59d60e01b815260019281019290925260006024830181905260448301869052606483018490526001600160a01b038581166084850152909291169063ddc1f59d9060a401612d23565b6003546040516365b2489b60e01b8152600160048201526000602482018190526044820185905260648201849052916001600160a01b0316906365b2489b908390608401612c85565b6002546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b908590608401612c85565b606082471015612fe55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ab7565b843b6130335760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ab7565b600080866001600160a01b0316858760405161304f919061347d565b60006040518083038185875af1925050503d806000811461308c576040519150601f19603f3d011682016040523d82523d6000602084013e613091565b606091505b50915091506130a18282866130ac565b979650505050505050565b606083156130bb575081610c8c565b8251156130cb5782518084602001fd5b8160405162461bcd60e51b8152600401610ab79190613111565b60005b838110156131005781810151838201526020016130e8565b83811115611c9d5750506000910152565b60208152600082518060208401526131308160408501602087016130e5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461315b57600080fd5b919050565b6000806040838503121561317357600080fd5b61317c83613144565b946020939093013593505050565b60006020828403121561319c57600080fd5b5035919050565b80356005811061315b57600080fd5b6000806000606084860312156131c757600080fd5b6131d084613144565b92506131de602085016131a3565b9150604084013590509250925092565b60008060006060848603121561320357600080fd5b61320c84613144565b92506131de60208501613144565b60006020828403121561322c57600080fd5b610c8c82613144565b60008060006060848603121561324a57600080fd5b61325384613144565b925060208401359150613268604085016131a3565b90509250925092565b6000806000806080858703121561328757600080fd5b61329085613144565b9350602085013592506132a5604086016131a3565b9396929550929360600135925050565b600080604083850312156132c857600080fd5b6132d183613144565b91506132df602084016131a3565b90509250929050565b600080604083850312156132fb57600080fd5b61330483613144565b91506132df60208401613144565b600181811c9082168061332657607f821691505b60208210811415611f0b57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561338e57600080fd5b5051919050565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156133e7576133e76133bf565b500390565b600082198211156133ff576133ff6133bf565b500190565b600081600019048311821515161561341e5761341e6133bf565b500290565b60008261344057634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561345757600080fd5b81518015158114610c8c57600080fd5b634e487b7160e01b600052602160045260246000fd5b6000825161348f8184602087016130e5565b919091019291505056fe00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7a26469706673582212207451fbe23ee55a53c8e2a96a034b244a230de3ff3267a35e6c259776d7279ae464736f6c63430008090033
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.