ETH Price: $3,920.55 (+5.13%)

Contract

0x4EA38a5739D467F7f84c06155ee2Ad745E5328E8

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Rewards147641412024-08-02 13:04:28124 days ago1722603868IN
Aura: Claim Zap
0 ETH0.000030990.0884
Claim Rewards147222502024-08-01 1:57:44126 days ago1722477464IN
Aura: Claim Zap
0 ETH0.000013350.05
Claim Rewards146253472024-07-28 16:39:26129 days ago1722184766IN
Aura: Claim Zap
0 ETH0.000009450.05
Claim Rewards145301962024-07-25 8:51:16133 days ago1721897476IN
Aura: Claim Zap
0 ETH0.000017910.06
Claim Rewards144229632024-07-21 14:55:23136 days ago1721573723IN
Aura: Claim Zap
0 ETH0.00001480.0699
Claim Rewards144117342024-07-21 5:28:42137 days ago1721539722IN
Aura: Claim Zap
0 ETH0.000019070.06
Claim Rewards142424942024-07-15 7:24:20143 days ago1721028260IN
Aura: Claim Zap
0 ETH0.000019070.06
Claim Rewards142143332024-07-14 7:46:37144 days ago1720943197IN
Aura: Claim Zap
0 ETH0.000011670.06
Claim Rewards141775822024-07-13 0:56:09145 days ago1720832169IN
Aura: Claim Zap
0 ETH0.000005710.03
Claim Rewards140345542024-07-08 0:57:43150 days ago1720400263IN
Aura: Claim Zap
0 ETH0.000014820.07
Claim Rewards139938012024-07-06 14:45:16151 days ago1720277116IN
Aura: Claim Zap
0 ETH0.000013620.07
Claim Rewards139215672024-07-04 1:55:57154 days ago1720058157IN
Aura: Claim Zap
0 ETH0.000046080.15
Claim Rewards138947882024-07-03 2:25:40155 days ago1719973540IN
Aura: Claim Zap
0 ETH0.000021370.06
Claim Rewards138688862024-07-02 4:40:21156 days ago1719895221IN
Aura: Claim Zap
0 ETH0.000016590.05
Claim Rewards138095852024-06-30 2:56:09158 days ago1719716169IN
Aura: Claim Zap
0 ETH0.000014240.04
Claim Rewards137725732024-06-28 19:54:24159 days ago1719604464IN
Aura: Claim Zap
0 ETH0.000009010.04
Claim Rewards137678972024-06-28 15:59:08159 days ago1719590348IN
Aura: Claim Zap
0 ETH0.00004630.13
Claim Rewards137183242024-06-26 22:28:25161 days ago1719440905IN
Aura: Claim Zap
0 ETH0.000018290.0568
Claim Rewards136413892024-06-24 6:04:05164 days ago1719209045IN
Aura: Claim Zap
0 ETH0.000017520.04
Claim Rewards136225962024-06-23 14:19:38164 days ago1719152378IN
Aura: Claim Zap
0 ETH0.000028160.08
Claim Rewards135976322024-06-22 17:24:49165 days ago1719077089IN
Aura: Claim Zap
0 ETH0.000018440.06
Claim Rewards134207102024-06-16 13:14:25171 days ago1718543665IN
Aura: Claim Zap
0 ETH0.000031680.09
Claim Rewards133639272024-06-14 13:41:18173 days ago1718372478IN
Aura: Claim Zap
0 ETH0.000046110.131
Claim Rewards132230052024-06-09 15:33:03178 days ago1717947183IN
Aura: Claim Zap
0 ETH0.000115230.38
Claim Rewards131317822024-06-06 11:06:23181 days ago1717671983IN
Aura: Claim Zap
0 ETH0.000115950.3

Latest 1 internal transaction

Parent Transaction Hash Block From To
78583262023-11-21 14:33:50379 days ago1700577230  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SidechainClaimZap

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 8 : SidechainClaimZap.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol";
import { AuraMath } from "../../utils/AuraMath.sol";
import { IRewardStaking } from "../../interfaces/IRewardStaking.sol";
import { IRewardPool4626 } from "../../interfaces/IRewardPool4626.sol";
import { IAuraOFT } from "../interfaces/IAuraOFT.sol";

