POL Price: $0.61896 (-4.82%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Rewards653923672024-12-12 12:48:1413 hrs ago1734007694IN
Aura: Claim Zap
0 POL0.0109444332.99996658
Claim Rewards653759812024-12-12 3:05:2723 hrs ago1733972727IN
Aura: Claim Zap
0 POL0.0109068630.00002685
Claim Rewards653741912024-12-12 2:00:5524 hrs ago1733968855IN
Aura: Claim Zap
0 POL0.0107369433.00000002
Claim Rewards653643972024-12-11 20:10:5430 hrs ago1733947854IN
Aura: Claim Zap
0 POL0.014883330.00000003
Claim Rewards653548082024-12-11 14:26:5335 hrs ago1733927213IN
Aura: Claim Zap
0 POL0.0384591105.78418435
Claim Rewards653252292024-12-10 20:44:052 days ago1733863445IN
Aura: Claim Zap
0 POL0.0142505333.07201835
Claim Rewards653133872024-12-10 13:40:142 days ago1733838014IN
Aura: Claim Zap
0 POL0.0175745154.01526486
Claim Rewards652943052024-12-10 2:17:572 days ago1733797077IN
Aura: Claim Zap
0 POL0.0142474342.95925322
Claim Rewards652741462024-12-09 14:16:583 days ago1733753818IN
Aura: Claim Zap
0 POL0.0209200950.31361586
Claim Rewards652717642024-12-09 12:51:043 days ago1733748664IN
Aura: Claim Zap
0 POL0.0147823540.65980207
Claim Rewards652653382024-12-09 8:56:093 days ago1733734569IN
Aura: Claim Zap
0 POL0.005247349.64762132
Claim Rewards652597722024-12-09 5:35:153 days ago1733722515IN
Aura: Claim Zap
0 POL0.0213584134.60959612
Claim Rewards652416172024-12-08 18:35:034 days ago1733682903IN
Aura: Claim Zap
0 POL0.0096365730.00000003
Claim Rewards652327282024-12-08 13:04:484 days ago1733663088IN
Aura: Claim Zap
0 POL0.0151156835.996924
Claim Rewards652305042024-12-08 11:43:584 days ago1733658238IN
Aura: Claim Zap
0 POL0.0109068630.00000006
Claim Rewards652042722024-12-07 19:27:365 days ago1733599656IN
Aura: Claim Zap
0 POL0.0151837930.60570014
Claim Rewards651982412024-12-07 15:51:585 days ago1733586718IN
Aura: Claim Zap
0 POL0.0133732326
Claim Rewards651894722024-12-07 10:31:565 days ago1733567516IN
Aura: Claim Zap
0 POL0.0099193734.55999995
Claim Rewards651712392024-12-06 23:19:466 days ago1733527186IN
Aura: Claim Zap
0 POL0.0091835730.00000022
Claim Rewards651122132024-12-05 11:55:597 days ago1733399759IN
Aura: Claim Zap
0 POL0.0138119147.4605176
Claim Rewards651090112024-12-05 10:02:027 days ago1733392922IN
Aura: Claim Zap
0 POL0.0107547135.13247281
Claim Rewards651007612024-12-05 5:09:487 days ago1733375388IN
Aura: Claim Zap
0 POL0.0172074556.21165157
Claim Rewards650690062024-12-04 10:17:408 days ago1733307460IN
Aura: Claim Zap
0 POL0.0118292537.05686971
Claim Rewards650622042024-12-04 6:12:038 days ago1733292723IN
Aura: Claim Zap
0 POL0.0112393130.91442513
Claim Rewards650583832024-12-04 3:55:518 days ago1733284551IN
Aura: Claim Zap
0 POL0.0097103530.04264791
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
452416192023-07-18 22:32:07513 days ago1689719527  Contract Creation0 POL
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);
            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) {
            (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"}]

608060405234801561001057600080fd5b506114b2806100206000396000f3fe60806040526004361061009a5760003560e01c8063923c1d6111610069578063c6a079601161004e578063c6a07960146101bf578063f8c8765e146101d2578063fa2cc3c0146101f257600080fd5b8063923c1d611461016a578063b0a6a2c81461018a57600080fd5b806317d7de7c146100a657806382480df9146100fb5780638757b15b146101335780638da5cb5b1461014a57600080fd5b366100a157005b600080fd5b3480156100b257600080fd5b50604080518082018252601781527f53696465636861696e20436c61696d5a61702056312e30000000000000000000602082015290516100f291906110b8565b60405180910390f35b34801561010757600080fd5b5060015461011b906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561013f57600080fd5b50610148610212565b005b34801561015657600080fd5b5060035461011b906001600160a01b031681565b34801561017657600080fd5b5060005461011b906001600160a01b031681565b34801561019657600080fd5b506003546101ac90600160a01b900461ffff1681565b60405161ffff90911681526020016100f2565b6101486101cd36600461115e565b61028f565b3480156101de57600080fd5b506101486101ed366004611271565b6106f6565b3480156101fe57600080fd5b5060025461011b906001600160a01b031681565b6003546001600160a01b031633146102715760405162461bcd60e51b815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60015460025461028d916001600160a01b039081169116610834565b565b8483146102de5760405162461bcd60e51b815260206004820152600760248201527f21706172697479000000000000000000000000000000000000000000000000006044820152606401610268565b6000806102ee60208401846112d6565b1580156102ff57506102ff83610863565b156103e0576000546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561034c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037091906112f3565b6001546040516370a0823160e01b81523360048201529193506001600160a01b0316906370a0823190602401602060405180830381865afa1580156103b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103dd91906112f3565b90505b60005b8b811015610487578c8c828181106103fd576103fd61130c565b90506020020160208101906104129190611322565b604051637050ccd960e01b8152336004820152600160248201526001600160a01b039190911690637050ccd990604401600060405180830381600087803b15801561045c57600080fd5b505af1158015610470573d6000803e3d6000fd5b50505050808061047f90611353565b9150506103e3565b5060005b89811015610528578a8a828181106104a5576104a561130c565b90506020020160208101906104ba9190611322565b604051630c00007b60e41b81523360048201526001600160a01b03919091169063c00007b090602401600060405180830381600087803b1580156104fd57600080fd5b505af1158015610511573d6000803e3d6000fd5b50505050808061052090611353565b91505061048b565b5060005b8781101561061c578888828181106105465761054661130c565b905060200201602081019061055b9190611322565b6001600160a01b0316636b0916953389898581811061057c5761057c61130c565b90506020020160208101906105919190611322565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401600060405180830381600087803b1580156105f157600080fd5b505af1158015610605573d6000803e3d6000fd5b50505050808061061490611353565b91505061052c565b5061062683610863565b156106385761063882828f87876108a7565b61064860a08401608085016112d6565b156106e757604051600090339047908381818185875af1925050503d806000811461068f576040519150601f19603f3d011682016040523d82523d6000602084013e610694565b606091505b50509050806106e55760405162461bcd60e51b815260206004820152600760248201527f21726566756e64000000000000000000000000000000000000000000000000006044820152606401610268565b505b50505050505050505050505050565b6000546001600160a01b03161561074f5760405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610268565b600380546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556000805486841690831681179091556001805486851690841617905560028054938516939092169290921790556040805163063deeb960e11b81529051630c7bdd72916004808201926020929091908290030181865afa1580156107ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610812919061136e565b600360146101000a81548161ffff021916908361ffff16021790555050505050565b6108496001600160a01b038316826000610b56565b61085f6001600160a01b03831682600019610b56565b5050565b600061087560608301604084016112d6565b8061088b575061088b60408301602084016112d6565b806108a157506108a160808301606084016112d6565b92915050565b60006108b960c0830160a084016112d6565b6108c357336108d3565b6108d360e0830160c08401611322565b90506108e560608301604084016112d6565b1561098757600080548190610905906001600160a01b0316898735610cd7565b915091508015610980576000546040516325de0b8560e11b81526001600160a01b03858116600483015260248201859052888116604483015290911690634bbc170a9034906064016000604051808303818588803b15801561096657600080fd5b505af115801561097a573d6000803e3d6000fd5b50505050505b5050610a95565b61099760408301602084016112d6565b15610a95576000805481906109ba906001600160a01b0316896040880135610cd7565b915091508015610a92576000546003546040516bffffffffffffffffffffffff19606087901b1660208201526001600160a01b039092169163519056369134913091600160a01b900461ffff169060340160408051601f198184030181529190528733610a2e6101008d0160e08e01611322565b610a3c6101008e018e611392565b6040518a63ffffffff1660e01b8152600401610a5f9897969594939291906113d9565b6000604051808303818588803b158015610a7857600080fd5b505af1158015610a8c573d6000803e3d6000fd5b50505050505b50505b610aa560808301606084016112d6565b15610b4e576001546000908190610aca906001600160a01b0316886020880135610cd7565b915091508015610b4b57600254604051636e553f6560e01b8152600481018490523360248201526001600160a01b0390911690636e553f65906044016020604051808303816000875af1158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4991906112f3565b505b50505b505050505050565b801580610bd05750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce91906112f3565b155b610c425760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610268565b6040516001600160a01b038316602482015260448101829052610cd290849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610d85565b505050565b6040516370a0823160e01b81523360048201526000908190610d509085906001600160a01b038816906370a0823190602401602060405180830381865afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a91906112f3565b90610e6a565b9150610d5c8284610e7d565b91508115610d7d57610d796001600160a01b038616333085610e93565b5060015b935093915050565b6000610dda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ed19092919063ffffffff16565b805190915015610cd25780806020019051810190610df89190611455565b610cd25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610268565b6000610e768284611472565b9392505050565b6000818310610e8c5781610e76565b5090919050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ecb9085906323b872dd60e01b90608401610c6e565b50505050565b6060610ee08484600085610ee8565b949350505050565b606082471015610f605760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610268565b843b610fae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b03168587604051610fca9190611489565b60006040518083038185875af1925050503d8060008114611007576040519150601f19603f3d011682016040523d82523d6000602084013e61100c565b606091505b509150915061101c828286611027565b979650505050505050565b60608315611036575081610e76565b8251156110465782518084602001fd5b8160405162461bcd60e51b815260040161026891906110b8565b60005b8381101561107b578181015183820152602001611063565b83811115610ecb5750506000910152565b600081518084526110a4816020860160208601611060565b601f01601f19169290920160200192915050565b602081526000610e76602083018461108c565b80356001600160a01b03811681146110e257600080fd5b919050565b60008083601f8401126110f957600080fd5b50813567ffffffffffffffff81111561111157600080fd5b6020830191508360208260051b850101111561112c57600080fd5b9250929050565b60006060828403121561114557600080fd5b50919050565b6000610120828403121561114557600080fd5b60008060008060008060008060008060006101208c8e03121561118057600080fd5b6111898c6110cb565b9a5067ffffffffffffffff8060208e013511156111a557600080fd5b6111b58e60208f01358f016110e7565b909b50995060408d01358110156111cb57600080fd5b6111db8e60408f01358f016110e7565b909950975060608d01358110156111f157600080fd5b6112018e60608f01358f016110e7565b909750955060808d013581101561121757600080fd5b6112278e60808f01358f016110e7565b90955093506112398e60a08f01611133565b9250806101008e0135111561124d57600080fd5b5061125f8d6101008e01358e0161114b565b90509295989b509295989b9093969950565b6000806000806080858703121561128757600080fd5b611290856110cb565b935061129e602086016110cb565b92506112ac604086016110cb565b91506112ba606086016110cb565b905092959194509250565b80151581146112d357600080fd5b50565b6000602082840312156112e857600080fd5b8135610e76816112c5565b60006020828403121561130557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561133457600080fd5b610e76826110cb565b634e487b7160e01b600052601160045260246000fd5b60006000198214156113675761136761133d565b5060010190565b60006020828403121561138057600080fd5b815161ffff81168114610e7657600080fd5b6000808335601e198436030181126113a957600080fd5b83018035915067ffffffffffffffff8211156113c457600080fd5b60200191503681900382131561112c57600080fd5b60006001600160a01b03808b16835261ffff8a16602084015260e0604084015261140660e084018a61108c565b886060850152818816608085015281871660a085015283810360c0850152848152848660208301376000602086830101526020601f19601f870116820101925050509998505050505050505050565b60006020828403121561146757600080fd5b8151610e76816112c5565b6000828210156114845761148461133d565b500390565b6000825161149b818460208701611060565b919091019291505056fea164736f6c634300080b000a

Deployed Bytecode

0x60806040526004361061009a5760003560e01c8063923c1d6111610069578063c6a079601161004e578063c6a07960146101bf578063f8c8765e146101d2578063fa2cc3c0146101f257600080fd5b8063923c1d611461016a578063b0a6a2c81461018a57600080fd5b806317d7de7c146100a657806382480df9146100fb5780638757b15b146101335780638da5cb5b1461014a57600080fd5b366100a157005b600080fd5b3480156100b257600080fd5b50604080518082018252601781527f53696465636861696e20436c61696d5a61702056312e30000000000000000000602082015290516100f291906110b8565b60405180910390f35b34801561010757600080fd5b5060015461011b906001600160a01b031681565b6040516001600160a01b0390911681526020016100f2565b34801561013f57600080fd5b50610148610212565b005b34801561015657600080fd5b5060035461011b906001600160a01b031681565b34801561017657600080fd5b5060005461011b906001600160a01b031681565b34801561019657600080fd5b506003546101ac90600160a01b900461ffff1681565b60405161ffff90911681526020016100f2565b6101486101cd36600461115e565b61028f565b3480156101de57600080fd5b506101486101ed366004611271565b6106f6565b3480156101fe57600080fd5b5060025461011b906001600160a01b031681565b6003546001600160a01b031633146102715760405162461bcd60e51b815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b60015460025461028d916001600160a01b039081169116610834565b565b8483146102de5760405162461bcd60e51b815260206004820152600760248201527f21706172697479000000000000000000000000000000000000000000000000006044820152606401610268565b6000806102ee60208401846112d6565b1580156102ff57506102ff83610863565b156103e0576000546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561034c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037091906112f3565b6001546040516370a0823160e01b81523360048201529193506001600160a01b0316906370a0823190602401602060405180830381865afa1580156103b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103dd91906112f3565b90505b60005b8b811015610487578c8c828181106103fd576103fd61130c565b90506020020160208101906104129190611322565b604051637050ccd960e01b8152336004820152600160248201526001600160a01b039190911690637050ccd990604401600060405180830381600087803b15801561045c57600080fd5b505af1158015610470573d6000803e3d6000fd5b50505050808061047f90611353565b9150506103e3565b5060005b89811015610528578a8a828181106104a5576104a561130c565b90506020020160208101906104ba9190611322565b604051630c00007b60e41b81523360048201526001600160a01b03919091169063c00007b090602401600060405180830381600087803b1580156104fd57600080fd5b505af1158015610511573d6000803e3d6000fd5b50505050808061052090611353565b91505061048b565b5060005b8781101561061c578888828181106105465761054661130c565b905060200201602081019061055b9190611322565b6001600160a01b0316636b0916953389898581811061057c5761057c61130c565b90506020020160208101906105919190611322565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b03928316600482015291166024820152604401600060405180830381600087803b1580156105f157600080fd5b505af1158015610605573d6000803e3d6000fd5b50505050808061061490611353565b91505061052c565b5061062683610863565b156106385761063882828f87876108a7565b61064860a08401608085016112d6565b156106e757604051600090339047908381818185875af1925050503d806000811461068f576040519150601f19603f3d011682016040523d82523d6000602084013e610694565b606091505b50509050806106e55760405162461bcd60e51b815260206004820152600760248201527f21726566756e64000000000000000000000000000000000000000000000000006044820152606401610268565b505b50505050505050505050505050565b6000546001600160a01b03161561074f5760405162461bcd60e51b815260206004820152601360248201527f616c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610268565b600380546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556000805486841690831681179091556001805486851690841617905560028054938516939092169290921790556040805163063deeb960e11b81529051630c7bdd72916004808201926020929091908290030181865afa1580156107ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610812919061136e565b600360146101000a81548161ffff021916908361ffff16021790555050505050565b6108496001600160a01b038316826000610b56565b61085f6001600160a01b03831682600019610b56565b5050565b600061087560608301604084016112d6565b8061088b575061088b60408301602084016112d6565b806108a157506108a160808301606084016112d6565b92915050565b60006108b960c0830160a084016112d6565b6108c357336108d3565b6108d360e0830160c08401611322565b90506108e560608301604084016112d6565b1561098757600080548190610905906001600160a01b0316898735610cd7565b915091508015610980576000546040516325de0b8560e11b81526001600160a01b03858116600483015260248201859052888116604483015290911690634bbc170a9034906064016000604051808303818588803b15801561096657600080fd5b505af115801561097a573d6000803e3d6000fd5b50505050505b5050610a95565b61099760408301602084016112d6565b15610a95576000805481906109ba906001600160a01b0316896040880135610cd7565b915091508015610a92576000546003546040516bffffffffffffffffffffffff19606087901b1660208201526001600160a01b039092169163519056369134913091600160a01b900461ffff169060340160408051601f198184030181529190528733610a2e6101008d0160e08e01611322565b610a3c6101008e018e611392565b6040518a63ffffffff1660e01b8152600401610a5f9897969594939291906113d9565b6000604051808303818588803b158015610a7857600080fd5b505af1158015610a8c573d6000803e3d6000fd5b50505050505b50505b610aa560808301606084016112d6565b15610b4e576001546000908190610aca906001600160a01b0316886020880135610cd7565b915091508015610b4b57600254604051636e553f6560e01b8152600481018490523360248201526001600160a01b0390911690636e553f65906044016020604051808303816000875af1158015610b25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4991906112f3565b505b50505b505050505050565b801580610bd05750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce91906112f3565b155b610c425760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610268565b6040516001600160a01b038316602482015260448101829052610cd290849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610d85565b505050565b6040516370a0823160e01b81523360048201526000908190610d509085906001600160a01b038816906370a0823190602401602060405180830381865afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a91906112f3565b90610e6a565b9150610d5c8284610e7d565b91508115610d7d57610d796001600160a01b038616333085610e93565b5060015b935093915050565b6000610dda826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ed19092919063ffffffff16565b805190915015610cd25780806020019051810190610df89190611455565b610cd25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610268565b6000610e768284611472565b9392505050565b6000818310610e8c5781610e76565b5090919050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ecb9085906323b872dd60e01b90608401610c6e565b50505050565b6060610ee08484600085610ee8565b949350505050565b606082471015610f605760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610268565b843b610fae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b03168587604051610fca9190611489565b60006040518083038185875af1925050503d8060008114611007576040519150601f19603f3d011682016040523d82523d6000602084013e61100c565b606091505b509150915061101c828286611027565b979650505050505050565b60608315611036575081610e76565b8251156110465782518084602001fd5b8160405162461bcd60e51b815260040161026891906110b8565b60005b8381101561107b578181015183820152602001611063565b83811115610ecb5750506000910152565b600081518084526110a4816020860160208601611060565b601f01601f19169290920160200192915050565b602081526000610e76602083018461108c565b80356001600160a01b03811681146110e257600080fd5b919050565b60008083601f8401126110f957600080fd5b50813567ffffffffffffffff81111561111157600080fd5b6020830191508360208260051b850101111561112c57600080fd5b9250929050565b60006060828403121561114557600080fd5b50919050565b6000610120828403121561114557600080fd5b60008060008060008060008060008060006101208c8e03121561118057600080fd5b6111898c6110cb565b9a5067ffffffffffffffff8060208e013511156111a557600080fd5b6111b58e60208f01358f016110e7565b909b50995060408d01358110156111cb57600080fd5b6111db8e60408f01358f016110e7565b909950975060608d01358110156111f157600080fd5b6112018e60608f01358f016110e7565b909750955060808d013581101561121757600080fd5b6112278e60808f01358f016110e7565b90955093506112398e60a08f01611133565b9250806101008e0135111561124d57600080fd5b5061125f8d6101008e01358e0161114b565b90509295989b509295989b9093969950565b6000806000806080858703121561128757600080fd5b611290856110cb565b935061129e602086016110cb565b92506112ac604086016110cb565b91506112ba606086016110cb565b905092959194509250565b80151581146112d357600080fd5b50565b6000602082840312156112e857600080fd5b8135610e76816112c5565b60006020828403121561130557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561133457600080fd5b610e76826110cb565b634e487b7160e01b600052601160045260246000fd5b60006000198214156113675761136761133d565b5060010190565b60006020828403121561138057600080fd5b815161ffff81168114610e7657600080fd5b6000808335601e198436030181126113a957600080fd5b83018035915067ffffffffffffffff8211156113c457600080fd5b60200191503681900382131561112c57600080fd5b60006001600160a01b03808b16835261ffff8a16602084015260e0604084015261140660e084018a61108c565b886060850152818816608085015281871660a085015283810360c0850152848152848660208301376000602086830101526020601f19601f870116820101925050509998505050505050505050565b60006020828403121561146757600080fd5b8151610e76816112c5565b6000828210156114845761148461133d565b500390565b6000825161149b818460208701611060565b919091019291505056fea164736f6c634300080b000a

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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