ETH Price: $1,946.91 (-1.26%)
Gas: 0.55 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Remove As LP220944752025-03-21 9:53:595 hrs ago1742550839IN
0xD60cd4AD...b52726dfd
0 ETH0.000318190.47119633
Claim LP Rewards217370942025-01-30 11:36:3550 days ago1738236995IN
0xD60cd4AD...b52726dfd
0 ETH0.000362552.18246577
Claim LP Rewards217370932025-01-30 11:36:2350 days ago1738236983IN
0xD60cd4AD...b52726dfd
0 ETH0.000552842.22357519
Claim LP Rewards215922472025-01-10 6:20:1170 days ago1736490011IN
0xD60cd4AD...b52726dfd
0 ETH0.000740233.06239579
Claim LP Rewards214995292024-12-28 7:40:2383 days ago1735371623IN
0xD60cd4AD...b52726dfd
0 ETH0.000951462.91487697
Claim LP Rewards214496672024-12-21 8:23:4790 days ago1734769427IN
0xD60cd4AD...b52726dfd
0 ETH0.0037954711.40551649
Claim LP Rewards213989072024-12-14 6:17:1197 days ago1734157031IN
0xD60cd4AD...b52726dfd
0 ETH0.002667798.73341047
Add To Pool213413912024-12-06 5:33:35105 days ago1733463215IN
0xD60cd4AD...b52726dfd
0 ETH0.0115462313.94192822
Claim LP Rewards213413852024-12-06 5:32:11105 days ago1733463131IN
0xD60cd4AD...b52726dfd
0 ETH0.0043739213.36382515
Claim LP Rewards212984912024-11-30 5:45:47111 days ago1732945547IN
0xD60cd4AD...b52726dfd
0 ETH0.001806495.52147919
Claim LP Rewards212365412024-11-21 13:55:47120 days ago1732197347IN
0xD60cd4AD...b52726dfd
0 ETH0.0093007227.09007049
Claim LP Rewards211874652024-11-14 17:36:35126 days ago1731605795IN
0xD60cd4AD...b52726dfd
0 ETH0.0093560930.64397061
Add To Pool211147772024-11-04 14:07:11137 days ago1730729231IN
0xD60cd4AD...b52726dfd
0 ETH0.007480119.2542721
Claim LP Rewards211147692024-11-04 14:05:35137 days ago1730729135IN
0xD60cd4AD...b52726dfd
0 ETH0.003849869.46641687
Claim LP Rewards209906942024-10-18 6:35:47154 days ago1729233347IN
0xD60cd4AD...b52726dfd
0 ETH0.0122278930.38529145
Claim LP Rewards208765242024-10-02 8:09:23170 days ago1727856563IN
0xD60cd4AD...b52726dfd
0 ETH0.002730786.71371879
Claim LP Rewards206481532024-08-31 11:07:47202 days ago1725102467IN
0xD60cd4AD...b52726dfd
0 ETH0.000399770.99638802
Claim LP Rewards206042592024-08-25 7:57:23208 days ago1724572643IN
0xD60cd4AD...b52726dfd
0 ETH0.00039940.97906547
Claim LP Rewards205105422024-08-12 5:47:47221 days ago1723441667IN
0xD60cd4AD...b52726dfd
0 ETH0.000432661.06367487
Claim LP Rewards203974842024-07-27 11:08:11237 days ago1722078491IN
0xD60cd4AD...b52726dfd
0 ETH0.000512491.35142707
Add To Pool203173162024-07-16 6:35:35248 days ago1721111735IN
0xD60cd4AD...b52726dfd
0 ETH0.00264013.33146203
Claim LP Rewards203173092024-07-16 6:34:11248 days ago1721111651IN
0xD60cd4AD...b52726dfd
0 ETH0.001235773.24703586
Add To Pool202458642024-07-06 7:05:35258 days ago1720249535IN
0xD60cd4AD...b52726dfd
0 ETH0.001476011.86470726
Claim LP Rewards202458562024-07-06 7:03:47258 days ago1720249427IN
0xD60cd4AD...b52726dfd
0 ETH0.000657681.63901372
Claim LP Rewards200979292024-06-15 14:56:35279 days ago1718463395IN
0xD60cd4AD...b52726dfd
0 ETH0.002826846.95193763
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TreasuryManagerPrisma

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 11 : TreasuryManagerPrisma.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import "./interfaces/IConvexDeposits.sol";
import "./interfaces/IPrismaLPStaking.sol";
import "./interfaces/IPrismaDepositor.sol";
import "./interfaces/IPrismaVault.sol";
import "./interfaces/ITokenLocker.sol";
import "./interfaces/ICurveExchange.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';


