ETH Price: $1,597.97 (+0.60%)
Gas: 14 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multi Chain

Multichain Addresses

Transaction Hash
Method
Block
From
To
Value
Claim Rewards169999192023-04-07 23:41:35172 days 16 hrs ago1680910895IN
0xDd49A9...335ec82B
0 ETH0.0021613117.88
Claim Rewards169785892023-04-04 22:54:23175 days 17 hrs ago1680648863IN
0xDd49A9...335ec82B
0 ETH0.0069537427.79242349
Claim Rewards168584882023-03-19 1:25:11192 days 14 hrs ago1679189111IN
0xDd49A9...335ec82B
0 ETH0.0090017212
Claim Rewards168527282023-03-18 6:01:47193 days 10 hrs ago1679119307IN
0xDd49A9...335ec82B
0 ETH0.0076986813.80908485
Claim Rewards167689222023-03-06 11:09:59205 days 5 hrs ago1678100999IN
0xDd49A9...335ec82B
0 ETH0.0056907822.74467186
Claim Rewards167135002023-02-26 16:09:47213 days 10 mins ago1677427787IN
0xDd49A9...335ec82B
0 ETH0.0092316222.06849662
Claim Rewards166950822023-02-24 1:55:11215 days 14 hrs ago1677203711IN
0xDd49A9...335ec82B
0 ETH0.0041716830.23421882
Claim Rewards165313192023-02-01 3:35:11238 days 12 hrs ago1675222511IN
0xDd49A9...335ec82B
0 ETH0.0063257416.42228214
Claim Rewards165122012023-01-29 11:32:59241 days 4 hrs ago1674991979IN
0xDd49A9...335ec82B
0 ETH0.0039791713.05081259
Claim Rewards165112572023-01-29 8:22:59241 days 7 hrs ago1674980579IN
0xDd49A9...335ec82B
0 ETH0.0049093415.51277133
Claim Rewards165028612023-01-28 4:15:47242 days 12 hrs ago1674879347IN
0xDd49A9...335ec82B
0 ETH0.0025415313.52591833
Claim Rewards164874682023-01-26 0:39:59244 days 15 hrs ago1674693599IN
0xDd49A9...335ec82B
0 ETH0.0051162115.88891936
Claim Rewards164862892023-01-25 20:42:35244 days 19 hrs ago1674679355IN
0xDd49A9...335ec82B
0 ETH0.005054116.57633957
Claim Rewards164791222023-01-24 20:41:47245 days 19 hrs ago1674592907IN
0xDd49A9...335ec82B
0 ETH0.0040769319.81587254
Claim Rewards164778252023-01-24 16:20:47245 days 23 hrs ago1674577247IN
0xDd49A9...335ec82B
0 ETH0.0040376124.07323777
Claim Rewards164752862023-01-24 7:49:47246 days 8 hrs ago1674546587IN
0xDd49A9...335ec82B
0 ETH0.0044923913.24802514
Claim Rewards164695652023-01-23 12:40:35247 days 3 hrs ago1674477635IN
0xDd49A9...335ec82B
0 ETH0.0093729613.86206548
Claim Rewards164695442023-01-23 12:36:23247 days 3 hrs ago1674477383IN
0xDd49A9...335ec82B
0 ETH0.004798213.47056108
Claim Rewards164690912023-01-23 11:04:59247 days 5 hrs ago1674471899IN
0xDd49A9...335ec82B
0 ETH0.0038966512.78014098
Claim Rewards164689942023-01-23 10:45:35247 days 5 hrs ago1674470735IN
0xDd49A9...335ec82B
0 ETH0.0044719413.43616424
Claim Rewards164683132023-01-23 8:29:23247 days 7 hrs ago1674462563IN
0xDd49A9...335ec82B
0 ETH0.0030012914.30953577
Claim Rewards164678182023-01-23 6:50:11247 days 9 hrs ago1674456611IN
0xDd49A9...335ec82B
0 ETH0.0082557812.37
Claim Rewards164670552023-01-23 4:16:47247 days 12 hrs ago1674447407IN
0xDd49A9...335ec82B
0 ETH0.0046909513.8335933
Claim Rewards164641792023-01-22 18:37:11247 days 21 hrs ago1674412631IN
0xDd49A9...335ec82B
0 ETH0.0050319415.11871181
Claim Rewards164632792023-01-22 15:36:23248 days 44 mins ago1674401783IN
0xDd49A9...335ec82B
0 ETH0.0060436317.8226373
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:
ClaimZap

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : ClaimZap.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

