Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 39 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21372945 | 9 days ago | IN | 0.7925 ETH | 0.00114057 | ||||
Transfer | 21272218 | 23 days ago | IN | 0.92 ETH | 0.000506 | ||||
Transfer | 21172688 | 37 days ago | IN | 0.95 ETH | 0.00079295 | ||||
Transfer | 20971821 | 65 days ago | IN | 0.05 ETH | 0.00073172 | ||||
Transfer | 20971769 | 65 days ago | IN | 1.9395 ETH | 0.00081238 | ||||
Transfer | 20870764 | 79 days ago | IN | 1 ETH | 0.00036945 | ||||
Transfer | 20771056 | 93 days ago | IN | 0.01 ETH | 0.00022739 | ||||
Transfer | 20576830 | 120 days ago | IN | 0.99947745 ETH | 0.00001978 | ||||
Transfer | 20369034 | 149 days ago | IN | 1 ETH | 0.00009837 | ||||
Transfer | 20167840 | 177 days ago | IN | 1 ETH | 0.00009768 | ||||
Transfer | 19867841 | 219 days ago | IN | 0.318888 ETH | 0.00014165 | ||||
Transfer | 19767348 | 233 days ago | IN | 0.55488826 ETH | 0.00022236 | ||||
Transfer | 19668093 | 247 days ago | IN | 4.2125 ETH | 0.00024537 | ||||
Transfer | 19567583 | 261 days ago | IN | 3.7852 ETH | 0.00054547 | ||||
Transfer | 19468740 | 275 days ago | IN | 2.1584 ETH | 0.00097344 | ||||
Transfer | 19368172 | 289 days ago | IN | 2.8644 ETH | 0.00129123 | ||||
Transfer | 19268816 | 303 days ago | IN | 2.62 ETH | 0.00056505 | ||||
Transfer | 19168974 | 317 days ago | IN | 0.01 ETH | 0.00053673 | ||||
Transfer | 19069251 | 331 days ago | IN | 0.36 ETH | 0.00036936 | ||||
Transfer | 18978132 | 344 days ago | IN | 0.01 ETH | 0.00082919 | ||||
Transfer | 18968984 | 345 days ago | IN | 2.376 ETH | 0.00029329 | ||||
Transfer | 18869524 | 359 days ago | IN | 0.354 ETH | 0.00035915 | ||||
Transfer | 18772487 | 373 days ago | IN | 0.6987 ETH | 0.00109163 | ||||
Transfer | 18669377 | 387 days ago | IN | 37.0398 ETH | 0.00056245 | ||||
Transfer | 18569335 | 401 days ago | IN | 35.0358 ETH | 0.00069017 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21375043 | 9 days ago | 0.78438582 ETH | ||||
21375043 | 9 days ago | 0.00811417 ETH | ||||
21272334 | 23 days ago | 0.91373 ETH | ||||
21272334 | 23 days ago | 0.00627 ETH | ||||
21172712 | 37 days ago | 0.92946058 ETH | ||||
21172712 | 37 days ago | 0.02053941 ETH | ||||
21172673 | 37 days ago | 3.55232972 ETH | ||||
21172651 | 37 days ago | 3.55232972 ETH | ||||
21074233 | 51 days ago | 0.93277942 ETH | ||||
21074233 | 51 days ago | 0.003757 ETH | ||||
21071817 | 51 days ago | 0.93653642 ETH | ||||
20971955 | 65 days ago | 0.03989217 ETH | ||||
20971955 | 65 days ago | 0.01010782 ETH | ||||
20971814 | 65 days ago | 13.81298351 ETH | ||||
20971776 | 65 days ago | 3.61937486 ETH | ||||
20971770 | 65 days ago | 8.25410864 ETH | ||||
20870826 | 79 days ago | 0.99372224 ETH | ||||
20870826 | 79 days ago | 0.00627775 ETH | ||||
20771114 | 93 days ago | 0.00444413 ETH | ||||
20771114 | 93 days ago | 0.00555586 ETH | ||||
20670325 | 107 days ago | 0.06376735 ETH | ||||
20670325 | 107 days ago | 0.0009921 ETH | ||||
20670193 | 107 days ago | 0.06475946 ETH | ||||
20576875 | 120 days ago | 0.99898333 ETH | ||||
20576875 | 120 days ago | 0.00049411 ETH |
Loading...
Loading
Contract Name:
PirexClaims
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "Ownable.sol"; import "SafeERC20.sol"; import "IMultiMerkleStash.sol"; import "IMerkleDistributorV2.sol"; import "IUniV2Router.sol"; import "IWETH.sol"; import "ICvxCrvDeposit.sol"; import "IUnionVault.sol"; import "IVotiumRegistry.sol"; import "IUniV3Router.sol"; import "ICurveV2Pool.sol"; import "IPirexCVX.sol"; import "ILpxCvx.sol"; import "IPirexStrategy.sol"; import "UnionBase.sol"; contract PirexClaims is Ownable, UnionBase { using SafeERC20 for IERC20; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private constant UNISWAP_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address private constant UNIV3_ROUTER = 0xE592427A0AEce92De3Edee1F18E0157C05861564; address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address private constant CVXCRV_DEPOSIT = 0x8014595F2AB54cD7c604B00E9fb932176fDc86Ae; address public constant VOTIUM_REGISTRY = 0x92e6E43f99809dF84ed2D533e1FD8017eb966ee2; address private constant PIREX_CVX = 0x35A398425d9f1029021A92bc3d2557D42C8588D7; address private constant PXCVX_TOKEN = 0xBCe0Cf87F513102F22232436CCa2ca49e815C3aC; address private constant LPX_CVX = 0x389fB29230D02e67eB963C1F5A00f2b16f95BEb7; address public pcvxStrategy = 0x45F97D07dAB04B21F36fA3b1149c35e316b35d03; address public uCvx = 0x8659Fc767cad6005de79AF65dAfE4249C57927AF; mapping(uint256 => address) private routers; mapping(uint256 => uint24) private fees; struct curveSwapParams { address pool; uint16 ethIndex; } mapping(address => curveSwapParams) public curveRegistry; event FundsRetrieved(address token, address to, uint256 amount); event CurvePoolUpdated(address token, address pool); event StrategyUpdated(address strategy); event UnionCvxUpdated(address pool); constructor() { routers[0] = SUSHI_ROUTER; routers[1] = UNISWAP_ROUTER; fees[0] = 3000; fees[1] = 10000; } /// @notice Add a pool and its swap params to the registry /// @param token - Address of the token to swap on Curve /// @param params - Address of the pool and WETH index there function addCurvePool(address token, curveSwapParams calldata params) external onlyOwner { curveRegistry[token] = params; IERC20(token).safeApprove(params.pool, 0); IERC20(token).safeApprove(params.pool, type(uint256).max); emit CurvePoolUpdated(token, params.pool); } /// @notice Remove a pool from the registry /// @param token - Address of token associated with the pool function removeCurvePool(address token) external onlyOwner { IERC20(token).safeApprove(curveRegistry[token].pool, 0); delete curveRegistry[token]; emit CurvePoolUpdated(token, address(0)); } /// @notice Change the staking strategy address /// @param strategy - Address of the new strategy function updateStrategy(address strategy) external onlyOwner { require(strategy != address(0)); pcvxStrategy = strategy; emit StrategyUpdated(strategy); } /// @notice Change the Union CVX address in case of a migration /// @param ucvx - Address of the new ucvx contract function updateUnionAddress(address ucvx) external onlyOwner { require(ucvx != address(0)); uCvx = ucvx; emit UnionCvxUpdated(ucvx); } /// @notice Withdraws specified ERC20 tokens to the multisig /// @param tokens - the tokens to retrieve /// @param to - address to send the tokens to /// @dev This is needed to handle tokens that don't have ETH pairs on sushi /// or need to be swapped on other chains (NBST, WormholeLUNA...) function retrieveTokens(address[] calldata tokens, address to) external onlyOwner { require(to != address(0)); for (uint256 i; i < tokens.length; ++i) { address token = tokens[i]; uint256 tokenBalance = IERC20(token).balanceOf(address(this)); IERC20(token).safeTransfer(to, tokenBalance); emit FundsRetrieved(token, to, tokenBalance); } } /// @notice Execute calls on behalf of contract in case of emergency function execute( address _to, uint256 _value, bytes calldata _data ) external onlyOwner returns (bool, bytes memory) { (bool success, bytes memory result) = _to.call{value: _value}(_data); return (success, result); } /// @notice Set approvals for the tokens used when swapping function setApprovals() external onlyOwner { IERC20(CRV_TOKEN).safeApprove(CURVE_CRV_ETH_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CRV_ETH_POOL, type(uint256).max); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, type(uint256).max); IERC20(CVXCRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CVXCRV_TOKEN).safeApprove( CURVE_CVXCRV_CRV_POOL, type(uint256).max ); IERC20(CVX_TOKEN).safeApprove(PIREX_CVX, 0); IERC20(CVX_TOKEN).safeApprove(PIREX_CVX, type(uint256).max); IERC20(CVX_TOKEN).safeApprove(LPX_CVX, 0); IERC20(CVX_TOKEN).safeApprove(LPX_CVX, type(uint256).max); } /// @notice Swap a token for ETH on Curve /// @dev Needs the token to have been added to the registry with params /// @param token - address of the token to swap /// @param amount - amount of the token to swap function _swapToETHCurve(address token, uint256 amount) internal { curveSwapParams memory params = curveRegistry[token]; require(params.pool != address(0)); IERC20(token).safeApprove(params.pool, 0); IERC20(token).safeApprove(params.pool, amount); ICurveV2Pool(params.pool).exchange_underlying( params.ethIndex ^ 1, params.ethIndex, amount, 0 ); } /// @notice Swap a token for ETH /// @param token - address of the token to swap /// @param amount - amount of the token to swap /// @dev Swaps are executed via Sushi or UniV2 router, will revert if pair /// does not exist. Tokens must have a WETH pair. function _swapToETH( address token, uint256 amount, address router ) internal { require(router != address(0)); address[] memory _path = new address[](2); _path[0] = token; _path[1] = WETH; IERC20(token).safeApprove(router, 0); IERC20(token).safeApprove(router, amount); IUniV2Router(router).swapExactTokensForETH( amount, 1, _path, address(this), block.timestamp + 1 ); } /// @notice Swap a token for ETH on UniSwap V3 /// @param token - address of the token to swap /// @param amount - amount of the token to swap /// @param fee - the pool's fee function _swapToETHUniV3( address token, uint256 amount, uint24 fee ) internal { IERC20(token).safeApprove(UNIV3_ROUTER, 0); IERC20(token).safeApprove(UNIV3_ROUTER, amount); IUniV3Router.ExactInputSingleParams memory _params = IUniV3Router .ExactInputSingleParams( token, WETH, fee, address(this), block.timestamp + 1, amount, 1, 0 ); uint256 _wethReceived = IUniV3Router(UNIV3_ROUTER).exactInputSingle( _params ); IWETH(WETH).withdraw(_wethReceived); } /// @notice Claims all specified rewards from the strategy contract /// @param epoch - epoch to claim for /// @param rewardIndexes - an array containing the info necessary to claim for /// each available token /// @dev Used to retrieve tokens that need to be transferred function claim(uint256 epoch, uint256[] calldata rewardIndexes) public onlyOwner { // claim all from strat IPirexStrategy(pcvxStrategy).redeemRewards(epoch, rewardIndexes); } function swap( address[] calldata tokens, uint256 routerChoices, uint256 gasRefund ) public onlyOwner { // swap all claims to ETH for (uint256 i; i < tokens.length; ++i) { address _token = tokens[i]; uint256 _balance = IERC20(_token).balanceOf(address(this)); // avoid wasting gas / reverting if no balance if (_balance <= 1) { continue; } else { // leave one gwei to lower future claim gas costs // https://twitter.com/libevm/status/1474870670429360129?s=21 _balance -= 1; } // unwrap WETH if (_token == WETH) { IWETH(WETH).withdraw(_balance); } else if (_token == CRV_TOKEN) { _crvToEth(_balance, 0); } else if (_token == CVXCRV_TOKEN) { _swapCrvToEth(_swapCvxCrvToCrv(_balance, address(this))); } // no need to swap bribes paid out in CVX else if (_token == CVX_TOKEN) { continue; } else { uint256 _choice = routerChoices & 7; if (_choice >= 4) { _swapToETHCurve(_token, _balance); } else if (_choice >= 2) { _swapToETHUniV3(_token, _balance, fees[_choice - 2]); } else { _swapToETH(_token, _balance, routers[_choice]); } } routerChoices = routerChoices >> 3; } (bool success, ) = (tx.origin).call{value: gasRefund}(""); require(success, "ETH transfer failed"); } function deposit(bool lock, uint256 minAmountOut) public onlyOwner { uint256 _ethBalance = address(this).balance; // swap from ETH to CVX _swapEthToCvx(_ethBalance, 0); uint256 _cvxBalance = IERC20(CVX_TOKEN).balanceOf(address(this)); // swap on Curve if there is a premium for doing so if (!lock) { ILpxCvx(LPX_CVX).swap( ILpxCvx.Token.CVX, _cvxBalance, minAmountOut, 0, 1 ); IERC20(PXCVX_TOKEN).safeTransfer( pcvxStrategy, IERC20(PXCVX_TOKEN).balanceOf(address(this)) ); } else { require(_cvxBalance >= minAmountOut, "slippage"); IPirexCVX(PIREX_CVX).deposit( _cvxBalance, pcvxStrategy, false, address(0) ); } // queue in new rewards IPirexStrategy(pcvxStrategy).notifyRewardAmount(); } /// @notice Claims all specified rewards and swaps them to ETH /// @param epoch - epoch to claim for /// @param rewardIndexes - an array containing the info necessary to claim from strat /// @param tokens - addresses of all reward tokens /// @param routerChoices - the router to use for the swap /// @param claimBeforeSwap - whether to claim on Votium or not /// @param lock - whether to deposit or swap cvx to pxcvx /// @param stake - whether to stake cvxcrv (if distributor is vault) /// @param harvest - whether to trigger a harvest /// @param minAmountOut - min output amount of cvxCRV or CRV (if locking) /// @dev routerChoices is a 3-bit bitmap such that /// 0b000 (0) - Sushi /// 0b001 (1) - UniV2 /// 0b010 (2) - UniV3 0.3% /// 0b011 (3) - UniV3 1% /// 0b100 (4) - Curve /// Ex: 136 = 010 001 000 will swap token 1 on UniV3, 2 on UniV3, last on Sushi /// Passing 0 will execute all swaps on sushi /// @dev claimBeforeSwap is used in case 3rd party already claimed on Votium function distribute( uint256 epoch, uint256[] calldata rewardIndexes, address[] calldata tokens, uint256 routerChoices, bool claimBeforeSwap, bool lock, bool stake, bool harvest, uint256 minAmountOut, uint256 gasRefund ) external onlyOwner { // claim if (claimBeforeSwap) { claim(epoch, rewardIndexes); } // swap swap(tokens, routerChoices, gasRefund); // deposit to strategy if (stake) { deposit(lock, minAmountOut); } if (harvest) { IUnionVault(uCvx).harvest(); } } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // 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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IMultiMerkleStash { struct claimParam { address token; uint256 index; uint256 amount; bytes32[] merkleProof; } function isClaimed(address token, uint256 index) external view returns (bool); function claim( address token, uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof ) external; function claimMulti(address account, claimParam[] calldata claims) external; function updateMerkleRoot(address token, bytes32 _merkleRoot) external; event Claimed( address indexed token, uint256 index, uint256 amount, address indexed account, uint256 indexed update ); event MerkleRootUpdated( address indexed token, bytes32 indexed merkleRoot, uint256 indexed update ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IMerkleDistributorV2 { enum Option { Claim, ClaimAsETH, ClaimAsCRV, ClaimAsCVX, ClaimAndStake } function vault() external view returns (address); function merkleRoot() external view returns (bytes32); function week() external view returns (uint32); function frozen() external view returns (bool); function isClaimed(uint256 index) external view returns (bool); function setApprovals() external; function claim( uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof ) external; function claimAs( uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof, Option option ) external; function claimAs( uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof, Option option, uint256 minAmountOut ) external; function freeze() external; function unfreeze() external; function stake() external; function updateMerkleRoot(bytes32 newMerkleRoot, bool unfreeze) external; function updateDepositor(address newDepositor) external; function updateAdmin(address newAdmin) external; function updateVault(address newVault) external; event Claimed( uint256 index, uint256 amount, address indexed account, uint256 indexed week, Option option ); event DepositorUpdated( address indexed oldDepositor, address indexed newDepositor ); event AdminUpdated(address indexed oldAdmin, address indexed newAdmin); event VaultUpdated(address indexed oldVault, address indexed newVault); event MerkleRootUpdated(bytes32 indexed merkleRoot, uint32 indexed week); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IUniV2Router { function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IWETH { function deposit() external payable; function transfer(address to, uint256 value) external returns (bool); function withdraw(uint256) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICvxCrvDeposit { function deposit(uint256, bool) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IUnionVault { enum Option { Claim, ClaimAsETH, ClaimAsCRV, ClaimAsCVX, ClaimAndStake } function withdraw(address _to, uint256 _shares) external returns (uint256 withdrawn); function withdrawAll(address _to) external returns (uint256 withdrawn); function withdrawAs( address _to, uint256 _shares, Option option ) external; function withdrawAs( address _to, uint256 _shares, Option option, uint256 minAmountOut ) external; function withdrawAllAs(address _to, Option option) external; function withdrawAllAs( address _to, Option option, uint256 minAmountOut ) external; function depositAll(address _to) external returns (uint256 _shares); function deposit(address _to, uint256 _amount) external returns (uint256 _shares); function harvest() external; function balanceOfUnderlying(address user) external view returns (uint256 amount); function outstanding3CrvRewards() external view returns (uint256 total); function outstandingCvxRewards() external view returns (uint256 total); function outstandingCrvRewards() external view returns (uint256 total); function totalUnderlying() external view returns (uint256 total); function underlying() external view returns (address); function setPlatform(address _platform) external; function setPlatformFee(uint256 _fee) external; function setCallIncentive(uint256 _incentive) external; function setWithdrawalPenalty(uint256 _penalty) external; function withdrawalPenalty() external view returns (uint256); function setApprovals() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IVotiumRegistry { struct Registry { uint256 start; address to; uint256 expiration; } function registry(address _from) external view returns (Registry memory registry); function setRegistry(address _to) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IUniV3Router { struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; } function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactInputParams { bytes path; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; } function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICurveV2Pool { function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); function calc_token_amount(uint256[2] calldata amounts) external view returns (uint256); function exchange_underlying( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external payable returns (uint256); function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount) external returns (uint256); function lp_price() external view returns (uint256); function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external payable returns (uint256); function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth ) external payable returns (uint256); function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth, address receiver ) external payable returns (uint256); function price_oracle() external view returns (uint256); function remove_liquidity_one_coin( uint256 token_amount, uint256 i, uint256 min_amount, bool use_eth, address receiver ) external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IPirexCVX { function deposit( uint256 assets, address receiver, bool shouldCompound, address developer ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ILpxCvx { enum Token { CVX, pxCVX } function swap( Token source, uint256 amount, uint256 minReceived, uint256 fromIndex, uint256 toIndex ) external; function wrap(uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IPirexStrategy { function notifyRewardAmount() external; function recoverERC20(address tokenAddress, uint256 tokenAmount) external; function setDistributor(address _distributor) external; function getReward() external; function withdraw(uint256 amount) external; function stake(uint256 amount) external; function getRewardForDuration() external view returns (uint256); function earned() external view returns (uint256); function rewardPerToken() external view returns (uint256); function lastTimeRewardApplicable() external view returns (uint256); function totalSupplyWithRewards() external view returns (uint256, uint256); function totalSupply() external view returns (uint256); function rewards() external view returns (uint256); function periodFinish() external view returns (uint256); function lastUpdateTime() external view returns (uint256); function rewardRate() external view returns (uint256); function owner() external view returns (address); function redeemRewards(uint256 epoch, uint256[] calldata rewardIndexes) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "ICurveV2Pool.sol"; import "ICurveFactoryPool.sol"; import "IBasicRewards.sol"; // 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 = 0x971add32Ea87f10bD192671630be3BE8A11b8623; 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!"); _; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; 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); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; 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 withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool); function getReward() external returns (bool); function stake(uint256) external returns (bool); function extraRewards(uint256) external view returns (address); function exit() external returns (bool); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "PirexClaims.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"CurvePoolUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsRetrieved","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":"address","name":"strategy","type":"address"}],"name":"StrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"UnionCvxUpdated","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":"VOTIUM_REGISTRY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"components":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint16","name":"ethIndex","type":"uint16"}],"internalType":"struct PirexClaims.curveSwapParams","name":"params","type":"tuple"}],"name":"addCurvePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256[]","name":"rewardIndexes","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"curveRegistry","outputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint16","name":"ethIndex","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"lock","type":"bool"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256[]","name":"rewardIndexes","type":"uint256[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256","name":"routerChoices","type":"uint256"},{"internalType":"bool","name":"claimBeforeSwap","type":"bool"},{"internalType":"bool","name":"lock","type":"bool"},{"internalType":"bool","name":"stake","type":"bool"},{"internalType":"bool","name":"harvest","type":"bool"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"uint256","name":"gasRefund","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pcvxStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeCurvePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"retrieveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256","name":"routerChoices","type":"uint256"},{"internalType":"uint256","name":"gasRefund","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uCvx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"strategy","type":"address"}],"name":"updateStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ucvx","type":"address"}],"name":"updateUnionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600180546001600160a01b0319908116733fe65692bfcd0e6cf84cb1e7d24108e434a7587e1790915560028054821673b576491f1e6e5e62f1d8f26062ee822b40b0e0d4179055600380548216738301ae4fc9c624d1d396cbdaa1ed877821d7c51117905560048054821673971add32ea87f10bd192671630be3be8a11b86231790556005805482167345f97d07dab04b21f36fa3b1149c35e316b35d0317905560068054909116738659fc767cad6005de79af65dafe4249c57927af1790553480156100d057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3507f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df80546001600160a01b031990811673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f179091557fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b8288054909116737a250d5630b4cf539739df2c5dacb4c659f2488d17905560086020527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7805462ffffff19908116610bb81790915560016000527fad67d757c34507f157cacfa2e3153e9f260a2244f30428821be7be64587ac55f80549091166127101790556127508061020f6000396000f3fe6080604052600436106101dc5760003560e01c80638da5cb5b11610102578063c70eddff11610095578063ddd2c68411610064578063ddd2c6841461058f578063e67b3da1146105af578063f1d5253e146105cf578063f2fde38b146105f757600080fd5b8063c70eddff14610512578063cc23ae341461053a578063d8697a501461055a578063daccaf631461056f57600080fd5b8063ab6e25cd116100d1578063ab6e25cd1461024f578063b1b66652146104a4578063b3950de1146104c4578063b61d27f6146104e457600080fd5b80638da5cb5b146104165780639351667614610434578063961deefe1461045c5780639deb644e1461048457600080fd5b806360c3a38c1161017a5780637506ceb9116101495780637506ceb9146103915780637ec5508a146103b95780638757b15b146103e157806388dcc3fe146103f657600080fd5b806360c3a38c1461033f578063657428a3146103545780636acabc2e1461033f578063715018a61461037c57600080fd5b8063207306b8116101b6578063207306b814610272578063316f244d146102925780633f3e37e4146102ba578063455c3eb5146102da57600080fd5b80630960b7fa146101e857806315d895911461022d5780631857b3081461024f57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610210734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561023957600080fd5b5061024d610248366004612053565b610617565b005b34801561025b57600080fd5b50610264600081565b604051908152602001610224565b34801561027e57600080fd5b5061024d61028d3660046120aa565b610788565b34801561029e57600080fd5b506102107392e6e43f99809df84ed2d533e1fd8017eb966ee281565b3480156102c657600080fd5b5061024d6102d53660046120c7565b61081a565b3480156102e657600080fd5b5061031d6102f53660046120aa565b6009602052600090815260409020546001600160a01b03811690600160a01b900461ffff1682565b604080516001600160a01b03909316835261ffff909116602083015201610224565b34801561034b57600080fd5b50610264600181565b34801561036057600080fd5b5061021073d533a949740bb3306d119cc777fa900ba034cd5281565b34801561038857600080fd5b5061024d610b64565b34801561039d57600080fd5b5061021073971add32ea87f10bd192671630be3be8a11b862381565b3480156103c557600080fd5b506102107362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b3480156103ed57600080fd5b5061024d610bd8565b34801561040257600080fd5b5061024d610411366004612118565b610e11565b34801561042257600080fd5b506000546001600160a01b0316610210565b34801561044057600080fd5b50610449600181565b604051600f9190910b8152602001610224565b34801561046857600080fd5b5061021073b576491f1e6e5e62f1d8f26062ee822b40b0e0d481565b34801561049057600080fd5b50600554610210906001600160a01b031681565b3480156104b057600080fd5b5061024d6104bf366004612159565b610efd565b3480156104d057600080fd5b5061024d6104df3660046121c3565b610f92565b3480156104f057600080fd5b506105046104ff3660046121ef565b6112ae565b6040516102249291906122d0565b34801561051e57600080fd5b50610210733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b34801561054657600080fd5b5061024d6105553660046122eb565b61134c565b34801561056657600080fd5b50610449600081565b34801561057b57600080fd5b5061024d61058a3660046120aa565b611420565b34801561059b57600080fd5b5061024d6105aa3660046120aa565b6114ab565b3480156105bb57600080fd5b50600654610210906001600160a01b031681565b3480156105db57600080fd5b50610210738301ae4fc9c624d1d396cbdaa1ed877821d7c51181565b34801561060357600080fd5b5061024d6106123660046120aa565b611557565b6000546001600160a01b0316331461064a5760405162461bcd60e51b8152600401610641906123cd565b60405180910390fd5b6001600160a01b03811661065d57600080fd5b60005b8281101561078257600084848381811061067c5761067c612402565b905060200201602081019061069191906120aa565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156106d657600080fd5b505afa1580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e9190612418565b90506107246001600160a01b0383168583611641565b604080516001600160a01b038085168252861660208201529081018290527fe28922b10f7326500f50066b3f57b135330212ae30fe5332cd9200e09917ecad9060600160405180910390a150508061077b90612447565b9050610660565b50505050565b6000546001600160a01b031633146107b25760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b0381166107c557600080fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527f03b34e987bb7091e8969a3928ff54774a7db9e397d5b0bb2be601f0aa6526f11906020015b60405180910390a150565b6000546001600160a01b031633146108445760405162461bcd60e51b8152600401610641906123cd565b60005b83811015610ace57600085858381811061086357610863612402565b905060200201602081019061087891906120aa565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f59190612418565b905060018111610906575050610abe565b610911600182612462565b90506001600160a01b03821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156109a257604051632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b15801561098557600080fd5b505af1158015610999573d6000803e3d6000fd5b50505050610ab4565b6001600160a01b03821673d533a949740bb3306d119cc777fa900ba034cd5214156109d8576109d28160006116a9565b50610ab4565b6001600160a01b0382167362b9c7356a2dc64a1969e19c23e4f579f9810aa71415610a0f576109d2610a0a8230611747565b611755565b6001600160a01b038216734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b1415610a3b575050610abe565b6007851660048110610a5657610a518383611768565b610ab2565b60028110610a8d57610a51838360086000610a72600287612462565b815260208101919091526040016000205462ffffff1661187c565b600081815260076020526040902054610ab290849084906001600160a01b0316611a94565b505b600385901c945050505b610ac781612447565b9050610847565b50604051600090329083908381818185875af1925050503d8060008114610b11576040519150601f19603f3d011682016040523d82523d6000602084013e610b16565b606091505b5050905080610b5d5760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610641565b5050505050565b6000546001600160a01b03163314610b8e5760405162461bcd60e51b8152600401610641906123cd565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610c025760405162461bcd60e51b8152600401610641906123cd565b610c3673d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c5116000611bf0565b610c6b73d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c511600019611bf0565b610c9f73d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b86236000611bf0565b610cd473d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b8623600019611bf0565b610d087362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b86236000611bf0565b610d3d7362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b8623600019611bf0565b610d71734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7335a398425d9f1029021a92bc3d2557d42c8588d76000611bf0565b610da6734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7335a398425d9f1029021a92bc3d2557d42c8588d7600019611bf0565b610dda734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73389fb29230d02e67eb963c1f5a00f2b16f95beb76000611bf0565b610e0f734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73389fb29230d02e67eb963c1f5a00f2b16f95beb7600019611bf0565b565b6000546001600160a01b03163314610e3b5760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b03821660009081526009602052604090208190610e5f8282612479565b50610e849050610e7260208301836120aa565b6001600160a01b038416906000611bf0565b610ea7610e9460208301836120aa565b6001600160a01b03841690600019611bf0565b7f8fca21c5d308d0debabdfc9dddde40c80ec0ad3e7fac4a6e5f72f038c3aef82d82610ed660208401846120aa565b604080516001600160a01b0393841681529290911660208301520160405180910390a15050565b6000546001600160a01b03163314610f275760405162461bcd60e51b8152600401610641906123cd565b6005546040516318bbb46f60e01b81526001600160a01b03909116906318bbb46f90610f5b908690869086906004016124da565b600060405180830381600087803b158015610f7557600080fd5b505af1158015610f89573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314610fbc5760405162461bcd60e51b8152600401610641906123cd565b47610fc8816000611d14565b506040516370a0823160e01b8152306004820152600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a082319060240160206040518083038186803b15801561101657600080fd5b505afa15801561102a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104e9190612418565b90508361117e57604051634edf668960e11b815273389fb29230d02e67eb963c1f5a00f2b16f95beb790639dbecd12906110969060009085908890839060019060040161251e565b600060405180830381600087803b1580156110b057600080fd5b505af11580156110c4573d6000803e3d6000fd5b50506005546040516370a0823160e01b815230600482015261117993506001600160a01b03909116915073bce0cf87f513102f22232436cca2ca49e815c3ac906370a082319060240160206040518083038186803b15801561112557600080fd5b505afa158015611139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115d9190612418565b73bce0cf87f513102f22232436cca2ca49e815c3ac9190611641565b611240565b828110156111b95760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b6044820152606401610641565b600554604051636117ca0360e11b8152600481018390526001600160a01b03909116602482015260006044820181905260648201527335a398425d9f1029021a92bc3d2557d42c8588d79063c22f940690608401600060405180830381600087803b15801561122757600080fd5b505af115801561123b573d6000803e3d6000fd5b505050505b600560009054906101000a90046001600160a01b03166001600160a01b0316630c51dde46040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561129057600080fd5b505af11580156112a4573d6000803e3d6000fd5b5050505050505050565b600080546060906001600160a01b031633146112dc5760405162461bcd60e51b8152600401610641906123cd565b600080876001600160a01b03168787876040516112fa929190612561565b60006040518083038185875af1925050503d8060008114611337576040519150601f19603f3d011682016040523d82523d6000602084013e61133c565b606091505b5090999098509650505050505050565b6000546001600160a01b031633146113765760405162461bcd60e51b8152600401610641906123cd565b8515611387576113878c8c8c610efd565b6113938989898461081a565b83156113a3576113a38583610f92565b821561141257600660009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156113f957600080fd5b505af115801561140d573d6000803e3d6000fd5b505050505b505050505050505050505050565b6000546001600160a01b0316331461144a5760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b03811661145d57600080fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f4da9c22c924692646a21cf1f423781ae3285198dc22e8a6912835d3272b90b3c9060200161080f565b6000546001600160a01b031633146114d55760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b038082166000818152600960205260408120546114fa931690611bf0565b6001600160a01b038116600081815260096020908152604080832080546001600160b01b03191690558051938452908301919091527f8fca21c5d308d0debabdfc9dddde40c80ec0ad3e7fac4a6e5f72f038c3aef82d910161080f565b6000546001600160a01b031633146115815760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b0381166115e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610641565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526116a490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d20565b505050565b6003546040516365b2489b60e01b8152600160048201526000602482018190526044820185905260648201849052916001600160a01b0316906365b2489b9083906084015b6020604051808303818588803b15801561170757600080fd5b505af115801561171b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906117409190612418565b9392505050565b600061174083836000611df2565b60006117628260006116a9565b92915050565b6001600160a01b03828116600090815260096020908152604091829020825180840190935254928316808352600160a01b90930461ffff1690820152906117ae57600080fd5b80516117c6906001600160a01b038516906000611bf0565b80516117dd906001600160a01b0385169084611bf0565b805160208201516040516365b2489b60e01b815261ffff6001831881166004830152909116602482015260448101849052600060648201526001600160a01b03909116906365b2489b90608401602060405180830381600087803b15801561184457600080fd5b505af1158015611858573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190612418565b6118a56001600160a01b03841673e592427a0aece92de3edee1f18e0157c058615646000611bf0565b6118cd6001600160a01b03841673e592427a0aece92de3edee1f18e0157c0586156484611bf0565b60408051610100810182526001600160a01b038516815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2602082015262ffffff83169181019190915230606082015260009060808101611923426001612571565b81526020808201869052600160408084019190915260006060938401819052815163414bf38960e01b815285516001600160a01b03908116600483015293860151841660248201529185015162ffffff16604483015292840151821660648201526080840151608482015260a084015160a482015260c084015160c482015260e084015190911660e48201529192509073e592427a0aece92de3edee1f18e0157c058615649063414bf3899061010401602060405180830381600087803b1580156119ed57600080fd5b505af1158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190612418565b604051632e1a7d4d60e01b81526004810182905290915073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611a7557600080fd5b505af1158015611a89573d6000803e3d6000fd5b505050505050505050565b6001600160a01b038116611aa757600080fd5b6040805160028082526060820183526000926020830190803683370190505090508381600081518110611adc57611adc612402565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611b2457611b24612402565b6001600160a01b039283166020918202929092010152611b48908516836000611bf0565b611b5c6001600160a01b0385168385611bf0565b6001600160a01b0382166318cbafe58460018430611b7a4284612571565b6040518663ffffffff1660e01b8152600401611b9a95949392919061259f565b600060405180830381600087803b158015611bb457600080fd5b505af1158015611bc8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b5d9190810190612610565b801580611c795750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611c3f57600080fd5b505afa158015611c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c779190612418565b155b611ce45760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610641565b6040516001600160a01b0383166024820152604481018290526116a490849063095ea7b360e01b9060640161166d565b60006117408383611e9b565b6000611d75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ee49092919063ffffffff16565b8051909150156116a45780806020019051810190611d9391906126ce565b6116a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610641565b6004805460405163ddc1f59d60e01b815260019281019290925260006024830181905260448301869052606483018490526001600160a01b038581166084850152909291169063ddc1f59d9060a401602060405180830381600087803b158015611e5b57600080fd5b505af1158015611e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e939190612418565b949350505050565b6002546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b9085906084016116ee565b6060611e93848460008585843b611f3d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610641565b600080866001600160a01b03168587604051611f5991906126eb565b60006040518083038185875af1925050503d8060008114611f96576040519150601f19603f3d011682016040523d82523d6000602084013e611f9b565b606091505b5091509150611fab828286611fb6565b979650505050505050565b60608315611fc5575081611740565b825115611fd55782518084602001fd5b8160405162461bcd60e51b81526004016106419190612707565b60008083601f84011261200157600080fd5b50813567ffffffffffffffff81111561201957600080fd5b6020830191508360208260051b850101111561203457600080fd5b9250929050565b6001600160a01b038116811461205057600080fd5b50565b60008060006040848603121561206857600080fd5b833567ffffffffffffffff81111561207f57600080fd5b61208b86828701611fef565b909450925050602084013561209f8161203b565b809150509250925092565b6000602082840312156120bc57600080fd5b81356117408161203b565b600080600080606085870312156120dd57600080fd5b843567ffffffffffffffff8111156120f457600080fd5b61210087828801611fef565b90989097506020870135966040013595509350505050565b600080828403606081121561212c57600080fd5b83356121378161203b565b92506040601f198201121561214b57600080fd5b506020830190509250929050565b60008060006040848603121561216e57600080fd5b83359250602084013567ffffffffffffffff81111561218c57600080fd5b61219886828701611fef565b9497909650939450505050565b801515811461205057600080fd5b80356121be816121a5565b919050565b600080604083850312156121d657600080fd5b82356121e1816121a5565b946020939093013593505050565b6000806000806060858703121561220557600080fd5b84356122108161203b565b935060208501359250604085013567ffffffffffffffff8082111561223457600080fd5b818701915087601f83011261224857600080fd5b81358181111561225757600080fd5b88602082850101111561226957600080fd5b95989497505060200194505050565b60005b8381101561229357818101518382015260200161227b565b838111156107825750506000910152565b600081518084526122bc816020860160208601612278565b601f01601f19169290920160200192915050565b8215158152604060208201526000611e9360408301846122a4565b6000806000806000806000806000806000806101408d8f03121561230e57600080fd5b8c359b5067ffffffffffffffff60208e0135111561232b57600080fd5b61233b8e60208f01358f01611fef565b909b50995067ffffffffffffffff60408e0135111561235957600080fd5b6123698e60408f01358f01611fef565b909950975060608d0135965061238160808e016121b3565b955061238f60a08e016121b3565b945061239d60c08e016121b3565b93506123ab60e08e016121b3565b92506101008d013591506101208d013590509295989b509295989b509295989b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561242a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561245b5761245b612431565b5060010190565b60008282101561247457612474612431565b500390565b81356124848161203b565b81546001600160a01b031981166001600160a01b03929092169182178355602084013561ffff811681146124b757600080fd5b6001600160b01b03199190911690911760a09190911b61ffff60a01b1617905550565b838152604060208201819052810182905260006001600160fb1b0383111561250157600080fd5b8260051b8085606085013760009201606001918252509392505050565b60a081016002871061254057634e487b7160e01b600052602160045260246000fd5b95815260208101949094526040840192909252606083015260809091015290565b8183823760009101908152919050565b6000821982111561258457612584612431565b500190565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156125ef5784516001600160a01b0316835293830193918301916001016125ca565b50506001600160a01b03969096166060850152505050608001529392505050565b6000602080838503121561262357600080fd5b825167ffffffffffffffff8082111561263b57600080fd5b818501915085601f83011261264f57600080fd5b81518181111561266157612661612589565b8060051b604051601f19603f8301168101818110858211171561268657612686612589565b6040529182528482019250838101850191888311156126a457600080fd5b938501935b828510156126c2578451845293850193928501926126a9565b98975050505050505050565b6000602082840312156126e057600080fd5b8151611740816121a5565b600082516126fd818460208701612278565b9190910192915050565b60208152600061174060208301846122a456fea26469706673582212207fd3c5a0c27ad2491bd4a9bf84245e87312f73472db057251ae9b3bf7e3222e164736f6c63430008090033
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c80638da5cb5b11610102578063c70eddff11610095578063ddd2c68411610064578063ddd2c6841461058f578063e67b3da1146105af578063f1d5253e146105cf578063f2fde38b146105f757600080fd5b8063c70eddff14610512578063cc23ae341461053a578063d8697a501461055a578063daccaf631461056f57600080fd5b8063ab6e25cd116100d1578063ab6e25cd1461024f578063b1b66652146104a4578063b3950de1146104c4578063b61d27f6146104e457600080fd5b80638da5cb5b146104165780639351667614610434578063961deefe1461045c5780639deb644e1461048457600080fd5b806360c3a38c1161017a5780637506ceb9116101495780637506ceb9146103915780637ec5508a146103b95780638757b15b146103e157806388dcc3fe146103f657600080fd5b806360c3a38c1461033f578063657428a3146103545780636acabc2e1461033f578063715018a61461037c57600080fd5b8063207306b8116101b6578063207306b814610272578063316f244d146102925780633f3e37e4146102ba578063455c3eb5146102da57600080fd5b80630960b7fa146101e857806315d895911461022d5780631857b3081461024f57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b50610210734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561023957600080fd5b5061024d610248366004612053565b610617565b005b34801561025b57600080fd5b50610264600081565b604051908152602001610224565b34801561027e57600080fd5b5061024d61028d3660046120aa565b610788565b34801561029e57600080fd5b506102107392e6e43f99809df84ed2d533e1fd8017eb966ee281565b3480156102c657600080fd5b5061024d6102d53660046120c7565b61081a565b3480156102e657600080fd5b5061031d6102f53660046120aa565b6009602052600090815260409020546001600160a01b03811690600160a01b900461ffff1682565b604080516001600160a01b03909316835261ffff909116602083015201610224565b34801561034b57600080fd5b50610264600181565b34801561036057600080fd5b5061021073d533a949740bb3306d119cc777fa900ba034cd5281565b34801561038857600080fd5b5061024d610b64565b34801561039d57600080fd5b5061021073971add32ea87f10bd192671630be3be8a11b862381565b3480156103c557600080fd5b506102107362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b3480156103ed57600080fd5b5061024d610bd8565b34801561040257600080fd5b5061024d610411366004612118565b610e11565b34801561042257600080fd5b506000546001600160a01b0316610210565b34801561044057600080fd5b50610449600181565b604051600f9190910b8152602001610224565b34801561046857600080fd5b5061021073b576491f1e6e5e62f1d8f26062ee822b40b0e0d481565b34801561049057600080fd5b50600554610210906001600160a01b031681565b3480156104b057600080fd5b5061024d6104bf366004612159565b610efd565b3480156104d057600080fd5b5061024d6104df3660046121c3565b610f92565b3480156104f057600080fd5b506105046104ff3660046121ef565b6112ae565b6040516102249291906122d0565b34801561051e57600080fd5b50610210733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b34801561054657600080fd5b5061024d6105553660046122eb565b61134c565b34801561056657600080fd5b50610449600081565b34801561057b57600080fd5b5061024d61058a3660046120aa565b611420565b34801561059b57600080fd5b5061024d6105aa3660046120aa565b6114ab565b3480156105bb57600080fd5b50600654610210906001600160a01b031681565b3480156105db57600080fd5b50610210738301ae4fc9c624d1d396cbdaa1ed877821d7c51181565b34801561060357600080fd5b5061024d6106123660046120aa565b611557565b6000546001600160a01b0316331461064a5760405162461bcd60e51b8152600401610641906123cd565b60405180910390fd5b6001600160a01b03811661065d57600080fd5b60005b8281101561078257600084848381811061067c5761067c612402565b905060200201602081019061069191906120aa565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156106d657600080fd5b505afa1580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e9190612418565b90506107246001600160a01b0383168583611641565b604080516001600160a01b038085168252861660208201529081018290527fe28922b10f7326500f50066b3f57b135330212ae30fe5332cd9200e09917ecad9060600160405180910390a150508061077b90612447565b9050610660565b50505050565b6000546001600160a01b031633146107b25760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b0381166107c557600080fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527f03b34e987bb7091e8969a3928ff54774a7db9e397d5b0bb2be601f0aa6526f11906020015b60405180910390a150565b6000546001600160a01b031633146108445760405162461bcd60e51b8152600401610641906123cd565b60005b83811015610ace57600085858381811061086357610863612402565b905060200201602081019061087891906120aa565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b1580156108bd57600080fd5b505afa1580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f59190612418565b905060018111610906575050610abe565b610911600182612462565b90506001600160a01b03821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214156109a257604051632e1a7d4d60e01b81526004810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b15801561098557600080fd5b505af1158015610999573d6000803e3d6000fd5b50505050610ab4565b6001600160a01b03821673d533a949740bb3306d119cc777fa900ba034cd5214156109d8576109d28160006116a9565b50610ab4565b6001600160a01b0382167362b9c7356a2dc64a1969e19c23e4f579f9810aa71415610a0f576109d2610a0a8230611747565b611755565b6001600160a01b038216734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b1415610a3b575050610abe565b6007851660048110610a5657610a518383611768565b610ab2565b60028110610a8d57610a51838360086000610a72600287612462565b815260208101919091526040016000205462ffffff1661187c565b600081815260076020526040902054610ab290849084906001600160a01b0316611a94565b505b600385901c945050505b610ac781612447565b9050610847565b50604051600090329083908381818185875af1925050503d8060008114610b11576040519150601f19603f3d011682016040523d82523d6000602084013e610b16565b606091505b5050905080610b5d5760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610641565b5050505050565b6000546001600160a01b03163314610b8e5760405162461bcd60e51b8152600401610641906123cd565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610c025760405162461bcd60e51b8152600401610641906123cd565b610c3673d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c5116000611bf0565b610c6b73d533a949740bb3306d119cc777fa900ba034cd52738301ae4fc9c624d1d396cbdaa1ed877821d7c511600019611bf0565b610c9f73d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b86236000611bf0565b610cd473d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b8623600019611bf0565b610d087362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b86236000611bf0565b610d3d7362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b8623600019611bf0565b610d71734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7335a398425d9f1029021a92bc3d2557d42c8588d76000611bf0565b610da6734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7335a398425d9f1029021a92bc3d2557d42c8588d7600019611bf0565b610dda734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73389fb29230d02e67eb963c1f5a00f2b16f95beb76000611bf0565b610e0f734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73389fb29230d02e67eb963c1f5a00f2b16f95beb7600019611bf0565b565b6000546001600160a01b03163314610e3b5760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b03821660009081526009602052604090208190610e5f8282612479565b50610e849050610e7260208301836120aa565b6001600160a01b038416906000611bf0565b610ea7610e9460208301836120aa565b6001600160a01b03841690600019611bf0565b7f8fca21c5d308d0debabdfc9dddde40c80ec0ad3e7fac4a6e5f72f038c3aef82d82610ed660208401846120aa565b604080516001600160a01b0393841681529290911660208301520160405180910390a15050565b6000546001600160a01b03163314610f275760405162461bcd60e51b8152600401610641906123cd565b6005546040516318bbb46f60e01b81526001600160a01b03909116906318bbb46f90610f5b908690869086906004016124da565b600060405180830381600087803b158015610f7557600080fd5b505af1158015610f89573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314610fbc5760405162461bcd60e51b8152600401610641906123cd565b47610fc8816000611d14565b506040516370a0823160e01b8152306004820152600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a082319060240160206040518083038186803b15801561101657600080fd5b505afa15801561102a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104e9190612418565b90508361117e57604051634edf668960e11b815273389fb29230d02e67eb963c1f5a00f2b16f95beb790639dbecd12906110969060009085908890839060019060040161251e565b600060405180830381600087803b1580156110b057600080fd5b505af11580156110c4573d6000803e3d6000fd5b50506005546040516370a0823160e01b815230600482015261117993506001600160a01b03909116915073bce0cf87f513102f22232436cca2ca49e815c3ac906370a082319060240160206040518083038186803b15801561112557600080fd5b505afa158015611139573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115d9190612418565b73bce0cf87f513102f22232436cca2ca49e815c3ac9190611641565b611240565b828110156111b95760405162461bcd60e51b8152602060048201526008602482015267736c69707061676560c01b6044820152606401610641565b600554604051636117ca0360e11b8152600481018390526001600160a01b03909116602482015260006044820181905260648201527335a398425d9f1029021a92bc3d2557d42c8588d79063c22f940690608401600060405180830381600087803b15801561122757600080fd5b505af115801561123b573d6000803e3d6000fd5b505050505b600560009054906101000a90046001600160a01b03166001600160a01b0316630c51dde46040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561129057600080fd5b505af11580156112a4573d6000803e3d6000fd5b5050505050505050565b600080546060906001600160a01b031633146112dc5760405162461bcd60e51b8152600401610641906123cd565b600080876001600160a01b03168787876040516112fa929190612561565b60006040518083038185875af1925050503d8060008114611337576040519150601f19603f3d011682016040523d82523d6000602084013e61133c565b606091505b5090999098509650505050505050565b6000546001600160a01b031633146113765760405162461bcd60e51b8152600401610641906123cd565b8515611387576113878c8c8c610efd565b6113938989898461081a565b83156113a3576113a38583610f92565b821561141257600660009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156113f957600080fd5b505af115801561140d573d6000803e3d6000fd5b505050505b505050505050505050505050565b6000546001600160a01b0316331461144a5760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b03811661145d57600080fd5b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f4da9c22c924692646a21cf1f423781ae3285198dc22e8a6912835d3272b90b3c9060200161080f565b6000546001600160a01b031633146114d55760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b038082166000818152600960205260408120546114fa931690611bf0565b6001600160a01b038116600081815260096020908152604080832080546001600160b01b03191690558051938452908301919091527f8fca21c5d308d0debabdfc9dddde40c80ec0ad3e7fac4a6e5f72f038c3aef82d910161080f565b6000546001600160a01b031633146115815760405162461bcd60e51b8152600401610641906123cd565b6001600160a01b0381166115e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610641565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526116a490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d20565b505050565b6003546040516365b2489b60e01b8152600160048201526000602482018190526044820185905260648201849052916001600160a01b0316906365b2489b9083906084015b6020604051808303818588803b15801561170757600080fd5b505af115801561171b573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906117409190612418565b9392505050565b600061174083836000611df2565b60006117628260006116a9565b92915050565b6001600160a01b03828116600090815260096020908152604091829020825180840190935254928316808352600160a01b90930461ffff1690820152906117ae57600080fd5b80516117c6906001600160a01b038516906000611bf0565b80516117dd906001600160a01b0385169084611bf0565b805160208201516040516365b2489b60e01b815261ffff6001831881166004830152909116602482015260448101849052600060648201526001600160a01b03909116906365b2489b90608401602060405180830381600087803b15801561184457600080fd5b505af1158015611858573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107829190612418565b6118a56001600160a01b03841673e592427a0aece92de3edee1f18e0157c058615646000611bf0565b6118cd6001600160a01b03841673e592427a0aece92de3edee1f18e0157c0586156484611bf0565b60408051610100810182526001600160a01b038516815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2602082015262ffffff83169181019190915230606082015260009060808101611923426001612571565b81526020808201869052600160408084019190915260006060938401819052815163414bf38960e01b815285516001600160a01b03908116600483015293860151841660248201529185015162ffffff16604483015292840151821660648201526080840151608482015260a084015160a482015260c084015160c482015260e084015190911660e48201529192509073e592427a0aece92de3edee1f18e0157c058615649063414bf3899061010401602060405180830381600087803b1580156119ed57600080fd5b505af1158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190612418565b604051632e1a7d4d60e01b81526004810182905290915073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015611a7557600080fd5b505af1158015611a89573d6000803e3d6000fd5b505050505050505050565b6001600160a01b038116611aa757600080fd5b6040805160028082526060820183526000926020830190803683370190505090508381600081518110611adc57611adc612402565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611b2457611b24612402565b6001600160a01b039283166020918202929092010152611b48908516836000611bf0565b611b5c6001600160a01b0385168385611bf0565b6001600160a01b0382166318cbafe58460018430611b7a4284612571565b6040518663ffffffff1660e01b8152600401611b9a95949392919061259f565b600060405180830381600087803b158015611bb457600080fd5b505af1158015611bc8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b5d9190810190612610565b801580611c795750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611c3f57600080fd5b505afa158015611c53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c779190612418565b155b611ce45760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610641565b6040516001600160a01b0383166024820152604481018290526116a490849063095ea7b360e01b9060640161166d565b60006117408383611e9b565b6000611d75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ee49092919063ffffffff16565b8051909150156116a45780806020019051810190611d9391906126ce565b6116a45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610641565b6004805460405163ddc1f59d60e01b815260019281019290925260006024830181905260448301869052606483018490526001600160a01b038581166084850152909291169063ddc1f59d9060a401602060405180830381600087803b158015611e5b57600080fd5b505af1158015611e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e939190612418565b949350505050565b6002546040516365b2489b60e01b8152600060048201819052600160248301526044820185905260648201849052916001600160a01b0316906365b2489b9085906084016116ee565b6060611e93848460008585843b611f3d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610641565b600080866001600160a01b03168587604051611f5991906126eb565b60006040518083038185875af1925050503d8060008114611f96576040519150601f19603f3d011682016040523d82523d6000602084013e611f9b565b606091505b5091509150611fab828286611fb6565b979650505050505050565b60608315611fc5575081611740565b825115611fd55782518084602001fd5b8160405162461bcd60e51b81526004016106419190612707565b60008083601f84011261200157600080fd5b50813567ffffffffffffffff81111561201957600080fd5b6020830191508360208260051b850101111561203457600080fd5b9250929050565b6001600160a01b038116811461205057600080fd5b50565b60008060006040848603121561206857600080fd5b833567ffffffffffffffff81111561207f57600080fd5b61208b86828701611fef565b909450925050602084013561209f8161203b565b809150509250925092565b6000602082840312156120bc57600080fd5b81356117408161203b565b600080600080606085870312156120dd57600080fd5b843567ffffffffffffffff8111156120f457600080fd5b61210087828801611fef565b90989097506020870135966040013595509350505050565b600080828403606081121561212c57600080fd5b83356121378161203b565b92506040601f198201121561214b57600080fd5b506020830190509250929050565b60008060006040848603121561216e57600080fd5b83359250602084013567ffffffffffffffff81111561218c57600080fd5b61219886828701611fef565b9497909650939450505050565b801515811461205057600080fd5b80356121be816121a5565b919050565b600080604083850312156121d657600080fd5b82356121e1816121a5565b946020939093013593505050565b6000806000806060858703121561220557600080fd5b84356122108161203b565b935060208501359250604085013567ffffffffffffffff8082111561223457600080fd5b818701915087601f83011261224857600080fd5b81358181111561225757600080fd5b88602082850101111561226957600080fd5b95989497505060200194505050565b60005b8381101561229357818101518382015260200161227b565b838111156107825750506000910152565b600081518084526122bc816020860160208601612278565b601f01601f19169290920160200192915050565b8215158152604060208201526000611e9360408301846122a4565b6000806000806000806000806000806000806101408d8f03121561230e57600080fd5b8c359b5067ffffffffffffffff60208e0135111561232b57600080fd5b61233b8e60208f01358f01611fef565b909b50995067ffffffffffffffff60408e0135111561235957600080fd5b6123698e60408f01358f01611fef565b909950975060608d0135965061238160808e016121b3565b955061238f60a08e016121b3565b945061239d60c08e016121b3565b93506123ab60e08e016121b3565b92506101008d013591506101208d013590509295989b509295989b509295989b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561242a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561245b5761245b612431565b5060010190565b60008282101561247457612474612431565b500390565b81356124848161203b565b81546001600160a01b031981166001600160a01b03929092169182178355602084013561ffff811681146124b757600080fd5b6001600160b01b03199190911690911760a09190911b61ffff60a01b1617905550565b838152604060208201819052810182905260006001600160fb1b0383111561250157600080fd5b8260051b8085606085013760009201606001918252509392505050565b60a081016002871061254057634e487b7160e01b600052602160045260246000fd5b95815260208101949094526040840192909252606083015260809091015290565b8183823760009101908152919050565b6000821982111561258457612584612431565b500190565b634e487b7160e01b600052604160045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156125ef5784516001600160a01b0316835293830193918301916001016125ca565b50506001600160a01b03969096166060850152505050608001529392505050565b6000602080838503121561262357600080fd5b825167ffffffffffffffff8082111561263b57600080fd5b818501915085601f83011261264f57600080fd5b81518181111561266157612661612589565b8060051b604051601f19603f8301168101818110858211171561268657612686612589565b6040529182528482019250838101850191888311156126a457600080fd5b938501935b828510156126c2578451845293850193928501926126a9565b98975050505050505050565b6000602082840312156126e057600080fd5b8151611740816121a5565b600082516126fd818460208701612278565b9190910192915050565b60208152600061174060208301846122a456fea26469706673582212207fd3c5a0c27ad2491bd4a9bf84245e87312f73472db057251ae9b3bf7e3222e164736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.