/**
 * @title   SidechainClaimZap
 * @author  AuraFinance
 * @notice  Claim zap to bundle various reward claims
 * @dev     Claims from all pools, Bridges/Locks to L1 if Wanted and compounds if needed.
 *
 */
contract SidechainClaimZap {
    using SafeERC20 for IERC20;
    using AuraMath for uint256;

    receive() external payable {}

    address public cvx;
    address public cvxCrv;
    address public compounder;
    address public owner;
    uint16 public canonicalChainID;

    /**
     * @dev Claim rewards amounts.
     * - depositCvxMaxAmount    The max amount of CVX to deposit if locking CVX on L1
     * - depositCvxCrvMaxAmount The max amount of CvxCrv to deposit if compounding
     * - bridgeCvxMaxAmount     The max amount of cvx to bridge to L1
     */
    struct ClaimRewardsAmounts {
        uint256 lockCvxMaxAmount;
        uint256 depositCvxCrvMaxAmount;
        uint256 bridgeCvxMaxAmount;
    }

    /**
     * @dev options.
     * - useAllWalletFunds       Flag: lock rewards and existing balance
     * - sendCvxToL1             Flag: Bridge CVX to L1
     * - lockCvxL1               Flag: Lock CVX on L1
     * - useCompounder           Flag: Deposit CvxCrv into L2 compounder
     * - refundEth               Flag: Send Eth Remainder Back to Sender
     * - overrideL1Receiver      Flag: Override receiving L1 Address
     * - l1Receiever             Flag: L1 Address to receive to
     * - zro                     Flag: Zro address passed by user
     * - adapterParams           Flag: adapter params passed by user
     */
    struct Options {
        bool useAllWalletFunds;
        bool sendCvxToL1;
        bool lockCvxL1;
        bool useCompounder;
        bool refundEth;
        bool overrideL1Receiver;
        address l1Receiever;
        address zro;
        bytes adapterParams;
    }

    function initialize(
        address _owner,
        address _cvx,
        address _cvxCrv,
        address _compounder
    ) external {
        require(cvx == address(0), "already initialized");
        owner = _owner;
        cvx = _cvx;
        cvxCrv = _cvxCrv;
        compounder = _compounder;
        canonicalChainID = IAuraOFT(_cvx).canonicalChainId();
    }

    /**
     * @notice Returns meta data of contract
     */
    function getName() external pure returns (string memory) {
        return "Sidechain ClaimZap V1.0";
    }

    /**
     * @notice Approve spending of:
     *          cvxCrv  -> Compounder
     */
    function setApprovals() external {
        require(msg.sender == owner, "!auth");
        _approveToken(cvxCrv, compounder);
    }

    /**
     * @notice Allows a spender to spend a token
     * @param _token     Token that will be spend
     * @param _spender   Address that will be spending
     */
    function _approveToken(address _token, address _spender) internal {
        IERC20(_token).safeApprove(address(_spender), 0);
        IERC20(_token).safeApprove(address(_spender), type(uint256).max);
    }

    /**
     * @notice Claim all the rewards
     * @param rewardContracts        Array of addresses for LP token rewards
     * @param extraRewardContracts   Array of addresses for extra rewards
     * @param tokenRewardContracts   Array of addresses for token rewards e.g vlCvxExtraRewardDistribution
     * @param tokenRewardTokens      Array of token reward addresses to use with tokenRewardContracts
     * @param amounts                Claim rewards amounts.
     * @param options                Claim options
     */
    function claimRewards(
        address zroPaymentAddress,
        address[] calldata rewardContracts,
        address[] calldata extraRewardContracts,
        address[] calldata tokenRewardContracts,
        address[] calldata tokenRewardTokens,
        ClaimRewardsAmounts calldata amounts,
        Options calldata options
    ) external payable {
        require(tokenRewardContracts.length == tokenRewardTokens.length, "!parity");

        //Read balances prior to reward claims only if required
        uint256 cvxBalance;
        uint256 cvxCrvBalance;
        if (!options.useAllWalletFunds && _callOptions(options)) {
            cvxBalance = IERC20(cvx).balanceOf(msg.sender);
            if (cvxCrv != address(0)) {
                cvxCrvBalance = IERC20(cvxCrv).balanceOf(msg.sender);
            }
        }

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

        // deposit/lock/stake
        if (_callOptions(options)) {
            _handleRewards(cvxBalance, cvxCrvBalance, zroPaymentAddress, amounts, options);
        }

        if (options.refundEth) {
            (bool sent, ) = payable(msg.sender).call{ value: address(this).balance }("");
            require(sent, "!refund");
        }
    }

    /**
     * @notice returns a bool if handling of rewards should occur
     * @param options                Claim options
     */
    function _callOptions(Options calldata options) internal pure returns (bool) {
        return (options.lockCvxL1 || options.sendCvxToL1 || options.useCompounder);
    }

    /**
     * @notice  Bridge Rewards to L1 or Lock cvxCrv into compounders
     * @param removeCvxBalance       cvxBalance to ignore and not redeposit (starting Cvx balance)
     * @param removeCvxCrvBalance    cvxCrvBalance to ignore and not redeposit (starting CvxCrv balance)
     * @param amounts                Claim rewards amoutns.
     * @param options                see claimRewards
     */
    // prettier-ignore
    function _handleRewards( // solhint-disable-line 
        uint256 removeCvxBalance,   
        uint256 removeCvxCrvBalance,       
        address zroPaymentAddress,
        ClaimRewardsAmounts calldata amounts, 
        Options calldata options
    ) internal {

        address _l1receiver = options.overrideL1Receiver ? options.l1Receiever : msg.sender;

        //Either lock cvx
        if(options.lockCvxL1){
            (uint256 cvxBalance, bool continued) = _checkBalanceAndPullToken(
                cvx,
                removeCvxBalance, 
                amounts.lockCvxMaxAmount
            );
            if (continued) IAuraOFT(cvx).lock{value: msg.value}(_l1receiver, cvxBalance, zroPaymentAddress);
        }
        //or bridge it back to l1
        else if (options.sendCvxToL1) {
            (uint256 cvxBalance, bool continued) = _checkBalanceAndPullToken(
                cvx,
                removeCvxBalance, 
                amounts.bridgeCvxMaxAmount
            );

            if (continued) IAuraOFT(cvx).sendFrom{value: msg.value}(
                address(this), 
                canonicalChainID, 
                abi.encodePacked(_l1receiver), 
                cvxBalance,
                payable(msg.sender), 
                options.zro, 
                options.adapterParams
            );
        }

        //deposit to l2 compounder
        if(options.useCompounder && compounder != address(0) && cvxCrv != address(0)) {
            (uint256 cvxCrvBalance, bool continued) = _checkBalanceAndPullToken(
                cvxCrv,
                removeCvxCrvBalance, 
                amounts.depositCvxCrvMaxAmount
            );
            if (continued) IRewardPool4626(compounder).deposit(cvxCrvBalance, msg.sender);
        }
        
    }

    /**
     * @notice  Calculates the amount of a token to pull in, if this is above 0 then pulls token
     * @param _token                 the token to evaluate and pull
     * @param _removeAmount          quantity of token to ignore and not redeposit (ie starting balance)
     * @param _maxAmount             the maximum amount of a token
     */
    // prettier-ignore
    function _checkBalanceAndPullToken(
        address _token,
        uint256 _removeAmount,
        uint256 _maxAmount
    ) internal returns (uint256 _balance, bool continued) {
        _balance = IERC20(_token).balanceOf(msg.sender).sub(_removeAmount);
        _balance = AuraMath.min(_balance, _maxAmount);
        if (_balance > 0) {
            IERC20(_token).safeTransferFrom(msg.sender, address(this), _balance);
            continued = true;
        }
    }
}