/*
 Treasury module for cvxprisma lp management on prisma
*/
contract TreasuryManagerPrisma{
    using SafeERC20 for IERC20;

    address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52);
    address public constant cvx = address(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B);
    address public constant prisma = address(0xdA47862a83dac0c112BA89c6abC2159b95afd71C);
    address public constant cvxPrisma = address(0x34635280737b5BFe6c7DC2FC3065D60d66e78185);
    address public constant treasury = address(0x1389388d01708118b497f59521f6943Be2541bb7);
    address public constant exchange = address(0x3b21C2868B6028CfB38Ff86127eF22E68d16d53B);
    address public constant deposit = address(0x61404F7c2d8b1F3373eb3c6e8C4b8d8332c2D5B8);
    address public constant voteproxy = address(0x8ad7a9e2B3Cd9214f36Cb871336d8ab34DdFdD5b);

    address public constant prismavault = address(0x06bDF212C290473dCACea9793890C5024c7Eb02c);
    address public constant prismalocker = address(0x3f78544364c3eCcDCe4d9C89a630AEa26122829d);
    address public constant lprewards = address(0xd91fBa4919b7BF3B757320ea48bA102F543dE341); //prisma staking

    address public immutable owner;


    mapping(address => bool) public operators;
    uint256 public slippage;

    event OperatorSet(address indexed _op, bool _active);
    event Swap(uint256 _amountIn, uint256 _amountOut);
    event Convert(uint256 _amount);
    event AddedToLP(uint256 _lpamount);
    event RemovedFromLp(uint256 _lpamount);
    event ClaimedReward(address indexed _token, uint256 _amount);

    constructor() {
        owner = address(0xa3C5A1e09150B75ff251c1a7815A07182c3de2FB);
        operators[msg.sender] = true;

        slippage = 970 * 1e15;
        IERC20(cvxPrisma).safeApprove(exchange, type(uint256).max);
        IERC20(prisma).safeApprove(exchange, type(uint256).max);
        IERC20(prisma).safeApprove(deposit, type(uint256).max);
        IERC20(exchange).safeApprove(lprewards, type(uint256).max);
    }


    modifier onlyOwner() {
        require(owner == msg.sender, "!owner");
        _;
    }

    modifier onlyOperator() {
        require(operators[msg.sender] || owner == msg.sender, "!operator");
        _;
    }

    function treasuryBalanceOfCvxPrisma() external view returns(uint256){
        return IERC20(cvxPrisma).balanceOf(treasury);
    }

    function treasuryBalanceOfPrisma() external view returns(uint256){
        return IERC20(prisma).balanceOf(treasury);
    }

    function setOperator(address _op, bool _active) external onlyOwner{
        operators[_op] = _active;
        emit OperatorSet(_op, _active);
    }

    function setSlippageAllowance(uint256 _slip) external onlyOwner{
        require(_slip > 0, "!valid slip");
        slippage = _slip;
    }

    function withdrawTo(IERC20 _asset, uint256 _amount, address _to) external onlyOwner{
        _asset.safeTransfer(_to, _amount);
    }

    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);
    }

    function calc_minOut_swap(uint256 _amount) external view returns(uint256){
        uint256[2] memory amounts = [_amount,0];
        uint256 tokenOut = ICurveExchange(exchange).calc_token_amount(amounts, false);
        tokenOut = tokenOut * slippage / 1e18;
        return tokenOut;
    }

    function calc_minOut_deposit(uint256 _prismaAmount, uint256 _cvxPrismaAmount) external view returns(uint256){
        uint256[2] memory amounts = [_prismaAmount,_cvxPrismaAmount];
        uint256 tokenOut = ICurveExchange(exchange).calc_token_amount(amounts, true);
        tokenOut = tokenOut * slippage / 1e18;
        return tokenOut;
    }

    function calc_withdraw_one_coin(uint256 _amount) external view returns(uint256){
        uint256 tokenOut = ICurveExchange(exchange).calc_withdraw_one_coin(_amount, 1);
        tokenOut = tokenOut * slippage / 1e18;
        return tokenOut;
    }

    function swap(uint256 _amount, uint256 _minAmountOut) external onlyOperator{
        require(_minAmountOut > 0, "!min_out");

        uint256 before = IERC20(cvxPrisma).balanceOf(treasury);

        //pull
        IERC20(prisma).safeTransferFrom(treasury,address(this),_amount);
        
        //swap prisma for cvxPrisma and return to treasury
        ICurveExchange(exchange).exchange(0,1,_amount,_minAmountOut, treasury);

        emit Swap(_amount, IERC20(cvxPrisma).balanceOf(treasury) - before );
    }

    function convert(uint256 _amount, bool _lock) external onlyOperator{
        //pull
        IERC20(prisma).safeTransferFrom(treasury,address(this),_amount);
        
        //deposit
        IPrismaDepositor(deposit).deposit(_amount,_lock);

        //return
        IERC20(cvxPrisma).safeTransfer(treasury,_amount);

        emit Convert(_amount);
    }


    function addToPool(uint256 _prismaAmount, uint256 _cvxPrismaAmount, uint256 _minAmountOut) external onlyOperator{
        require(_minAmountOut > 0, "!min_out");

        //pull
        IERC20(prisma).safeTransferFrom(treasury,address(this),_prismaAmount);
        IERC20(cvxPrisma).safeTransferFrom(treasury,address(this),_cvxPrismaAmount);

        //add lp
        uint256[2] memory amounts = [_prismaAmount,_cvxPrismaAmount];
        ICurveExchange(exchange).add_liquidity(amounts, _minAmountOut, address(this));

        //add to convex
        uint256 lpBalance = IERC20(exchange).balanceOf(address(this));
        IPrismaLPStaking(lprewards).deposit(address(this), lpBalance);

        emit AddedToLP(lpBalance);
    }

    function removeFromPool(uint256 _amount, uint256 _minAmountOut) external onlyOperator{
        require(_minAmountOut > 0, "!min_out");

        //remove from prisma
        IPrismaLPStaking(lprewards).withdraw(address(this), _amount);

        //remove from LP with treasury as receiver
        ICurveExchange(exchange).remove_liquidity_one_coin(IERC20(exchange).balanceOf(address(this)), 1, _minAmountOut, treasury);

        uint256 bal = IERC20(crv).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(crv).safeTransfer(treasury, bal);
        }

        bal = IERC20(cvx).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(cvx).safeTransfer(treasury, bal);
        }

        bal = IERC20(prisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(prisma).safeTransfer(treasury, bal);
        }

        bal = IERC20(cvxPrisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(cvxPrisma).safeTransfer(treasury, bal);
        }

        emit RemovedFromLp(_amount);
    }

    function removeAsLP(uint256 _amount) external onlyOperator{
        //remove from convex
        IPrismaLPStaking(lprewards).withdraw(address(this), _amount);

        //remove from LP with treasury as receiver
        IERC20(exchange).safeTransfer(treasury,IERC20(exchange).balanceOf(address(this)));

        uint256 bal = IERC20(crv).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(crv).safeTransfer(treasury, bal);
        }

        bal = IERC20(cvx).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(cvx).safeTransfer(treasury, bal);
        }

        bal = IERC20(prisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(prisma).safeTransfer(treasury, bal);
        }

        emit RemovedFromLp(_amount);
    }

    function claimLPRewards() external onlyOperator{
        claim(false);
    }

    function claim(bool claimAsCvxPrisma) public onlyOperator{
        //claim from prisma (prisma claimed as locked)
        address[] memory rewards = new address[](1);
        rewards[0] = lprewards;
        if(claimAsCvxPrisma){
            IPrismaVault(prismavault).batchClaimRewards(voteproxy, voteproxy, rewards, 10000);
        }else{
            IPrismaVault(prismavault).batchClaimRewards(address(this), voteproxy, rewards, 10000);
        }

        //withdraw lock
        ITokenLocker(prismalocker).withdrawWithPenalty(type(uint256).max);

        uint256 bal = IERC20(crv).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(crv).safeTransfer(treasury, bal);
            emit ClaimedReward(crv,bal);
        }

        bal = IERC20(cvx).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(cvx).safeTransfer(treasury, bal);
            emit ClaimedReward(cvx,bal);
        }

        bal = IERC20(prisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(prisma).safeTransfer(treasury, bal);
            emit ClaimedReward(prisma,bal);
        }

        bal = IERC20(cvxPrisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(cvxPrisma).safeTransfer(treasury, bal);
            emit ClaimedReward(cvxPrisma,bal);
        }
    }
    
    function withdrawExpiredLocks() public onlyOperator{
        ITokenLocker(prismalocker).withdrawExpiredLocks(0);
        uint256 bal = IERC20(prisma).balanceOf(address(this));
        if(bal > 0){
            //transfer to treasury
            IERC20(prisma).safeTransfer(treasury, bal);
        }
    }
}