import "./interfaces/MathUtil.sol";
import "./interfaces/ILockedCvx.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';


interface IBasicRewards{
    function getReward(address _account, bool _claimExtras) external;
    function getReward(address _account) external;
    function getReward(address _account, address _token) external;
    function stakeFor(address, uint256) external;
}

interface ICvxRewards{
    function getReward(address _account, bool _claimExtras, bool _stake) external;
}

interface IChefRewards{
    function claim(uint256 _pid, address _account) external;
}

interface ICvxCrvDeposit{
    function deposit(uint256, bool) external;
}

interface ISwapExchange {

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

//Claim zap to bundle various reward claims
//v2:
// - change exchange to use curve pool
// - add getReward(address,token) type
// - add option to lock cvx
// - add option use all funds in wallet
contract ClaimZap{
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52);
    address public constant cvx = address(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B);
    address public constant cvxCrv = address(0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7);
    address public constant crvDeposit = address(0x8014595F2AB54cD7c604B00E9fb932176fDc86Ae);
    address public constant cvxCrvRewards = address(0x3Fe65692bfCD0e6CF84cB1E7d24108E434A7587e);
    address public constant cvxRewards = address(0xCF50b810E57Ac33B91dCF525C6ddd9881B139332);

    address public constant exchange = address(0x9D0464996170c6B9e75eED71c68B99dDEDf279e8);//curve

    address public constant locker = address(0x72a19342e8F1838460eBFCCEf09F6585e32db86E);

    address public immutable owner;

    enum Options{
        ClaimCvx, //1
        ClaimCvxAndStake, //2
        ClaimCvxCrv, //4
        ClaimLockedCvx, //8
        ClaimLockedCvxStake, //16
        LockCrvDeposit, //32
        UseAllWalletFunds, //64
        LockCvx //128
    }

    constructor() public {
        owner = msg.sender;
    }

    function getName() external pure returns (string memory) {
        return "ClaimZap V2.0";
    }

    function setApprovals() external {
        require(msg.sender == owner, "!auth");
        IERC20(crv).safeApprove(crvDeposit, 0);
        IERC20(crv).safeApprove(crvDeposit, uint256(-1));
        IERC20(crv).safeApprove(exchange, 0);
        IERC20(crv).safeApprove(exchange, uint256(-1));

        IERC20(cvx).safeApprove(cvxRewards, 0);
        IERC20(cvx).safeApprove(cvxRewards, uint256(-1));

        IERC20(cvxCrv).safeApprove(cvxCrvRewards, 0);
        IERC20(cvxCrv).safeApprove(cvxCrvRewards, uint256(-1));

        IERC20(cvx).safeApprove(locker, 0);
        IERC20(cvx).safeApprove(locker, uint256(-1));
    }

    function CheckOption(uint256 _mask, uint256 _flag) internal pure returns(bool){
        return (_mask & (1<<_flag)) != 0;
    }