File 2 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 3 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

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

File 4 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 8 : IRewardPool4626.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IRewardPool4626 {
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external returns (uint256 shares);

    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    function asset() external view returns (address);

    function balanceOf(address account) external view returns (uint256);

    function processIdleRewards() external;
}

File 6 of 8 : IRewardStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

interface IRewardStaking {
    function getReward(address _account, bool _claimExtras) external;

    function getReward(address _account) external;

    function getReward(address _account, address _token) external;

    function stakeFor(address, uint256) external;

    function processIdleRewards() external;
}

File 7 of 8 : IAuraOFT.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/**
 * @title IAuraOFT
 * @author  AuraFinance
 */
interface IAuraOFT {
    function lock(
        address receiver,
        uint256 _cvxAmount,
        address zroPaymentAddress
    ) external payable;

    function sendFrom(
        address _from,
        uint16 _dstChainId,
        bytes memory _toAddress,
        uint256 _amount,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes memory _adapterParams
    ) external payable;

    function canonicalChainId() external view returns (uint16);
}

File 8 of 8 : AuraMath.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library AuraMath {
    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute.
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }

    function to224(uint256 a) internal pure returns (uint224 c) {
        require(a <= type(uint224).max, "AuraMath: uint224 Overflow");
        c = uint224(a);
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= type(uint128).max, "AuraMath: uint128 Overflow");
        c = uint128(a);
    }

    function to112(uint256 a) internal pure returns (uint112 c) {
        require(a <= type(uint112).max, "AuraMath: uint112 Overflow");
        c = uint112(a);
    }

    function to96(uint256 a) internal pure returns (uint96 c) {
        require(a <= type(uint96).max, "AuraMath: uint96 Overflow");
        c = uint96(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= type(uint32).max, "AuraMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library AuraMath32 {
    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint112.
library AuraMath112 {
    function add(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a + b;
    }

    function sub(uint112 a, uint112 b) internal pure returns (uint112 c) {
        c = a - b;
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint224.
library AuraMath224 {
    function add(uint224 a, uint224 b) internal pure returns (uint224 c) {
        c = a + b;
    }
}

Settings
{
  "metadata": {
    "bytecodeHash": "none"
  },
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"canonicalChainID","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"address[]","name":"rewardContracts","type":"address[]"},{"internalType":"address[]","name":"extraRewardContracts","type":"address[]"},{"internalType":"address[]","name":"tokenRewardContracts","type":"address[]"},{"internalType":"address[]","name":"tokenRewardTokens","type":"address[]"},{"components":[{"internalType":"uint256","name":"lockCvxMaxAmount","type":"uint256"},{"internalType":"uint256","name":"depositCvxCrvMaxAmount","type":"uint256"},{"internalType":"uint256","name":"bridgeCvxMaxAmount","type":"uint256"}],"internalType":"struct SidechainClaimZap.ClaimRewardsAmounts","name":"amounts","type":"tuple"},{"components":[{"internalType":"bool","name":"useAllWalletFunds","type":"bool"},{"internalType":"bool","name":"sendCvxToL1","type":"bool"},{"internalType":"bool","name":"lockCvxL1","type":"bool"},{"internalType":"bool","name":"useCompounder","type":"bool"},{"internalType":"bool","name":"refundEth","type":"bool"},{"internalType":"bool","name":"overrideL1Receiver","type":"bool"},{"internalType":"address","name":"l1Receiever","type":"address"},{"internalType":"address","name":"zro","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct SidechainClaimZap.Options","name":"options","type":"tuple"}],"name":"claimRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"compounder","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":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_cvx","type":"address"},{"internalType":"address","name":"_cvxCrv","type":"address"},{"internalType":"address","name":"_compounder","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506114f1806100206000396000f3fe60806040526004361061009a5760003560e01c8063923c1d6111610069578063c6a079601161004e578063c6a07960146101bf578063f8c8765e146101d2578063fa2cc3c0146101f257600080fd5b8063923c1d611461016a578063b0a6a2c81461018a57600080fd5b806317d7de7c146100a657806382480df9146100fb5780638757b15b146101335780638da5cb5b1461014a57600080fd5b366100a157005b600080fd5b3480156100b257600080fd5b50604080518082018252601781527f53696465636861696e20436c61696d5a61702056312e30000000000000000000602082015290516100f291906110f7565b60405180910390f35b34801561010757600080fd5b5060015461011b906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561013f57600080fd5b50610148610212565b005b34801561015657600080fd5b5060035461011b906001600160a01b031681565b34801561017657600080fd5b5060005461011b906001600160a01b031681565b34801561019657600080fd5b506003546101ac90600160a01b900461ffff1681565b60405161ffff90911681526020016100f2565b6101486101cd36600461119d565b61028f565b3480156101de57600080fd5b506101486101ed3660046112b0565b610709565b3480156101fe57600080fd5b5060025461011b906001600160a01b031681565b6003546001600160a01b031633146102715760405162461bcd60e51b815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60015460025461028d916001600160a01b039081169116610847565b565b8483146102de5760405162461bcd60e51b815260206004820152600760248201527f21706172697479000000000000000000000000000000000000000000000000006044820152606401610268565b6000806102ee6020840184611315565b1580156102ff57506102ff83610876565b156103f3576000546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561034c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103709190611332565b6001549092506001600160a01b0316156103f3576001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156103cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f09190611332565b90505b60005b8b81101561049a578c8c828181106104105761041061134b565b90506020020160208101906104259190611361565b604051637050ccd960e01b8152336004820152600160248201526001600160a01b039190911690637050ccd990604401600060405180830381600087803b15801561046f57600080fd5b505af1158015610483573d6000803e3d6000fd5b50505050808061049290611392565b9150506103f6565b5060005b8981101561053b578a8a828181106104b8576104b861134b565b90506020020160208101906104cd9190611361565b604051630c00007b60e41b81523360048201526001600160a01b03919091169063c00007b090602401600060405180830381600087803b15801561051057600080fd5b505af1158015610524573d6000803e3d6000fd5b50505050808061053390611392565b91505061049e565b5060005b8781101561062f578888828181106105595761055961134b565b905060200201602081019061056e9190611361565b6001600160a01b0316636b0916953389898581811061058f5761058f61134b565b90506020020160208101906105a49190611361565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401600060405180830381600087803b15801561060457600080fd5b505af1158015610618573d6000803e3d6000fd5b50505050808061062790611392565b91505061053f565b5061063983610876565b1561064b5761064b82828f87876108ba565b61065b60a0840160808501611315565b156106fa57604051600090339047908381818185875af1925050503d80600081146106a2576040519150601f19603f3d011682016040523d82523d6000602084013e6106a7565b606091505b50509050806106f85760405162461bcd60e51b815260206004820152600760248201527f21726566756e64000000000000000000000000000000000000000000000000006044820152606401610268565b505b50505050505050505050505050565b6000546001600160a01b0316156107625760405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610268565b600380546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556000805486841690831681179091556001805486851690841617905560028054938516939092169290921790556040805163063deeb960e11b81529051630c7bdd72916004808201926020929091908290030181865afa158015610801573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082591906113ad565b600360146101000a81548161ffff021916908361ffff16021790555050505050565b61085c6001600160a01b038316826000610b95565b6108726001600160a01b03831682600019610b95565b5050565b60006108886060830160408401611315565b8061089e575061089e6040830160208401611315565b806108b457506108b46080830160608401611315565b92915050565b60006108cc60c0830160a08401611315565b6108d657336108e6565b6108e660e0830160c08401611361565b90506108f86060830160408401611315565b1561099a57600080548190610918906001600160a01b0316898735610d16565b915091508015610993576000546040516325de0b8560e11b81526001600160a01b03858116600483015260248201859052888116604483015290911690634bbc170a9034906064016000604051808303818588803b15801561097957600080fd5b505af115801561098d573d6000803e3d6000fd5b50505050505b5050610aa8565b6109aa6040830160208401611315565b15610aa8576000805481906109cd906001600160a01b0316896040880135610d16565b915091508015610aa5576000546003546040516bffffffffffffffffffffffff19606087901b1660208201526001600160a01b039092169163519056369134913091600160a01b900461ffff169060340160408051601f198184030181529190528733610a416101008d0160e08e01611361565b610a4f6101008e018e6113d1565b6040518a63ffffffff1660e01b8152600401610a72989796959493929190611418565b6000604051808303818588803b158015610a8b57600080fd5b505af1158015610a9f573d6000803e3d6000fd5b50505050505b50505b610ab86080830160608401611315565b8015610ace57506002546001600160a01b031615155b8015610ae457506001546001600160a01b031615155b15610b8d576001546000908190610b09906001600160a01b0316886020880135610d16565b915091508015610b8a57600254604051636e553f6560e01b8152600481018490523360248201526001600160a01b0390911690636e553f65906044016020604051808303816000875af1158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b889190611332565b505b50505b505050505050565b801580610c0f5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190611332565b155b610c815760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610268565b6040516001600160a01b038316602482015260448101829052610d1190849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610dc4565b505050565b6040516370a0823160e01b81523360048201526000908190610d8f9085906001600160a01b038816906370a0823190602401602060405180830381865afa158015610d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d899190611332565b90610ea9565b9150610d9b8284610ebc565b91508115610dbc57610db86001600160a01b038616333085610ed2565b5060015b935093915050565b6000610e19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f109092919063ffffffff16565b805190915015610d115780806020019051810190610e379190611494565b610d115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610268565b6000610eb582846114b1565b9392505050565b6000818310610ecb5781610eb5565b5090919050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f0a9085906323b872dd60e01b90608401610cad565b50505050565b6060610f1f8484600085610f27565b949350505050565b606082471015610f9f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610268565b843b610fed5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b0316858760405161100991906114c8565b60006040518083038185875af1925050503d8060008114611046576040519150601f19603f3d011682016040523d82523d6000602084013e61104b565b606091505b509150915061105b828286611066565b979650505050505050565b60608315611075575081610eb5565b8251156110855782518084602001fd5b8160405162461bcd60e51b815260040161026891906110f7565b60005b838110156110ba5781810151838201526020016110a2565b83811115610f0a5750506000910152565b600081518084526110e381602086016020860161109f565b601f01601f19169290920160200192915050565b602081526000610eb560208301846110cb565b80356001600160a01b038116811461112157600080fd5b919050565b60008083601f84011261113857600080fd5b50813567ffffffffffffffff81111561115057600080fd5b6020830191508360208260051b850101111561116b57600080fd5b9250929050565b60006060828403121561118457600080fd5b50919050565b6000610120828403121561118457600080fd5b60008060008060008060008060008060006101208c8e0312156111bf57600080fd5b6111c88c61110a565b9a5067ffffffffffffffff8060208e013511156111e457600080fd5b6111f48e60208f01358f01611126565b909b50995060408d013581101561120a57600080fd5b61121a8e60408f01358f01611126565b909950975060608d013581101561123057600080fd5b6112408e60608f01358f01611126565b909750955060808d013581101561125657600080fd5b6112668e60808f01358f01611126565b90955093506112788e60a08f01611172565b9250806101008e0135111561128c57600080fd5b5061129e8d6101008e01358e0161118a565b90509295989b509295989b9093969950565b600080600080608085870312156112c657600080fd5b6112cf8561110a565b93506112dd6020860161110a565b92506112eb6040860161110a565b91506112f96060860161110a565b905092959194509250565b801515811461131257600080fd5b50565b60006020828403121561132757600080fd5b8135610eb581611304565b60006020828403121561134457600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561137357600080fd5b610eb58261110a565b634e487b7160e01b600052601160045260246000fd5b60006000198214156113a6576113a661137c565b5060010190565b6000602082840312156113bf57600080fd5b815161ffff81168114610eb557600080fd5b6000808335601e198436030181126113e857600080fd5b83018035915067ffffffffffffffff82111561140357600080fd5b60200191503681900382131561116b57600080fd5b60006001600160a01b03808b16835261ffff8a16602084015260e0604084015261144560e084018a6110cb565b886060850152818816608085015281871660a085015283810360c0850152848152848660208301376000602086830101526020601f19601f870116820101925050509998505050505050505050565b6000602082840312156114a657600080fd5b8151610eb581611304565b6000828210156114c3576114c361137c565b500390565b600082516114da81846020870161109f565b919091019291505056fea164736f6c634300080b000a

Deployed Bytecode

0x60806040526004361061009a5760003560e01c8063923c1d6111610069578063c6a079601161004e578063c6a07960146101bf578063f8c8765e146101d2578063fa2cc3c0146101f257600080fd5b8063923c1d611461016a578063b0a6a2c81461018a57600080fd5b806317d7de7c146100a657806382480df9146100fb5780638757b15b146101335780638da5cb5b1461014a57600080fd5b366100a157005b600080fd5b3480156100b257600080fd5b50604080518082018252601781527f53696465636861696e20436c61696d5a61702056312e30000000000000000000602082015290516100f291906110f7565b60405180910390f35b34801561010757600080fd5b5060015461011b906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561013f57600080fd5b50610148610212565b005b34801561015657600080fd5b5060035461011b906001600160a01b031681565b34801561017657600080fd5b5060005461011b906001600160a01b031681565b34801561019657600080fd5b506003546101ac90600160a01b900461ffff1681565b60405161ffff90911681526020016100f2565b6101486101cd36600461119d565b61028f565b3480156101de57600080fd5b506101486101ed3660046112b0565b610709565b3480156101fe57600080fd5b5060025461011b906001600160a01b031681565b6003546001600160a01b031633146102715760405162461bcd60e51b815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60015460025461028d916001600160a01b039081169116610847565b565b8483146102de5760405162461bcd60e51b815260206004820152600760248201527f21706172697479000000000000000000000000000000000000000000000000006044820152606401610268565b6000806102ee6020840184611315565b1580156102ff57506102ff83610876565b156103f3576000546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561034c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103709190611332565b6001549092506001600160a01b0316156103f3576001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156103cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f09190611332565b90505b60005b8b81101561049a578c8c828181106104105761041061134b565b90506020020160208101906104259190611361565b604051637050ccd960e01b8152336004820152600160248201526001600160a01b039190911690637050ccd990604401600060405180830381600087803b15801561046f57600080fd5b505af1158015610483573d6000803e3d6000fd5b50505050808061049290611392565b9150506103f6565b5060005b8981101561053b578a8a828181106104b8576104b861134b565b90506020020160208101906104cd9190611361565b604051630c00007b60e41b81523360048201526001600160a01b03919091169063c00007b090602401600060405180830381600087803b15801561051057600080fd5b505af1158015610524573d6000803e3d6000fd5b50505050808061053390611392565b91505061049e565b5060005b8781101561062f578888828181106105595761055961134b565b905060200201602081019061056e9190611361565b6001600160a01b0316636b0916953389898581811061058f5761058f61134b565b90506020020160208101906105a49190611361565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401600060405180830381600087803b15801561060457600080fd5b505af1158015610618573d6000803e3d6000fd5b50505050808061062790611392565b91505061053f565b5061063983610876565b1561064b5761064b82828f87876108ba565b61065b60a0840160808501611315565b156106fa57604051600090339047908381818185875af1925050503d80600081146106a2576040519150601f19603f3d011682016040523d82523d6000602084013e6106a7565b606091505b50509050806106f85760405162461bcd60e51b815260206004820152600760248201527f21726566756e64000000000000000000000000000000000000000000000000006044820152606401610268565b505b50505050505050505050505050565b6000546001600160a01b0316156107625760405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610268565b600380546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556000805486841690831681179091556001805486851690841617905560028054938516939092169290921790556040805163063deeb960e11b81529051630c7bdd72916004808201926020929091908290030181865afa158015610801573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082591906113ad565b600360146101000a81548161ffff021916908361ffff16021790555050505050565b61085c6001600160a01b038316826000610b95565b6108726001600160a01b03831682600019610b95565b5050565b60006108886060830160408401611315565b8061089e575061089e6040830160208401611315565b806108b457506108b46080830160608401611315565b92915050565b60006108cc60c0830160a08401611315565b6108d657336108e6565b6108e660e0830160c08401611361565b90506108f86060830160408401611315565b1561099a57600080548190610918906001600160a01b0316898735610d16565b915091508015610993576000546040516325de0b8560e11b81526001600160a01b03858116600483015260248201859052888116604483015290911690634bbc170a9034906064016000604051808303818588803b15801561097957600080fd5b505af115801561098d573d6000803e3d6000fd5b50505050505b5050610aa8565b6109aa6040830160208401611315565b15610aa8576000805481906109cd906001600160a01b0316896040880135610d16565b915091508015610aa5576000546003546040516bffffffffffffffffffffffff19606087901b1660208201526001600160a01b039092169163519056369134913091600160a01b900461ffff169060340160408051601f198184030181529190528733610a416101008d0160e08e01611361565b610a4f6101008e018e6113d1565b6040518a63ffffffff1660e01b8152600401610a72989796959493929190611418565b6000604051808303818588803b158015610a8b57600080fd5b505af1158015610a9f573d6000803e3d6000fd5b50505050505b50505b610ab86080830160608401611315565b8015610ace57506002546001600160a01b031615155b8015610ae457506001546001600160a01b031615155b15610b8d576001546000908190610b09906001600160a01b0316886020880135610d16565b915091508015610b8a57600254604051636e553f6560e01b8152600481018490523360248201526001600160a01b0390911690636e553f65906044016020604051808303816000875af1158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b889190611332565b505b50505b505050505050565b801580610c0f5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190611332565b155b610c815760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610268565b6040516001600160a01b038316602482015260448101829052610d1190849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610dc4565b505050565b6040516370a0823160e01b81523360048201526000908190610d8f9085906001600160a01b038816906370a0823190602401602060405180830381865afa158015610d65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d899190611332565b90610ea9565b9150610d9b8284610ebc565b91508115610dbc57610db86001600160a01b038616333085610ed2565b5060015b935093915050565b6000610e19826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f109092919063ffffffff16565b805190915015610d115780806020019051810190610e379190611494565b610d115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610268565b6000610eb582846114b1565b9392505050565b6000818310610ecb5781610eb5565b5090919050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f0a9085906323b872dd60e01b90608401610cad565b50505050565b6060610f1f8484600085610f27565b949350505050565b606082471015610f9f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610268565b843b610fed5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b0316858760405161100991906114c8565b60006040518083038185875af1925050503d8060008114611046576040519150601f19603f3d011682016040523d82523d6000602084013e61104b565b606091505b509150915061105b828286611066565b979650505050505050565b60608315611075575081610eb5565b8251156110855782518084602001fd5b8160405162461bcd60e51b815260040161026891906110f7565b60005b838110156110ba5781810151838201526020016110a2565b83811115610f0a5750506000910152565b600081518084526110e381602086016020860161109f565b601f01601f19169290920160200192915050565b602081526000610eb560208301846110cb565b80356001600160a01b038116811461112157600080fd5b919050565b60008083601f84011261113857600080fd5b50813567ffffffffffffffff81111561115057600080fd5b6020830191508360208260051b850101111561116b57600080fd5b9250929050565b60006060828403121561118457600080fd5b50919050565b6000610120828403121561118457600080fd5b60008060008060008060008060008060006101208c8e0312156111bf57600080fd5b6111c88c61110a565b9a5067ffffffffffffffff8060208e013511156111e457600080fd5b6111f48e60208f01358f01611126565b909b50995060408d013581101561120a57600080fd5b61121a8e60408f01358f01611126565b909950975060608d013581101561123057600080fd5b6112408e60608f01358f01611126565b909750955060808d013581101561125657600080fd5b6112668e60808f01358f01611126565b90955093506112788e60a08f01611172565b9250806101008e0135111561128c57600080fd5b5061129e8d6101008e01358e0161118a565b90509295989b509295989b9093969950565b600080600080608085870312156112c657600080fd5b6112cf8561110a565b93506112dd6020860161110a565b92506112eb6040860161110a565b91506112f96060860161110a565b905092959194509250565b801515811461131257600080fd5b50565b60006020828403121561132757600080fd5b8135610eb581611304565b60006020828403121561134457600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561137357600080fd5b610eb58261110a565b634e487b7160e01b600052601160045260246000fd5b60006000198214156113a6576113a661137c565b5060010190565b6000602082840312156113bf57600080fd5b815161ffff81168114610eb557600080fd5b6000808335601e198436030181126113e857600080fd5b83018035915067ffffffffffffffff82111561140357600080fd5b60200191503681900382131561116b57600080fd5b60006001600160a01b03808b16835261ffff8a16602084015260e0604084015261144560e084018a6110cb565b886060850152818816608085015281871660a085015283810360c0850152848152848660208301376000602086830101526020601f19601f870116820101925050509998505050505050505050565b6000602082840312156114a657600080fd5b8151610eb581611304565b6000828210156114c3576114c361137c565b500390565b600082516114da81846020870161109f565b919091019291505056fea164736f6c634300080b000a

Block Transaction Gas Used Reward
view all blocks sequenced

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
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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