File 2 of 11 : ITokenLocker.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

interface ITokenLocker {
    struct LockData {
        uint amount;
        uint weeksToUnlock;
    }

    function lock(address _account, uint256 _amount, uint256 _weeks) external returns (bool);
    function withdrawExpiredLocks(uint256 _weeks) external returns (bool);
    function withdrawWithPenalty(uint amountToWithdraw) external returns (uint);

    function getAccountBalances(address account) external view returns (uint256 locked, uint256 unlocked);
    function getAccountActiveLocks(
        address account,
        uint minWeeks
    ) external view returns (LockData[] memory lockData, uint frozenAmount);

    function getAccountWeightAt(address account, uint week) external view returns (uint256);

    function getTotalWeightAt(uint week) external view returns (uint256);

    function getWithdrawWithPenaltyAmounts(address account, uint amountToWithdraw) external view returns (uint amountWithdrawn, uint penaltyAmountPaid);

    function lockToTokenRatio() external view returns (uint256);

    function freeze() external;
}

File 3 of 11 : IPrismaVault.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

//interface for the PrismaVault.
interface IPrismaVault {
    function unallocatedTotal() external view returns (uint256);

    function allocateNewEmissions(uint id) external returns (uint256);

    function transferAllocatedTokens(address receiver, uint256 amount) external returns (uint256);
    
    function claimableBoostDelegationFees(address claimant) external view returns (uint256 amount);

    function batchClaimRewards(
        address receiver,
        address boostDelegate,
        address[] calldata rewardContracts,
        uint256 maxFeePct
    ) external returns (bool);
}

File 4 of 11 : IPrismaLPStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IPrismaLPStaking {
    function deposit(address receiver, uint256 amount) external returns (bool);
    function withdraw(address receiver, uint256 amount) external returns (bool);
    function claimReward(
        address receiver
    ) external returns (uint256 prismaAmount, uint256 crvAmount, uint256 cvxAmount);
    function claimableReward(
        address account
    ) external view returns (uint256 prismaAmount, uint256 crvAmount, uint256 cvxAmount);
    function fetchRewards() external;
}

File 5 of 11 : IPrismaDepositor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IPrismaDepositor {
   function deposit(uint256 _amount, bool _lock) external;
}

File 6 of 11 : ICurveExchange.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface ICurveExchange {

    function exchange(
        int128,
        int128,
        uint256,
        uint256,
        address
    ) external returns (uint256);

    function calc_token_amount(uint256[2] calldata _amounts, bool _isDeposit) external view returns(uint256);
    function calc_withdraw_one_coin(uint256 _amount, int128 _index) external view returns(uint256);
    function add_liquidity(uint256[2] calldata _amounts, uint256 _min_mint_amount, address _receiver) external returns(uint256);
    function remove_liquidity(uint256 _amount, uint256[2] calldata _min_amounts, address _receiver) external returns(uint256[2] calldata);
    function remove_liquidity_one_coin(uint256 _amount, int128 _index, uint256 _min_amount, address _receiver) external returns(uint256);
}

File 7 of 11 : IConvexDeposits.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

interface IConvexDeposits {
    function deposit(uint256 _pid, uint256 _amount, bool _stake) external returns(bool);
    function deposit(uint256 _amount, bool _lock, address _stakeAddress) external;
    function earmarkRewards(uint256 _pid) external returns(bool);
    function earmarkFees() external returns(bool);
}