    function claimRewards(
        address[] calldata rewardContracts,
        address[] calldata extraRewardContracts,
        address[] calldata tokenRewardContracts,
        address[] calldata tokenRewardTokens,
        uint256 depositCrvMaxAmount,
        uint256 minAmountOut,
        uint256 depositCvxMaxAmount,
        uint256 spendCvxAmount,
        uint256 options
        ) external{

        uint256 crvBalance = IERC20(crv).balanceOf(msg.sender);
        uint256 cvxBalance = IERC20(cvx).balanceOf(msg.sender);
 
        //claim from main curve LP pools
        for(uint256 i = 0; i < rewardContracts.length; i++){
            IBasicRewards(rewardContracts[i]).getReward(msg.sender,true);
        }
        //claim from extra rewards
        for(uint256 i = 0; i < extraRewardContracts.length; i++){
            IBasicRewards(extraRewardContracts[i]).getReward(msg.sender);
        }
        //claim from multi reward token contract
        for(uint256 i = 0; i < tokenRewardContracts.length; i++){
            IBasicRewards(tokenRewardContracts[i]).getReward(msg.sender,tokenRewardTokens[i]);
        }

        //claim others/deposit/lock/stake
        _claimExtras(depositCrvMaxAmount,minAmountOut,depositCvxMaxAmount,spendCvxAmount,crvBalance,cvxBalance,options);
    }

    function _claimExtras(
        uint256 depositCrvMaxAmount,
        uint256 minAmountOut,
        uint256 depositCvxMaxAmount,
        uint256 spendCvxAmount,
        uint256 removeCrvBalance,
        uint256 removeCvxBalance,
        uint256 options
        ) internal{

        //claim (and stake) from cvx rewards
        if(CheckOption(options,uint256(Options.ClaimCvxAndStake))){
            ICvxRewards(cvxRewards).getReward(msg.sender,true,true);
        }else if(CheckOption(options,uint256(Options.ClaimCvx))){
            ICvxRewards(cvxRewards).getReward(msg.sender,true,false);
        }

        //claim from cvxCrv rewards
        if(CheckOption(options,uint256(Options.ClaimCvxCrv))){
            IBasicRewards(cvxCrvRewards).getReward(msg.sender,true);
        }

        //claim from locker
        if(CheckOption(options,uint256(Options.ClaimLockedCvx))){
            ILockedCvx(locker).getReward(msg.sender,CheckOption(options,uint256(Options.ClaimLockedCvxStake)));
        }

        //reset remove balances if we want to also stake/lock funds already in our wallet
        if(CheckOption(options,uint256(Options.UseAllWalletFunds))){
            removeCrvBalance = 0;
            removeCvxBalance = 0;
        }

        //lock upto given amount of crv and stake
        if(depositCrvMaxAmount > 0){
            uint256 crvBalance = IERC20(crv).balanceOf(msg.sender).sub(removeCrvBalance);
            crvBalance = MathUtil.min(crvBalance, depositCrvMaxAmount);
            if(crvBalance > 0){
                //pull crv
                IERC20(crv).safeTransferFrom(msg.sender, address(this), crvBalance);
                if(minAmountOut > 0){
                    //swap
                    ISwapExchange(exchange).exchange(0,1,crvBalance,minAmountOut);
                }else{
                    //deposit
                    ICvxCrvDeposit(crvDeposit).deposit(crvBalance,CheckOption(options,uint256(Options.LockCrvDeposit)));
                }
                //get cvxcrv amount
                uint256 cvxCrvBalance = IERC20(cvxCrv).balanceOf(address(this));
                //stake for msg.sender
                IBasicRewards(cvxCrvRewards).stakeFor(msg.sender, cvxCrvBalance);
            }
        }

        //stake up to given amount of cvx
        if(depositCvxMaxAmount > 0){
            uint256 cvxBalance = IERC20(cvx).balanceOf(msg.sender).sub(removeCvxBalance);
            cvxBalance = MathUtil.min(cvxBalance, depositCvxMaxAmount);
            if(cvxBalance > 0){
                //pull cvx
                IERC20(cvx).safeTransferFrom(msg.sender, address(this), cvxBalance);
                if(CheckOption(options,uint256(Options.LockCvx))){
                    ILockedCvx(locker).lock(msg.sender, cvxBalance, spendCvxAmount);
                }else{
                    //stake for msg.sender
                    IBasicRewards(cvxRewards).stakeFor(msg.sender, cvxBalance);
                }
            }
        }
    }

}

File 2 of 7 : MathUtil.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUtil {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
}

File 3 of 7 : ILockedCvx.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

interface ILockedCvx{
     struct LockedBalance {
        uint112 amount;
        uint112 boosted;
        uint32 unlockTime;
    }

    function lock(address _account, uint256 _amount, uint256 _spendRatio) external;
    function processExpiredLocks(bool _relock, uint256 _spendRatio, address _withdrawTo) external;
    function getReward(address _account, bool _stake) external;
    function balanceAtEpochOf(uint256 _epoch, address _user) view external returns(uint256 amount);
    function totalSupplyAtEpoch(uint256 _epoch) view external returns(uint256 supply);
    function epochCount() external view returns(uint256);
    function epochs(uint256 _id) external view returns(uint224,uint32);
    function checkpointEpoch() external;
    function balanceOf(address _account) external view returns(uint256);
    function totalSupply() view external returns(uint256 supply);
    function lockedBalances(
        address _user
    ) view external returns(
        uint256 total,
        uint256 unlockable,
        uint256 locked,
        LockedBalance[] memory lockData
    );
    function addReward(
        address _rewardsToken,
        address _distributor,
        bool _useBoost
    ) external;
    function approveRewardDistributor(
        address _rewardsToken,
        address _distributor,
        bool _approved
    ) external;
    function setStakeLimits(uint256 _minimum, uint256 _maximum) external;
    function setBoost(uint256 _max, uint256 _rate, address _receivingAddress) external;
    function setKickIncentive(uint256 _rate, uint256 _delay) external;
    function shutdown() external;
    function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external;
}

File 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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);
            }
        }
    }
}

File 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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");
        }
    }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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);
}