File 8 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 10 of 11 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 11 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_lpamount","type":"uint256"}],"name":"AddedToLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ClaimedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_op","type":"address"},{"indexed":false,"internalType":"bool","name":"_active","type":"bool"}],"name":"OperatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_lpamount","type":"uint256"}],"name":"RemovedFromLp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"uint256","name":"_prismaAmount","type":"uint256"},{"internalType":"uint256","name":"_cvxPrismaAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"addToPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_prismaAmount","type":"uint256"},{"internalType":"uint256","name":"_cvxPrismaAmount","type":"uint256"}],"name":"calc_minOut_deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calc_minOut_swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calc_withdraw_one_coin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"claimAsCvxPrisma","type":"bool"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimLPRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxPrisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchange","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"lprewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prismalocker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prismavault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"removeAsLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"removeFromPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_op","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slip","type":"uint256"}],"name":"setSlippageAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryBalanceOfCvxPrisma","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryBalanceOfPrisma","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteproxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawExpiredLocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5073a3c5a1e09150b75ff251c1a7815a07182c3de2fb608052336000908152602081905260409020805460ff19166001908117909155670d7621dc582100009055620000897334635280737b5bfe6c7dc2fc3065d60d66e78185733b21c2868b6028cfb38ff86127ef22e68d16d53b60001962000134565b620000c073da47862a83dac0c112ba89c6abc2159b95afd71c733b21c2868b6028cfb38ff86127ef22e68d16d53b60001962000134565b620000f773da47862a83dac0c112ba89c6abc2159b95afd71c7361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b860001962000134565b6200012e733b21c2868b6028cfb38ff86127ef22e68d16d53b73d91fba4919b7bf3b757320ea48ba102f543de34160001962000134565b620005bd565b801580620001b25750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156200018a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b09190620004ff565b155b6200022a5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620002829185916200028716565b505050565b6040805180820190915260208082527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490820152600090620002d6906001600160a01b0385169084906200035b565b9050805160001480620002fa575080806020019051810190620002fa919062000519565b620002825760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000221565b60606200036c848460008562000374565b949350505050565b606082471015620003d75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000221565b600080866001600160a01b03168587604051620003f591906200056a565b60006040518083038185875af1925050503d806000811462000434576040519150601f19603f3d011682016040523d82523d6000602084013e62000439565b606091505b5090925090506200044d8783838762000458565b979650505050505050565b60608315620004cc578251600003620004c4576001600160a01b0385163b620004c45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000221565b50816200036c565b6200036c8383815115620004e35781518083602001fd5b8060405162461bcd60e51b815260040162000221919062000588565b6000602082840312156200051257600080fd5b5051919050565b6000602082840312156200052c57600080fd5b815180151581146200053d57600080fd5b9392505050565b60005b838110156200056157818101518382015260200162000547565b50506000910152565b600082516200057e81846020870162000544565b9190910192915050565b6020815260008251806020840152620005a981604085016020870162000544565b601f01601f19169190910160400192915050565b60805161288c6200062d6000396000818161033a015281816104d70152818161090d01528181610f0101528181611017015281816110d5015281816114d30152818161162a0152818161178c0152818161181b015281816118d3015281816119900152611e5f015261288c6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063923c1d611161010f578063c4e2c1e6116100a2578063d2f7265a11610071578063d2f7265a14610458578063d96073cf14610473578063f6f2c48d14610486578063f794c6a9146104a157600080fd5b8063c4e2c1e61461040f578063c781727214610422578063d0e30db01461042a578063d276ab2d1461044557600080fd5b8063ab5d6dd5116100de578063ab5d6dd5146103a5578063b0faff1b146103b8578063b61d27f6146103d3578063c447c9b1146103f457600080fd5b8063923c1d611461035c57806395175846146103775780639a5ef3691461038a578063a01c77bc1461039d57600080fd5b80634bca41421161018757806363c40d851161015657806363c40d85146102f45780636a4874a11461030757806382cfbabc146103225780638da5cb5b1461033557600080fd5b80634bca41421461029e57806354b8b09a146102b9578063558a7297146102cc57806361d027b3146102df57600080fd5b80631d0b9d09116101c35780631d0b9d09146102645780632d81a78e1461027a5780633cad2a0a1461028d5780633e032a3b1461029557600080fd5b806307ab2fd0146101ea5780630a3266b0146101ff57806313e7c9d814610231575b600080fd5b6101fd6101f8366004612373565b6104bc565b005b61021460008051602061283783398151915281565b6040516001600160a01b0390911681526020015b60405180910390f35b61025461023f3660046123a1565b60006020819052908152604090205460ff1681565b6040519015158152602001610228565b61026c61086e565b604051908152602001610228565b6101fd6102883660046123cc565b6108f2565b6101fd610ee6565b61026c60015481565b610214738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b61026c6102c73660046123e9565b610f54565b6101fd6102da36600461240b565b611015565b61021460008051602061281783398151915281565b6101fd610302366004612444565b6110ba565b61021473d533a949740bb3306d119cc777fa900ba034cd5281565b61026c610330366004612373565b611353565b6102147f000000000000000000000000000000000000000000000000000000000000000081565b610214734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61026c610385366004612373565b6113fd565b6101fd610398366004612470565b6114b8565b6101fd61160f565b6101fd6103b3366004612373565b61178a565b610214733f78544364c3eccdce4d9c89a630aea26122829d81565b6103e66103e1366004612495565b611815565b60405161022892919061256e565b6102147306bdf212c290473dcacea9793890c5024c7eb02c81565b6101fd61041d366004612589565b6118d1565b61026c61192d565b6102147361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b881565b6101fd6104533660046123e9565b611975565b610214733b21c2868b6028cfb38ff86127ef22e68d16d53b81565b6101fd6104813660046123e9565b611e44565b6102147334635280737b5bfe6c7dc2fc3065d60d66e7818581565b61021473d91fba4919b7bf3b757320ea48ba102f543de34181565b3360009081526020819052604090205460ff168061050257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6105275760405162461bcd60e51b815260040161051e906125cb565b60405180910390fd5b60405163f3fef3a360e01b81523060048201526024810182905273d91fba4919b7bf3b757320ea48ba102f543de3419063f3fef3a3906044016020604051808303816000875af115801561057f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a391906125ee565b506040516370a0823160e01b81523060048201526106479060008051602061281783398151915290733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b919061260b565b733b21c2868b6028cfb38ff86127ef22e68d16d53b91906120da565b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd919061260b565b905080156106f2576106f273d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610741573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610765919061260b565b9050801561079a5761079a734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa1580156107e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610807919061260b565b9050801561083657610836600080516020612837833981519152600080516020612817833981519152836120da565b6040518281527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a15050565b6040516370a0823160e01b81526000805160206128178339815191526004820152600090600080516020612837833981519152906370a08231906024015b602060405180830381865afa1580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed919061260b565b905090565b3360009081526020819052604090205460ff168061093857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6109545760405162461bcd60e51b815260040161051e906125cb565b6040805160018082528183019092526000916020808301908036833701905050905073d91fba4919b7bf3b757320ea48ba102f543de3418160008151811061099e5761099e612624565b60200260200101906001600160a01b031690816001600160a01b0316815250508115610a6057604051639e27a51b60e01b81527306bdf212c290473dcacea9793890c5024c7eb02c90639e27a51b90610a1790738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b90819086906127109060040161263a565b6020604051808303816000875af1158015610a36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5a91906125ee565b50610af8565b604051639e27a51b60e01b81527306bdf212c290473dcacea9793890c5024c7eb02c90639e27a51b90610ab3903090738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b9086906127109060040161263a565b6020604051808303816000875af1158015610ad2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af691906125ee565b505b60405163100c9a4d60e31b81526000196004820152733f78544364c3eccdce4d9c89a630aea26122829d90638064d268906024016020604051808303816000875af1158015610b4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6f919061260b565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be6919061260b565b90508015610c5357610c1b73d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b60405181815273d533a949740bb3306d119cc777fa900ba034cd52906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc6919061260b565b90508015610d3357610cfb734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b604051818152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da0919061260b565b90508015610e0157610dcf600080516020612837833981519152600080516020612817833981519152836120da565b604051818152600080516020612837833981519152906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015610e50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e74919061260b565b90508015610ee157610ea97334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152836120da565b6040518181527334635280737b5bfe6c7dc2fc3065d60d66e78185906000805160206127f78339815191529060200160405180910390a25b505050565b3360009081526020819052604090205460ff1680610f2c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b610f485760405162461bcd60e51b815260040161051e906125cb565b610f5260006108f2565b565b60408051808201825283815260208101839052905163ed8e84f360e01b8152600091908290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f390610fa69085906001906004016126c9565b602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061260b565b9050670de0b6b3a76400006001548261100091906126fc565b61100a9190612713565b925050505b92915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331461105d5760405162461bcd60e51b815260040161051e90612735565b6001600160a01b03821660008181526020818152604091829020805460ff191685151590811790915591519182527f1a594081ae893ab78e67d9b9e843547318164322d32c65369d78a96172d9dc8f910160405180910390a25050565b3360009081526020819052604090205460ff168061110057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b61111c5760405162461bcd60e51b815260040161051e906125cb565b6000811161113c5760405162461bcd60e51b815260040161051e90612755565b611164600080516020612837833981519152600080516020612817833981519152308661213d565b6111927334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152308561213d565b60408051808201825284815260208101849052905163030f92d560e21b8152733b21c2868b6028cfb38ff86127ef22e68d16d53b90630c3e4b54906111df90849086903090600401612777565b6020604051808303816000875af11580156111fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611222919061260b565b506040516370a0823160e01b8152306004820152600090733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015611275573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611299919061260b565b6040516311f9fbc960e21b81523060048201526024810182905290915073d91fba4919b7bf3b757320ea48ba102f543de341906347e7ef24906044016020604051808303816000875af11580156112f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131891906125ee565b506040518181527fa6a8107039a83951c79bff2674934ac8564693a125f6817ed6dc7f7fdc49e3679060200160405180910390a15050505050565b60405163cc2b27d760e01b815260048101829052600160248201526000908190733b21c2868b6028cfb38ff86127ef22e68d16d53b9063cc2b27d790604401602060405180830381865afa1580156113af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d3919061260b565b9050670de0b6b3a7640000600154826113ec91906126fc565b6113f69190612713565b9392505050565b604080518082018252828152600060208201819052915163ed8e84f360e01b81528290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f39061144c90859085906004016126c9565b602060405180830381865afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d919061260b565b9050670de0b6b3a7640000600154826114a691906126fc565b6114b09190612713565b949350505050565b3360009081526020819052604090205460ff16806114fe57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b61151a5760405162461bcd60e51b815260040161051e906125cb565b611542600080516020612837833981519152600080516020612817833981519152308561213d565b604051639a40832160e01b81526004810183905281151560248201527361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b890639a40832190604401600060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b506115df92507334635280737b5bfe6c7dc2fc3065d60d66e7818591506000805160206128178339815191529050846120da565b6040518281527f37ec6b5ba182178b94b69c1f891b21848dd8f216d76f0ddf8be8d54572b8c27090602001610862565b3360009081526020819052604090205460ff168061165557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6116715760405162461bcd60e51b815260040161051e906125cb565b60405163025a055360e31b815260006004820152733f78544364c3eccdce4d9c89a630aea26122829d906312d02a98906024016020604051808303816000875af11580156116c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e791906125ee565b506040516370a0823160e01b8152306004820152600090600080516020612837833981519152906370a0823190602401602060405180830381865afa158015611734573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611758919061260b565b9050801561178757611787600080516020612837833981519152600080516020612817833981519152836120da565b50565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146117d25760405162461bcd60e51b815260040161051e90612735565b600081116118105760405162461bcd60e51b815260206004820152600b60248201526a02176616c696420736c69760ac1b604482015260640161051e565b600155565b600060607f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146118615760405162461bcd60e51b815260040161051e90612735565b600080876001600160a01b031687878760405161187f9291906127a4565b60006040518083038185875af1925050503d80600081146118bc576040519150601f19603f3d011682016040523d82523d6000602084013e6118c1565b606091505b5090999098509650505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146119195760405162461bcd60e51b815260040161051e90612735565b610ee16001600160a01b03841682846120da565b6040516370a0823160e01b815260008051602061281783398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a08231906024016108ac565b3360009081526020819052604090205460ff16806119bb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6119d75760405162461bcd60e51b815260040161051e906125cb565b600081116119f75760405162461bcd60e51b815260040161051e90612755565b60405163f3fef3a360e01b81523060048201526024810183905273d91fba4919b7bf3b757320ea48ba102f543de3419063f3fef3a3906044016020604051808303816000875af1158015611a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7391906125ee565b506040516370a0823160e01b8152306004820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063081579a59082906370a0823190602401602060405180830381865afa158015611acb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aef919061260b565b6040516001600160e01b031960e084901b1681526004810191909152600160248201526044810184905260008051602061281783398151915260648201526084016020604051808303816000875af1158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b73919061260b565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea919061260b565b90508015611c1f57611c1f73d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015611c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c92919061260b565b90508015611cc757611cc7734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa158015611d10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d34919061260b565b90508015611d6357611d63600080516020612837833981519152600080516020612817833981519152836120da565b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd6919061260b565b90508015611e0b57611e0b7334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152836120da565b6040518381527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a1505050565b3360009081526020819052604090205460ff1680611e8a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b611ea65760405162461bcd60e51b815260040161051e906125cb565b60008111611ec65760405162461bcd60e51b815260040161051e90612755565b6040516370a0823160e01b815260008051602061281783398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4a919061260b565b9050611f74600080516020612837833981519152600080516020612817833981519152308661213d565b60405163ddc1f59d60e01b8152600060048201526001602482015260448101849052606481018390526000805160206128178339815191526084820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ddc1f59d9060a4016020604051808303816000875af1158015611fef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612013919061260b565b506040516370a0823160e01b815260008051602061281783398151915260048201527f015fc8ee969fd902d9ebd12a31c54446400a2b512a405366fe14defd6081d22090849083907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015612097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bb919061260b565b6120c591906127b4565b60408051928352602083019190915201611e37565b6040516001600160a01b038316602482015260448101829052610ee190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261217b565b6040516001600160a01b03808516602483015283166044820152606481018290526121759085906323b872dd60e01b90608401612106565b50505050565b60006121d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122509092919063ffffffff16565b90508051600014806121f15750808060200190518101906121f191906125ee565b610ee15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161051e565b60606114b0848460008585600080866001600160a01b0316858760405161227791906127c7565b60006040518083038185875af1925050503d80600081146122b4576040519150601f19603f3d011682016040523d82523d6000602084013e6122b9565b606091505b50915091506122ca878383876122d5565b979650505050505050565b6060831561234457825160000361233d576001600160a01b0385163b61233d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051e565b50816114b0565b6114b083838151156123595781518083602001fd5b8060405162461bcd60e51b815260040161051e91906127e3565b60006020828403121561238557600080fd5b5035919050565b6001600160a01b038116811461178757600080fd5b6000602082840312156123b357600080fd5b81356113f68161238c565b801515811461178757600080fd5b6000602082840312156123de57600080fd5b81356113f6816123be565b600080604083850312156123fc57600080fd5b50508035926020909101359150565b6000806040838503121561241e57600080fd5b82356124298161238c565b91506020830135612439816123be565b809150509250929050565b60008060006060848603121561245957600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561248357600080fd5b823591506020830135612439816123be565b600080600080606085870312156124ab57600080fd5b84356124b68161238c565b935060208501359250604085013567ffffffffffffffff808211156124da57600080fd5b818701915087601f8301126124ee57600080fd5b8135818111156124fd57600080fd5b88602082850101111561250f57600080fd5b95989497505060200194505050565b60005b83811015612539578181015183820152602001612521565b50506000910152565b6000815180845261255a81602086016020860161251e565b601f01601f19169290920160200192915050565b82151581526040602082015260006114b06040830184612542565b60008060006060848603121561259e57600080fd5b83356125a98161238c565b92506020840135915060408401356125c08161238c565b809150509250925092565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60006020828403121561260057600080fd5b81516113f6816123be565b60006020828403121561261d57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006080820160018060a01b0380881684526020818816818601526080604086015282875180855260a087019150828901945060005b8181101561268e578551851683529483019491830191600101612670565b50508094505050505082606083015295945050505050565b8060005b60028110156121755781518452602093840193909101906001016126aa565b606081016126d782856126a6565b82151560408301529392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761100f5761100f6126e6565b60008261273057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b602080825260089082015267085b5a5b97dbdd5d60c21b604082015260600190565b6080810161278582866126a6565b60408201939093526001600160a01b0391909116606090910152919050565b8183823760009101908152919050565b8181038181111561100f5761100f6126e6565b600082516127d981846020870161251e565b9190910192915050565b6020815260006113f6602083018461254256fed0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba30000000000000000000000001389388d01708118b497f59521f6943be2541bb7000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71ca264697066735822122065853ca97677d5abffb129af969490a9be103e5628b90bbf5a7315ea0a25885264736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063923c1d611161010f578063c4e2c1e6116100a2578063d2f7265a11610071578063d2f7265a14610458578063d96073cf14610473578063f6f2c48d14610486578063f794c6a9146104a157600080fd5b8063c4e2c1e61461040f578063c781727214610422578063d0e30db01461042a578063d276ab2d1461044557600080fd5b8063ab5d6dd5116100de578063ab5d6dd5146103a5578063b0faff1b146103b8578063b61d27f6146103d3578063c447c9b1146103f457600080fd5b8063923c1d611461035c57806395175846146103775780639a5ef3691461038a578063a01c77bc1461039d57600080fd5b80634bca41421161018757806363c40d851161015657806363c40d85146102f45780636a4874a11461030757806382cfbabc146103225780638da5cb5b1461033557600080fd5b80634bca41421461029e57806354b8b09a146102b9578063558a7297146102cc57806361d027b3146102df57600080fd5b80631d0b9d09116101c35780631d0b9d09146102645780632d81a78e1461027a5780633cad2a0a1461028d5780633e032a3b1461029557600080fd5b806307ab2fd0146101ea5780630a3266b0146101ff57806313e7c9d814610231575b600080fd5b6101fd6101f8366004612373565b6104bc565b005b61021460008051602061283783398151915281565b6040516001600160a01b0390911681526020015b60405180910390f35b61025461023f3660046123a1565b60006020819052908152604090205460ff1681565b6040519015158152602001610228565b61026c61086e565b604051908152602001610228565b6101fd6102883660046123cc565b6108f2565b6101fd610ee6565b61026c60015481565b610214738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b81565b61026c6102c73660046123e9565b610f54565b6101fd6102da36600461240b565b611015565b61021460008051602061281783398151915281565b6101fd610302366004612444565b6110ba565b61021473d533a949740bb3306d119cc777fa900ba034cd5281565b61026c610330366004612373565b611353565b6102147f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb81565b610214734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61026c610385366004612373565b6113fd565b6101fd610398366004612470565b6114b8565b6101fd61160f565b6101fd6103b3366004612373565b61178a565b610214733f78544364c3eccdce4d9c89a630aea26122829d81565b6103e66103e1366004612495565b611815565b60405161022892919061256e565b6102147306bdf212c290473dcacea9793890c5024c7eb02c81565b6101fd61041d366004612589565b6118d1565b61026c61192d565b6102147361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b881565b6101fd6104533660046123e9565b611975565b610214733b21c2868b6028cfb38ff86127ef22e68d16d53b81565b6101fd6104813660046123e9565b611e44565b6102147334635280737b5bfe6c7dc2fc3065d60d66e7818581565b61021473d91fba4919b7bf3b757320ea48ba102f543de34181565b3360009081526020819052604090205460ff168061050257507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6105275760405162461bcd60e51b815260040161051e906125cb565b60405180910390fd5b60405163f3fef3a360e01b81523060048201526024810182905273d91fba4919b7bf3b757320ea48ba102f543de3419063f3fef3a3906044016020604051808303816000875af115801561057f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a391906125ee565b506040516370a0823160e01b81523060048201526106479060008051602061281783398151915290733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610607573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062b919061260b565b733b21c2868b6028cfb38ff86127ef22e68d16d53b91906120da565b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610699573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bd919061260b565b905080156106f2576106f273d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610741573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610765919061260b565b9050801561079a5761079a734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa1580156107e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610807919061260b565b9050801561083657610836600080516020612837833981519152600080516020612817833981519152836120da565b6040518281527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a15050565b6040516370a0823160e01b81526000805160206128178339815191526004820152600090600080516020612837833981519152906370a08231906024015b602060405180830381865afa1580156108c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ed919061260b565b905090565b3360009081526020819052604090205460ff168061093857507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6109545760405162461bcd60e51b815260040161051e906125cb565b6040805160018082528183019092526000916020808301908036833701905050905073d91fba4919b7bf3b757320ea48ba102f543de3418160008151811061099e5761099e612624565b60200260200101906001600160a01b031690816001600160a01b0316815250508115610a6057604051639e27a51b60e01b81527306bdf212c290473dcacea9793890c5024c7eb02c90639e27a51b90610a1790738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b90819086906127109060040161263a565b6020604051808303816000875af1158015610a36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5a91906125ee565b50610af8565b604051639e27a51b60e01b81527306bdf212c290473dcacea9793890c5024c7eb02c90639e27a51b90610ab3903090738ad7a9e2b3cd9214f36cb871336d8ab34ddfdd5b9086906127109060040161263a565b6020604051808303816000875af1158015610ad2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af691906125ee565b505b60405163100c9a4d60e31b81526000196004820152733f78544364c3eccdce4d9c89a630aea26122829d90638064d268906024016020604051808303816000875af1158015610b4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6f919061260b565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be6919061260b565b90508015610c5357610c1b73d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b60405181815273d533a949740bb3306d119cc777fa900ba034cd52906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc6919061260b565b90508015610d3357610cfb734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b604051818152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da0919061260b565b90508015610e0157610dcf600080516020612837833981519152600080516020612817833981519152836120da565b604051818152600080516020612837833981519152906000805160206127f78339815191529060200160405180910390a25b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015610e50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e74919061260b565b90508015610ee157610ea97334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152836120da565b6040518181527334635280737b5bfe6c7dc2fc3065d60d66e78185906000805160206127f78339815191529060200160405180910390a25b505050565b3360009081526020819052604090205460ff1680610f2c57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b610f485760405162461bcd60e51b815260040161051e906125cb565b610f5260006108f2565b565b60408051808201825283815260208101839052905163ed8e84f360e01b8152600091908290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f390610fa69085906001906004016126c9565b602060405180830381865afa158015610fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe7919061260b565b9050670de0b6b3a76400006001548261100091906126fc565b61100a9190612713565b925050505b92915050565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b0316331461105d5760405162461bcd60e51b815260040161051e90612735565b6001600160a01b03821660008181526020818152604091829020805460ff191685151590811790915591519182527f1a594081ae893ab78e67d9b9e843547318164322d32c65369d78a96172d9dc8f910160405180910390a25050565b3360009081526020819052604090205460ff168061110057507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b61111c5760405162461bcd60e51b815260040161051e906125cb565b6000811161113c5760405162461bcd60e51b815260040161051e90612755565b611164600080516020612837833981519152600080516020612817833981519152308661213d565b6111927334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152308561213d565b60408051808201825284815260208101849052905163030f92d560e21b8152733b21c2868b6028cfb38ff86127ef22e68d16d53b90630c3e4b54906111df90849086903090600401612777565b6020604051808303816000875af11580156111fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611222919061260b565b506040516370a0823160e01b8152306004820152600090733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015611275573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611299919061260b565b6040516311f9fbc960e21b81523060048201526024810182905290915073d91fba4919b7bf3b757320ea48ba102f543de341906347e7ef24906044016020604051808303816000875af11580156112f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131891906125ee565b506040518181527fa6a8107039a83951c79bff2674934ac8564693a125f6817ed6dc7f7fdc49e3679060200160405180910390a15050505050565b60405163cc2b27d760e01b815260048101829052600160248201526000908190733b21c2868b6028cfb38ff86127ef22e68d16d53b9063cc2b27d790604401602060405180830381865afa1580156113af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d3919061260b565b9050670de0b6b3a7640000600154826113ec91906126fc565b6113f69190612713565b9392505050565b604080518082018252828152600060208201819052915163ed8e84f360e01b81528290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f39061144c90859085906004016126c9565b602060405180830381865afa158015611469573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148d919061260b565b9050670de0b6b3a7640000600154826114a691906126fc565b6114b09190612713565b949350505050565b3360009081526020819052604090205460ff16806114fe57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b61151a5760405162461bcd60e51b815260040161051e906125cb565b611542600080516020612837833981519152600080516020612817833981519152308561213d565b604051639a40832160e01b81526004810183905281151560248201527361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b890639a40832190604401600060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b506115df92507334635280737b5bfe6c7dc2fc3065d60d66e7818591506000805160206128178339815191529050846120da565b6040518281527f37ec6b5ba182178b94b69c1f891b21848dd8f216d76f0ddf8be8d54572b8c27090602001610862565b3360009081526020819052604090205460ff168061165557507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6116715760405162461bcd60e51b815260040161051e906125cb565b60405163025a055360e31b815260006004820152733f78544364c3eccdce4d9c89a630aea26122829d906312d02a98906024016020604051808303816000875af11580156116c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e791906125ee565b506040516370a0823160e01b8152306004820152600090600080516020612837833981519152906370a0823190602401602060405180830381865afa158015611734573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611758919061260b565b9050801561178757611787600080516020612837833981519152600080516020612817833981519152836120da565b50565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633146117d25760405162461bcd60e51b815260040161051e90612735565b600081116118105760405162461bcd60e51b815260206004820152600b60248201526a02176616c696420736c69760ac1b604482015260640161051e565b600155565b600060607f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633146118615760405162461bcd60e51b815260040161051e90612735565b600080876001600160a01b031687878760405161187f9291906127a4565b60006040518083038185875af1925050503d80600081146118bc576040519150601f19603f3d011682016040523d82523d6000602084013e6118c1565b606091505b5090999098509650505050505050565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633146119195760405162461bcd60e51b815260040161051e90612735565b610ee16001600160a01b03841682846120da565b6040516370a0823160e01b815260008051602061281783398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a08231906024016108ac565b3360009081526020819052604090205460ff16806119bb57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6119d75760405162461bcd60e51b815260040161051e906125cb565b600081116119f75760405162461bcd60e51b815260040161051e90612755565b60405163f3fef3a360e01b81523060048201526024810183905273d91fba4919b7bf3b757320ea48ba102f543de3419063f3fef3a3906044016020604051808303816000875af1158015611a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7391906125ee565b506040516370a0823160e01b8152306004820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063081579a59082906370a0823190602401602060405180830381865afa158015611acb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aef919061260b565b6040516001600160e01b031960e084901b1681526004810191909152600160248201526044810184905260008051602061281783398151915260648201526084016020604051808303816000875af1158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b73919061260b565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea919061260b565b90508015611c1f57611c1f73d533a949740bb3306d119cc777fa900ba034cd52600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015611c6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c92919061260b565b90508015611cc757611cc7734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600080516020612817833981519152836120da565b6040516370a0823160e01b8152306004820152600080516020612837833981519152906370a0823190602401602060405180830381865afa158015611d10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d34919061260b565b90508015611d6357611d63600080516020612837833981519152600080516020612817833981519152836120da565b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611db2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd6919061260b565b90508015611e0b57611e0b7334635280737b5bfe6c7dc2fc3065d60d66e78185600080516020612817833981519152836120da565b6040518381527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a1505050565b3360009081526020819052604090205460ff1680611e8a57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b611ea65760405162461bcd60e51b815260040161051e906125cb565b60008111611ec65760405162461bcd60e51b815260040161051e90612755565b6040516370a0823160e01b815260008051602061281783398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4a919061260b565b9050611f74600080516020612837833981519152600080516020612817833981519152308661213d565b60405163ddc1f59d60e01b8152600060048201526001602482015260448101849052606481018390526000805160206128178339815191526084820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ddc1f59d9060a4016020604051808303816000875af1158015611fef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612013919061260b565b506040516370a0823160e01b815260008051602061281783398151915260048201527f015fc8ee969fd902d9ebd12a31c54446400a2b512a405366fe14defd6081d22090849083907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015612097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bb919061260b565b6120c591906127b4565b60408051928352602083019190915201611e37565b6040516001600160a01b038316602482015260448101829052610ee190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261217b565b6040516001600160a01b03808516602483015283166044820152606481018290526121759085906323b872dd60e01b90608401612106565b50505050565b60006121d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122509092919063ffffffff16565b90508051600014806121f15750808060200190518101906121f191906125ee565b610ee15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161051e565b60606114b0848460008585600080866001600160a01b0316858760405161227791906127c7565b60006040518083038185875af1925050503d80600081146122b4576040519150601f19603f3d011682016040523d82523d6000602084013e6122b9565b606091505b50915091506122ca878383876122d5565b979650505050505050565b6060831561234457825160000361233d576001600160a01b0385163b61233d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051e565b50816114b0565b6114b083838151156123595781518083602001fd5b8060405162461bcd60e51b815260040161051e91906127e3565b60006020828403121561238557600080fd5b5035919050565b6001600160a01b038116811461178757600080fd5b6000602082840312156123b357600080fd5b81356113f68161238c565b801515811461178757600080fd5b6000602082840312156123de57600080fd5b81356113f6816123be565b600080604083850312156123fc57600080fd5b50508035926020909101359150565b6000806040838503121561241e57600080fd5b82356124298161238c565b91506020830135612439816123be565b809150509250929050565b60008060006060848603121561245957600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561248357600080fd5b823591506020830135612439816123be565b600080600080606085870312156124ab57600080fd5b84356124b68161238c565b935060208501359250604085013567ffffffffffffffff808211156124da57600080fd5b818701915087601f8301126124ee57600080fd5b8135818111156124fd57600080fd5b88602082850101111561250f57600080fd5b95989497505060200194505050565b60005b83811015612539578181015183820152602001612521565b50506000910152565b6000815180845261255a81602086016020860161251e565b601f01601f19169290920160200192915050565b82151581526040602082015260006114b06040830184612542565b60008060006060848603121561259e57600080fd5b83356125a98161238c565b92506020840135915060408401356125c08161238c565b809150509250925092565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60006020828403121561260057600080fd5b81516113f6816123be565b60006020828403121561261d57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006080820160018060a01b0380881684526020818816818601526080604086015282875180855260a087019150828901945060005b8181101561268e578551851683529483019491830191600101612670565b50508094505050505082606083015295945050505050565b8060005b60028110156121755781518452602093840193909101906001016126aa565b606081016126d782856126a6565b82151560408301529392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761100f5761100f6126e6565b60008261273057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b602080825260089082015267085b5a5b97dbdd5d60c21b604082015260600190565b6080810161278582866126a6565b60408201939093526001600160a01b0391909116606090910152919050565b8183823760009101908152919050565b8181038181111561100f5761100f6126e6565b600082516127d981846020870161251e565b9190910192915050565b6020815260006113f6602083018461254256fed0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba30000000000000000000000001389388d01708118b497f59521f6943be2541bb7000000000000000000000000da47862a83dac0c112ba89c6abc2159b95afd71ca264697066735822122065853ca97677d5abffb129af969490a9be103e5628b90bbf5a7315ea0a25885264736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.