File 7 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address[]","name":"rewardContracts","type":"address[]"},{"internalType":"address[]","name":"extraRewardContracts","type":"address[]"},{"internalType":"address[]","name":"tokenRewardContracts","type":"address[]"},{"internalType":"address[]","name":"tokenRewardTokens","type":"address[]"},{"internalType":"uint256","name":"depositCrvMaxAmount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"uint256","name":"depositCvxMaxAmount","type":"uint256"},{"internalType":"uint256","name":"spendCvxAmount","type":"uint256"},{"internalType":"uint256","name":"options","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crvDeposit","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":"cvxCrv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxCrvRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchange","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"locker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b5033606081901b60805261162f610036600039806106a85280610913525061162f6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063923c1d6111610071578063923c1d61146102eb578063a7404b70146102f3578063aa5ccb90146102fb578063b026e22714610303578063d2f7265a1461030b578063d7b96d4e14610313576100b4565b806317d7de7c146100b95780635a7b87f2146101365780636a4874a1146102af57806382480df9146102d35780638757b15b146102db5780638da5cb5b146102e3575b600080fd5b6100c161031b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ad600480360361012081101561014d57600080fd5b810190602081018135600160201b81111561016757600080fd5b82018360208201111561017957600080fd5b803590602001918460208302840111600160201b8311171561019a57600080fd5b919390929091602081019035600160201b8111156101b757600080fd5b8201836020820111156101c957600080fd5b803590602001918460208302840111600160201b831117156101ea57600080fd5b919390929091602081019035600160201b81111561020757600080fd5b82018360208201111561021957600080fd5b803590602001918460208302840111600160201b8311171561023a57600080fd5b919390929091602081019035600160201b81111561025757600080fd5b82018360208201111561026957600080fd5b803590602001918460208302840111600160201b8311171561028a57600080fd5b919350915080359060208101359060408101359060608101359060800135610342565b005b6102b761066d565b604080516001600160a01b039092168252519081900360200190f35b6102b7610685565b6102ad61069d565b6102b7610911565b6102b7610935565b6102b761094d565b6102b7610965565b6102b761097d565b6102b7610995565b6102b76109ad565b60408051808201909152600d81526c0436c61696d5a61702056322e3609c1b602082015290565b604080516370a0823160e01b8152336004820152905160009173d533a949740bb3306d119cc777fa900ba034cd52916370a0823191602480820192602092909190829003018186803b15801561039757600080fd5b505afa1580156103ab573d6000803e3d6000fd5b505050506040513d60208110156103c157600080fd5b5051604080516370a0823160e01b81523360048201529051919250600091734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b916370a08231916024808301926020929190829003018186803b15801561041a57600080fd5b505afa15801561042e573d6000803e3d6000fd5b505050506040513d602081101561044457600080fd5b5051905060005b8e8110156104ec578f8f8281811061045f57fe5b905060200201356001600160a01b03166001600160a01b0316637050ccd93360016040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b1580156104c857600080fd5b505af11580156104dc573d6000803e3d6000fd5b50506001909201915061044b9050565b5060005b8c811015610586578d8d8281811061050457fe5b905060200201356001600160a01b03166001600160a01b031663c00007b0336040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561056257600080fd5b505af1158015610576573d6000803e3d6000fd5b5050600190920191506104f09050565b5060005b8a81101561064c578b8b8281811061059e57fe5b905060200201356001600160a01b03166001600160a01b0316636b091695338c8c858181106105c957fe5b905060200201356001600160a01b03166040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b50506001909201915061058a9050565b5061065c878787878686896109c5565b505050505050505050505050505050565b73d533a949740bb3306d119cc777fa900ba034cd5281565b7362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610702576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b61073673d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae60006110ae565b61076b73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae6000196110ae565b61079f73d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e860006110ae565b6107d473d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e86000196110ae565b610808734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73cf50b810e57ac33b91dcf525c6ddd9881b13933260006110ae565b61083d734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73cf50b810e57ac33b91dcf525c6ddd9881b1393326000196110ae565b6108717362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e60006110ae565b6108a67362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000196110ae565b6108da734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e60006110ae565b61090f734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e6000196110ae565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b73cf50b810e57ac33b91dcf525c6ddd9881b13933281565b738014595f2ab54cd7c604b00e9fb932176fdc86ae81565b739d0464996170c6b9e75eed71c68b99ddedf279e881565b7372a19342e8f1838460ebfccef09f6585e32db86e81565b6109d18160015b6111c6565b15610a535760408051633e69b9d960e21b81523360048201526001602482018190526044820152905173cf50b810e57ac33b91dcf525c6ddd9881b1393329163f9a6e76491606480830192600092919082900301818387803b158015610a3657600080fd5b505af1158015610a4a573d6000803e3d6000fd5b50505050610ada565b610a5e8160006109cc565b15610ada5760408051633e69b9d960e21b815233600482015260016024820152600060448201819052915173cf50b810e57ac33b91dcf525c6ddd9881b1393329263f9a6e764926064808201939182900301818387803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b505050505b610ae58160026109cc565b15610b5c5760408051637050ccd960e01b8152336004820152600160248201529051733fe65692bfcd0e6cf84cb1e7d24108e434a7587e91637050ccd991604480830192600092919082900301818387803b158015610b4357600080fd5b505af1158015610b57573d6000803e3d6000fd5b505050505b610b678160036109cc565b15610bf3577372a19342e8f1838460ebfccef09f6585e32db86e637050ccd933610b928460046109cc565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b158015610bda57600080fd5b505af1158015610bee573d6000803e3d6000fd5b505050505b610bfe8160066109cc565b15610c0c5760009250600091505b8615610f03576000610cab8473d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c7957600080fd5b505afa158015610c8d573d6000803e3d6000fd5b505050506040513d6020811015610ca357600080fd5b5051906111d0565b9050610cb7818961122d565b90508015610f0157610cdf73d533a949740bb3306d119cc777fa900ba034cd52333084611245565b8615610d8b57739d0464996170c6b9e75eed71c68b99ddedf279e86001600160a01b0316633df0212460006001848b6040518563ffffffff1660e01b815260040180858152602001848152602001838152602001828152602001945050505050602060405180830381600087803b158015610d5957600080fd5b505af1158015610d6d573d6000803e3d6000fd5b505050506040513d6020811015610d8357600080fd5b50610e099050565b738014595f2ab54cd7c604b00e9fb932176fdc86ae639a40832182610db18560056109cc565b6040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b158015610df057600080fd5b505af1158015610e04573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516000917362b9c7356a2dc64a1969e19c23e4f579f9810aa7916370a0823191602480820192602092909190829003018186803b158015610e5e57600080fd5b505afa158015610e72573d6000803e3d6000fd5b505050506040513d6020811015610e8857600080fd5b5051604080516305dc812160e31b8152336004820152602481018390529051919250733fe65692bfcd0e6cf84cb1e7d24108e434a7587e91632ee409089160448082019260009290919082900301818387803b158015610ee757600080fd5b505af1158015610efb573d6000803e3d6000fd5b50505050505b505b84156110a5576000610f7083734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c7957600080fd5b9050610f7c818761122d565b905080156110a357610fa4734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b333084611245565b610faf8260076109cc565b15611031576040805163e2ab691d60e01b8152336004820152602481018390526044810187905290517372a19342e8f1838460ebfccef09f6585e32db86e9163e2ab691d91606480830192600092919082900301818387803b15801561101457600080fd5b505af1158015611028573d6000803e3d6000fd5b505050506110a3565b604080516305dc812160e31b815233600482015260248101839052905173cf50b810e57ac33b91dcf525c6ddd9881b13933291632ee4090891604480830192600092919082900301818387803b15801561108a57600080fd5b505af115801561109e573d6000803e3d6000fd5b505050505b505b50505050505050565b801580611134575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561110657600080fd5b505afa15801561111a573d6000803e3d6000fd5b505050506040513d602081101561113057600080fd5b5051155b61116f5760405162461bcd60e51b81526004018080602001828103825260368152602001806115c46036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526111c19084906112a5565b505050565b6001901b16151590565b600082821115611227576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600081831061123c578161123e565b825b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261129f9085906112a5565b50505050565b60606112fa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113569092919063ffffffff16565b8051909150156111c15780806020019051602081101561131957600080fd5b50516111c15760405162461bcd60e51b815260040180806020018281038252602a81526020018061159a602a913960400191505060405180910390fd5b6060611365848460008561136d565b949350505050565b6060824710156113ae5760405162461bcd60e51b81526004018080602001828103825260268152602001806115746026913960400191505060405180910390fd5b6113b7856114c9565b611408576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114475780518252601f199092019160209182019101611428565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146114a9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ae565b606091505b50915091506114be8282866114cf565b979650505050505050565b3b151590565b606083156114de57508161123e565b8251156114ee5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611538578181015183820152602001611520565b50505050905090810190601f1680156115655780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220b054214341da51d8edb6442e9db6e5bb4786982a47359bca8f44f573712d606e64736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063923c1d6111610071578063923c1d61146102eb578063a7404b70146102f3578063aa5ccb90146102fb578063b026e22714610303578063d2f7265a1461030b578063d7b96d4e14610313576100b4565b806317d7de7c146100b95780635a7b87f2146101365780636a4874a1146102af57806382480df9146102d35780638757b15b146102db5780638da5cb5b146102e3575b600080fd5b6100c161031b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ad600480360361012081101561014d57600080fd5b810190602081018135600160201b81111561016757600080fd5b82018360208201111561017957600080fd5b803590602001918460208302840111600160201b8311171561019a57600080fd5b919390929091602081019035600160201b8111156101b757600080fd5b8201836020820111156101c957600080fd5b803590602001918460208302840111600160201b831117156101ea57600080fd5b919390929091602081019035600160201b81111561020757600080fd5b82018360208201111561021957600080fd5b803590602001918460208302840111600160201b8311171561023a57600080fd5b919390929091602081019035600160201b81111561025757600080fd5b82018360208201111561026957600080fd5b803590602001918460208302840111600160201b8311171561028a57600080fd5b919350915080359060208101359060408101359060608101359060800135610342565b005b6102b761066d565b604080516001600160a01b039092168252519081900360200190f35b6102b7610685565b6102ad61069d565b6102b7610911565b6102b7610935565b6102b761094d565b6102b7610965565b6102b761097d565b6102b7610995565b6102b76109ad565b60408051808201909152600d81526c0436c61696d5a61702056322e3609c1b602082015290565b604080516370a0823160e01b8152336004820152905160009173d533a949740bb3306d119cc777fa900ba034cd52916370a0823191602480820192602092909190829003018186803b15801561039757600080fd5b505afa1580156103ab573d6000803e3d6000fd5b505050506040513d60208110156103c157600080fd5b5051604080516370a0823160e01b81523360048201529051919250600091734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b916370a08231916024808301926020929190829003018186803b15801561041a57600080fd5b505afa15801561042e573d6000803e3d6000fd5b505050506040513d602081101561044457600080fd5b5051905060005b8e8110156104ec578f8f8281811061045f57fe5b905060200201356001600160a01b03166001600160a01b0316637050ccd93360016040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b1580156104c857600080fd5b505af11580156104dc573d6000803e3d6000fd5b50506001909201915061044b9050565b5060005b8c811015610586578d8d8281811061050457fe5b905060200201356001600160a01b03166001600160a01b031663c00007b0336040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561056257600080fd5b505af1158015610576573d6000803e3d6000fd5b5050600190920191506104f09050565b5060005b8a81101561064c578b8b8281811061059e57fe5b905060200201356001600160a01b03166001600160a01b0316636b091695338c8c858181106105c957fe5b905060200201356001600160a01b03166040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561062857600080fd5b505af115801561063c573d6000803e3d6000fd5b50506001909201915061058a9050565b5061065c878787878686896109c5565b505050505050505050505050505050565b73d533a949740bb3306d119cc777fa900ba034cd5281565b7362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b336001600160a01b037f000000000000000000000000947b7742c403f20e5faccdac5e092c943e7d02771614610702576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b61073673d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae60006110ae565b61076b73d533a949740bb3306d119cc777fa900ba034cd52738014595f2ab54cd7c604b00e9fb932176fdc86ae6000196110ae565b61079f73d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e860006110ae565b6107d473d533a949740bb3306d119cc777fa900ba034cd52739d0464996170c6b9e75eed71c68b99ddedf279e86000196110ae565b610808734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73cf50b810e57ac33b91dcf525c6ddd9881b13933260006110ae565b61083d734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b73cf50b810e57ac33b91dcf525c6ddd9881b1393326000196110ae565b6108717362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e60006110ae565b6108a67362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000196110ae565b6108da734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e60006110ae565b61090f734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e6000196110ae565b565b7f000000000000000000000000947b7742c403f20e5faccdac5e092c943e7d027781565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b733fe65692bfcd0e6cf84cb1e7d24108e434a7587e81565b73cf50b810e57ac33b91dcf525c6ddd9881b13933281565b738014595f2ab54cd7c604b00e9fb932176fdc86ae81565b739d0464996170c6b9e75eed71c68b99ddedf279e881565b7372a19342e8f1838460ebfccef09f6585e32db86e81565b6109d18160015b6111c6565b15610a535760408051633e69b9d960e21b81523360048201526001602482018190526044820152905173cf50b810e57ac33b91dcf525c6ddd9881b1393329163f9a6e76491606480830192600092919082900301818387803b158015610a3657600080fd5b505af1158015610a4a573d6000803e3d6000fd5b50505050610ada565b610a5e8160006109cc565b15610ada5760408051633e69b9d960e21b815233600482015260016024820152600060448201819052915173cf50b810e57ac33b91dcf525c6ddd9881b1393329263f9a6e764926064808201939182900301818387803b158015610ac157600080fd5b505af1158015610ad5573d6000803e3d6000fd5b505050505b610ae58160026109cc565b15610b5c5760408051637050ccd960e01b8152336004820152600160248201529051733fe65692bfcd0e6cf84cb1e7d24108e434a7587e91637050ccd991604480830192600092919082900301818387803b158015610b4357600080fd5b505af1158015610b57573d6000803e3d6000fd5b505050505b610b678160036109cc565b15610bf3577372a19342e8f1838460ebfccef09f6585e32db86e637050ccd933610b928460046109cc565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b158015610bda57600080fd5b505af1158015610bee573d6000803e3d6000fd5b505050505b610bfe8160066109cc565b15610c0c5760009250600091505b8615610f03576000610cab8473d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c7957600080fd5b505afa158015610c8d573d6000803e3d6000fd5b505050506040513d6020811015610ca357600080fd5b5051906111d0565b9050610cb7818961122d565b90508015610f0157610cdf73d533a949740bb3306d119cc777fa900ba034cd52333084611245565b8615610d8b57739d0464996170c6b9e75eed71c68b99ddedf279e86001600160a01b0316633df0212460006001848b6040518563ffffffff1660e01b815260040180858152602001848152602001838152602001828152602001945050505050602060405180830381600087803b158015610d5957600080fd5b505af1158015610d6d573d6000803e3d6000fd5b505050506040513d6020811015610d8357600080fd5b50610e099050565b738014595f2ab54cd7c604b00e9fb932176fdc86ae639a40832182610db18560056109cc565b6040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b158015610df057600080fd5b505af1158015610e04573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516000917362b9c7356a2dc64a1969e19c23e4f579f9810aa7916370a0823191602480820192602092909190829003018186803b158015610e5e57600080fd5b505afa158015610e72573d6000803e3d6000fd5b505050506040513d6020811015610e8857600080fd5b5051604080516305dc812160e31b8152336004820152602481018390529051919250733fe65692bfcd0e6cf84cb1e7d24108e434a7587e91632ee409089160448082019260009290919082900301818387803b158015610ee757600080fd5b505af1158015610efb573d6000803e3d6000fd5b50505050505b505b84156110a5576000610f7083734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610c7957600080fd5b9050610f7c818761122d565b905080156110a357610fa4734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b333084611245565b610faf8260076109cc565b15611031576040805163e2ab691d60e01b8152336004820152602481018390526044810187905290517372a19342e8f1838460ebfccef09f6585e32db86e9163e2ab691d91606480830192600092919082900301818387803b15801561101457600080fd5b505af1158015611028573d6000803e3d6000fd5b505050506110a3565b604080516305dc812160e31b815233600482015260248101839052905173cf50b810e57ac33b91dcf525c6ddd9881b13933291632ee4090891604480830192600092919082900301818387803b15801561108a57600080fd5b505af115801561109e573d6000803e3d6000fd5b505050505b505b50505050505050565b801580611134575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561110657600080fd5b505afa15801561111a573d6000803e3d6000fd5b505050506040513d602081101561113057600080fd5b5051155b61116f5760405162461bcd60e51b81526004018080602001828103825260368152602001806115c46036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526111c19084906112a5565b505050565b6001901b16151590565b600082821115611227576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600081831061123c578161123e565b825b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261129f9085906112a5565b50505050565b60606112fa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113569092919063ffffffff16565b8051909150156111c15780806020019051602081101561131957600080fd5b50516111c15760405162461bcd60e51b815260040180806020018281038252602a81526020018061159a602a913960400191505060405180910390fd5b6060611365848460008561136d565b949350505050565b6060824710156113ae5760405162461bcd60e51b81526004018080602001828103825260268152602001806115746026913960400191505060405180910390fd5b6113b7856114c9565b611408576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114475780518252601f199092019160209182019101611428565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146114a9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ae565b606091505b50915091506114be8282866114cf565b979650505050505050565b3b151590565b606083156114de57508161123e565b8251156114ee5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611538578181015183820152602001611520565b50505050905090810190601f1680156115655780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220b054214341da51d8edb6442e9db6e5bb4786982a47359bca8f44f573712d606e64736f6c634300060c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.