Contract 0xd9e863B7317a66fe0a4d2834910f604Fd6F89C6c 1

 

Contract Overview

Aura: Staking Proxy
Balance:
0 Ether

EtherValue:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value
0x913290440bf442da6eebf129280cf0a80fe81a97602f2cf39f65ec61928e1b88Distribute164946692023-01-27 0:46:592 days 18 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0117373221
0xfd1750add12392c44b3cb8c19567a6a02ef60e0e377455331ebc7c745c61cf90Distribute164421532023-01-19 16:49:5910 days 2 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0132736423
0x843d0503502874c05a8892d2bee7e873c005789b177fbf52260b21611e2047cfDistribute163896232023-01-12 8:47:1117 days 10 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0128221616.5
0x22bca4d78ae260297280d7ab6f5acf820459bd2ee17c34a6d7561ec736f7aa07Distribute163370782023-01-05 0:41:5924 days 18 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0159100821
0x243935f4a5c7e652c8948b602efe4878ae0070657b54add300570344cf94e77fDistribute162845172022-12-28 16:42:2332 days 2 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0097896717
0xbaaefd6aab001d3860eaf3cad4c83a327edcec1b1b32c1dd6b1e01b1115b82e1Distribute162319512022-12-21 8:41:5939 days 10 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0080822214
0x8e35a2c604734ec01db106927663824099218ed643bcf1ae687310d9e78faa98Distribute161794222022-12-14 0:41:5946 days 18 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.00894316
0xdbe5240a69b268d1872490a8fde78113c7347cc86d6d9d22066438a4a2357a7bDistribute161770462022-12-13 16:44:3547 days 2 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0181481321
0x1b2e9e359a125dc18166acd2deb3aad5fb089a69dd191fc463d846f6406acc0cDistribute161246242022-12-06 8:41:5954 days 10 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0102608715
0xec46e7823bbb1e38c85f33bcaab8ecad132cfb76615eae6bd3c1b00b00c8fae3Distribute160721452022-11-29 0:43:1161 days 18 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.013181420
0x921a362206db0ec1bd95ca56ff315d62f0148760f807fd8248eb4330f18d7b80Distribute160219132022-11-22 0:17:1168 days 19 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0086795213
0xfa119e60af9835163135eede307e254fef1ccf40c8e9168ac6ffa355d5fd8bf3Distribute159717432022-11-15 0:05:1175 days 19 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0180683826
0x9b919705f3813aeb00a55b5387eb2413e59dde3faed5bd470a95f3b858ae6d77Distribute159214972022-11-07 23:41:4782 days 19 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0161584324.2
0x57ace9ff3351e676537ac2b1c70a2f13480467ef243a110818f71453fc6b6216Distribute158712592022-10-31 23:15:4789 days 20 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0115830617
0x80bf4cb4fffdda64d333d80429b368647e02f712efd75f7b52b16d0e8647d7d7Distribute158210372022-10-24 22:53:1196 days 20 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0098871715
0xa84178551804240831fc643452828eed35285a797b2338597a0f5fd1d7a7c081Distribute157708552022-10-17 22:37:35103 days 20 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0174870826
0xec5bc69f56dc225ebc7a30927a28da7b0908e4f52c134f5ef5fde2caf33e0431Distribute157183762022-10-10 14:44:35111 days 4 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0010714531
0x4ea95d8e077e601a781da29551227ccba6f87c198f463b375578d42a536b91f6Distribute157183432022-10-10 14:37:59111 days 4 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0213666232
0x280c2b35a35ca38d28d685c4a9468a012ec267f5fa2480be87034a184313f8baDistribute156679862022-10-03 13:40:47118 days 5 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0120191518
0xc78daa9c1c5f1cfcb6d9946fd28c12ab99965cf244b52bb7a4dcb2bf0523130bDistribute156177992022-09-26 13:19:11125 days 6 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0096076414
0x5b0135a9835c9810fcc2d8274a0af583d9b411b03aec0d5bfe5c40cd873de7daDistribute155677102022-09-19 12:58:11132 days 6 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.007345311
0x9e98254a313bb94c27397e642f479d8f397b7b792dab8674429bd73d7df8c46eDistribute155209052022-09-12 12:38:50139 days 6 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0141246821
0xf0320da8a8123a6b32e255d2fb706327b752661689fc506a02f1bc8b26f90fd7Distribute154778332022-09-05 12:18:06146 days 7 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0122669418
0x86bee985f98a68dc7eb7f5f739baa85ff39f8e500bd818be1ffd86dd35e3dfb7Distribute154516992022-09-01 7:59:07150 days 11 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0103638214
0x811601ce74ad3e54e374503aaac6d72f65b9d409eff7c187704e0b3f61d32dc7Distribute154339482022-08-29 11:57:42153 days 7 hrs agoAura Finance: Distributor IN  Aura: Staking Proxy0 Ether0.0121281721
[ Download CSV Export 

OVERVIEW

Receives BAL from the Booster as overall reward, then distributes to vlAURA holders.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuraStakingProxy

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 800 runs

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

import { Address } from "@openzeppelin/contracts-0.8/utils/Address.sol";
import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol";
import { SafeMath } from "@openzeppelin/contracts-0.8/utils/math/SafeMath.sol";
import { IAuraLocker, ICrvDepositorWrapper } from "./Interfaces.sol";

/**
 * @title   AuraStakingProxy
 * @author  adapted from ConvexFinance
 * @notice  Receives CRV from the Booster as overall reward, then distributes to vlCVX holders. Also
 *          acts as a depositor proxy to support deposit/withdrawals from the CVX staking contract.
 * @dev     From CVX:
 *           - receive tokens to stake
 *           - get current staked balance
 *           - withdraw staked tokens
 *           - send rewards back to owner(cvx locker)
 *           - register token types that can be distributed
 */
contract AuraStakingProxy {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    //tokens
    address public immutable crv;
    address public immutable cvx;
    address public immutable cvxCrv;

    address public keeper;
    address public crvDepositorWrapper;
    uint256 public outputBps;
    uint256 public constant denominator = 10000;

    address public rewards;

    address public owner;
    address public pendingOwner;
    uint256 public callIncentive = 25;

    event RewardsDistributed(address indexed token, uint256 amount);
    event CallIncentiveChanged(uint256 incentive);

    /* ========== CONSTRUCTOR ========== */

    /**
     * @param _rewards       vlCVX
     * @param _crv           CRV token
     * @param _cvx           CVX token
     * @param _cvxCrv        cvxCRV token
     * @param _crvDepositorWrapper    Wrapper that converts CRV to CRVBPT and deposits
     * @param _outputBps     Configurable output bps where 100% == 10000
     */
    constructor(
        address _rewards,
        address _crv,
        address _cvx,
        address _cvxCrv,
        address _crvDepositorWrapper,
        uint256 _outputBps
    ) {
        rewards = _rewards;
        owner = msg.sender;
        crv = _crv;
        cvx = _cvx;
        cvxCrv = _cvxCrv;
        crvDepositorWrapper = _crvDepositorWrapper;
        outputBps = _outputBps;
    }

    /**
     * @notice Set CrvDepositorWrapper
     * @param   _crvDepositorWrapper CrvDepositorWrapper address
     * @param   _outputBps Min output base points
     */
    function setCrvDepositorWrapper(address _crvDepositorWrapper, uint256 _outputBps) external {
        require(msg.sender == owner, "!auth");
        require(_outputBps > 9000 && _outputBps < 10000, "Invalid output bps");

        crvDepositorWrapper = _crvDepositorWrapper;
        outputBps = _outputBps;
    }

    /**
     * @notice Set keeper
     */
    function setKeeper(address _keeper) external {
        require(msg.sender == owner, "!auth");
        keeper = _keeper;
    }

    /**
     * @notice Set pending owner
     */
    function setPendingOwner(address _po) external {
        require(msg.sender == owner, "!auth");
        pendingOwner = _po;
    }

    /**
     * @notice Apply pending owner
     */
    function applyPendingOwner() external {
        require(msg.sender == owner, "!auth");
        require(pendingOwner != address(0), "invalid owner");

        owner = pendingOwner;
        pendingOwner = address(0);
    }

    /**
     * @notice Set call incentive
     * @param _incentive Incentive base points
     */
    function setCallIncentive(uint256 _incentive) external {
        require(msg.sender == owner, "!auth");
        require(_incentive <= 100, "too high");
        callIncentive = _incentive;
        emit CallIncentiveChanged(_incentive);
    }

    /**
     * @notice Set reward address
     */
    function setRewards(address _rewards) external {
        require(msg.sender == owner, "!auth");
        rewards = _rewards;
    }

    /**
     * @notice  Approve crvDepositorWrapper to transfer contract CRV
     *          and rewards to transfer cvxCrv
     */
    function setApprovals() external {
        IERC20(crv).safeApprove(crvDepositorWrapper, 0);
        IERC20(crv).safeApprove(crvDepositorWrapper, type(uint256).max);

        IERC20(cvxCrv).safeApprove(rewards, 0);
        IERC20(cvxCrv).safeApprove(rewards, type(uint256).max);
    }

    /**
     * @notice Transfer stuck ERC20 tokens to `_to`
     */
    function rescueToken(address _token, address _to) external {
        require(msg.sender == owner, "!auth");
        require(_token != crv && _token != cvx && _token != cvxCrv, "not allowed");

        uint256 bal = IERC20(_token).balanceOf(address(this));
        IERC20(_token).safeTransfer(_to, bal);
    }

    function distribute(uint256 _minOut) external {
        require(msg.sender == keeper, "!auth");
        _distribute(_minOut);
    }

    /**
     * @dev Collects cvxCRV rewards from cvxRewardPool, converts any CRV deposited directly from
     *      the booster, and then applies the rewards to the cvxLocker, rewarding the caller in the process.
     */
    function distribute() external {
        // If keeper enabled, require
        if (keeper != address(0)) {
            require(msg.sender == keeper, "!auth");
        }
        _distribute(0);
    }

    function _distribute(uint256 _minOut) internal {
        //convert crv to cvxCrv
        uint256 crvBal = IERC20(crv).balanceOf(address(this));
        if (crvBal > 0) {
            uint256 minOut = _minOut != 0
                ? _minOut
                : ICrvDepositorWrapper(crvDepositorWrapper).getMinOut(crvBal, outputBps);
            ICrvDepositorWrapper(crvDepositorWrapper).deposit(crvBal, minOut, true, address(0));
        }

        //distribute cvxcrv
        uint256 cvxCrvBal = IERC20(cvxCrv).balanceOf(address(this));

        if (cvxCrvBal > 0) {
            uint256 incentiveAmount = cvxCrvBal.mul(callIncentive).div(denominator);
            cvxCrvBal = cvxCrvBal.sub(incentiveAmount);

            //send incentives
            IERC20(cvxCrv).safeTransfer(msg.sender, incentiveAmount);

            //update rewards
            IAuraLocker(rewards).queueNewRewards(cvxCrv, cvxCrvBal);

            emit RewardsDistributed(cvxCrv, cvxCrvBal);
        }
    }

    /**
     * @notice Allow generic token distribution in case a new reward is ever added
     */
    function distributeOther(IERC20 _token) external {
        require(address(_token) != crv && address(_token) != cvxCrv, "not allowed");

        uint256 bal = _token.balanceOf(address(this));

        if (bal > 0) {
            uint256 incentiveAmount = bal.mul(callIncentive).div(denominator);
            bal = bal.sub(incentiveAmount);

            //send incentives
            _token.safeTransfer(msg.sender, incentiveAmount);

            //approve
            _token.safeApprove(rewards, 0);
            _token.safeApprove(rewards, type(uint256).max);

            //update rewards
            IAuraLocker(rewards).queueNewRewards(address(_token), bal);

            emit RewardsDistributed(address(_token), bal);
        }
    }
}

File 2 of 6 : 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 3 of 6 : 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 4 of 6 : 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 5 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

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

interface IPriceOracle {
    struct OracleAverageQuery {
        Variable variable;
        uint256 secs;
        uint256 ago;
    }
    enum Variable {
        PAIR_PRICE,
        BPT_PRICE,
        INVARIANT
    }

    function getTimeWeightedAverage(OracleAverageQuery[] memory queries)
        external
        view
        returns (uint256[] memory results);
}

interface IVault {
    enum PoolSpecialization {
        GENERAL,
        MINIMAL_SWAP_INFO,
        TWO_TOKEN
    }
    enum JoinKind {
        INIT,
        EXACT_TOKENS_IN_FOR_BPT_OUT,
        TOKEN_IN_FOR_EXACT_BPT_OUT,
        ALL_TOKENS_IN_FOR_EXACT_BPT_OUT
    }

    enum SwapKind {
        GIVEN_IN,
        GIVEN_OUT
    }

    struct SingleSwap {
        bytes32 poolId;
        SwapKind kind;
        IAsset assetIn;
        IAsset assetOut;
        uint256 amount;
        bytes userData;
    }

    struct FundManagement {
        address sender;
        bool fromInternalBalance;
        address payable recipient;
        bool toInternalBalance;
    }

    struct JoinPoolRequest {
        IAsset[] assets;
        uint256[] maxAmountsIn;
        bytes userData;
        bool fromInternalBalance;
    }

    function getPool(bytes32 poolId) external view returns (address, PoolSpecialization);

    function getPoolTokens(bytes32 poolId)
        external
        view
        returns (
            address[] memory tokens,
            uint256[] memory balances,
            uint256 lastChangeBlock
        );

    function joinPool(
        bytes32 poolId,
        address sender,
        address recipient,
        JoinPoolRequest memory request
    ) external payable;

    function swap(
        SingleSwap memory singleSwap,
        FundManagement memory funds,
        uint256 limit,
        uint256 deadline
    ) external returns (uint256 amountCalculated);

    function exitPool(
        bytes32 poolId,
        address sender,
        address payable recipient,
        ExitPoolRequest memory request
    ) external;

    struct ExitPoolRequest {
        IAsset[] assets;
        uint256[] minAmountsOut;
        bytes userData;
        bool toInternalBalance;
    }
    enum ExitKind {
        EXACT_BPT_IN_FOR_ONE_TOKEN_OUT,
        EXACT_BPT_IN_FOR_TOKENS_OUT,
        BPT_IN_FOR_EXACT_TOKENS_OUT,
        MANAGEMENT_FEE_TOKENS_OUT // for ManagedPool
    }
}

interface IAsset {
    // solhint-disable-previous-line no-empty-blocks
}

interface IAuraLocker {
    function lock(address _account, uint256 _amount) external;

    function checkpointEpoch() external;

    function epochCount() external view returns (uint256);

    function balanceAtEpochOf(uint256 _epoch, address _user) external view returns (uint256 amount);

    function totalSupplyAtEpoch(uint256 _epoch) external view returns (uint256 supply);

    function queueNewRewards(address _rewardsToken, uint256 reward) external;

    function getReward(address _account, bool _stake) external;

    function getReward(address _account) external;
}

interface IExtraRewardsDistributor {
    function addReward(address _token, uint256 _amount) external;
}

interface ICrvDepositorWrapper {
    function getMinOut(uint256, uint256) external view returns (uint256);

    function deposit(
        uint256,
        uint256,
        bool,
        address _stakeAddress
    ) external;
}

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":[{"internalType":"address","name":"_rewards","type":"address"},{"internalType":"address","name":"_crv","type":"address"},{"internalType":"address","name":"_cvx","type":"address"},{"internalType":"address","name":"_cvxCrv","type":"address"},{"internalType":"address","name":"_crvDepositorWrapper","type":"address"},{"internalType":"uint256","name":"_outputBps","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"incentive","type":"uint256"}],"name":"CallIncentiveChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsDistributed","type":"event"},{"inputs":[],"name":"applyPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crvDepositorWrapper","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":"denominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"distributeOther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outputBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"setCallIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crvDepositorWrapper","type":"address"},{"internalType":"uint256","name":"_outputBps","type":"uint256"}],"name":"setCrvDepositorWrapper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e060405260196006553480156200001657600080fd5b50604051620017cc380380620017cc8339810160408190526200003991620000aa565b600380546001600160a01b03199081166001600160a01b0398891617909155600480543390831617905594861660805292851660a05290841660c05260018054909316931692909217905560025562000122565b80516001600160a01b0381168114620000a557600080fd5b919050565b60008060008060008060c08789031215620000c457600080fd5b620000cf876200008d565b9550620000df602088016200008d565b9450620000ef604088016200008d565b9350620000ff606088016200008d565b92506200010f608088016200008d565b915060a087015190509295509295509295565b60805160a05160c051611618620001b460003960008181610213015281816104170152818161054b015281816109050152818161094001528181610ff6015281816110a9015281816110ea015261115801526000818161026801526103d90152600081816101b40152818161039c0152818161050e0152818161088e015281816108c90152610e6301526116186000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c806399183f0a116100d8578063cc7554eb1161008c578063e30c397811610066578063e30c397814610325578063e4fc6b6d14610338578063ec38a8621461034057600080fd5b8063cc7554eb146102f6578063dc66a54114610309578063dfa736cf1461031c57600080fd5b8063aced1661116100bd578063aced1661146102c7578063c42069ec146102da578063cb22356b146102ed57600080fd5b806399183f0a146102a15780639ec5a894146102b457600080fd5b806382480df91161013a57806391c05b0b1161011457806391c05b0b14610250578063923c1d611461026357806396ce07951461028a57600080fd5b806382480df91461020e5780638757b15b146102355780638da5cb5b1461023d57600080fd5b80636a4874a11161016b5780636a4874a1146101af5780636d4a2ea1146101f3578063748747e6146101fb57600080fd5b80634707d0001461018757806351c92b131461019c575b600080fd5b61019a610195366004611448565b610353565b005b61019a6101aa366004611481565b61050c565b6101d67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61019a610758565b61019a610209366004611481565b610819565b6101d67f000000000000000000000000000000000000000000000000000000000000000081565b61019a61087d565b6004546101d6906001600160a01b031681565b61019a61025e36600461149e565b61096d565b6101d67f000000000000000000000000000000000000000000000000000000000000000081565b61029361271081565b6040519081526020016101ea565b6001546101d6906001600160a01b031681565b6003546101d6906001600160a01b031681565b6000546101d6906001600160a01b031681565b61019a6102e8366004611481565b6109bb565b61029360065481565b61019a61030436600461149e565b610a1f565b61019a6103173660046114b7565b610aed565b61029360025481565b6005546101d6906001600160a01b031681565b61019a610bb3565b61019a61034e366004611481565b610c10565b6004546001600160a01b0316331461039a5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b60448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415801561040e57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b801561044c57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b6104865760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610391565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156104cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f191906114e3565b90506105076001600160a01b0384168383610c74565b505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415801561058057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614155b6105ba5760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610391565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610601573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062591906114e3565b9050801561075457600061065061271061064a60065485610d0490919063ffffffff16565b90610d17565b905061065c8282610d23565b91506106726001600160a01b0384163383610c74565b60035461068d906001600160a01b0385811691166000610d2f565b6003546106a9906001600160a01b038581169116600019610d2f565b6003546040516304d0c2c560e01b81526001600160a01b03858116600483015260248201859052909116906304d0c2c590604401600060405180830381600087803b1580156106f757600080fd5b505af115801561070b573d6000803e3d6000fd5b50505050826001600160a01b03167fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece0868360405161074a91815260200190565b60405180910390a2505b5050565b6004546001600160a01b0316331461079a5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b6005546001600160a01b03166107f25760405162461bcd60e51b815260206004820152600d60248201527f696e76616c6964206f776e6572000000000000000000000000000000000000006044820152606401610391565b60058054600480546001600160a01b03199081166001600160a01b03841617909155169055565b6004546001600160a01b0316331461085b5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546108b8906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000610d2f565b6001546108f4906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019610d2f565b60035461092f906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691166000610d2f565b60035461096b906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116600019610d2f565b565b6000546001600160a01b031633146109af5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b6109b881610e4b565b50565b6004546001600160a01b031633146109fd5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610a615760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b6064811115610ab25760405162461bcd60e51b815260206004820152600860248201527f746f6f20686967680000000000000000000000000000000000000000000000006044820152606401610391565b60068190556040518181527f951fa38a4b6a55f348bea16d4f02732f22ecf8f7d4f58cf94ea81083935fa4fa9060200160405180910390a150565b6004546001600160a01b03163314610b2f5760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b61232881118015610b41575061271081105b610b8d5760405162461bcd60e51b815260206004820152601260248201527f496e76616c6964206f75747075742062707300000000000000000000000000006044820152606401610391565b600180546001600160a01b0319166001600160a01b039390931692909217909155600255565b6000546001600160a01b031615610c06576000546001600160a01b03163314610c065760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b61096b6000610e4b565b6004546001600160a01b03163314610c525760405162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b6044820152606401610391565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b03831660248201526044810182905261050790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526111bf565b6000610d108284611512565b9392505050565b6000610d108284611531565b6000610d108284611553565b801580610da95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610d83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da791906114e3565b155b610e1b5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610391565b6040516001600160a01b03831660248201526044810182905261050790849063095ea7b360e01b90606401610ca0565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed691906114e3565b90508015610fde57600082610f62576001546002546040516323f15c1760e01b81526004810185905260248101919091526001600160a01b03909116906323f15c1790604401602060405180830381865afa158015610f39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5d91906114e3565b610f64565b825b600180546040516314b47b0b60e11b815260048101869052602481018490526044810192909252600060648301529192506001600160a01b0390911690632968f61690608401600060405180830381600087803b158015610fc457600080fd5b505af1158015610fd8573d6000803e3d6000fd5b50505050505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611045573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106991906114e3565b9050801561050757600061108e61271061064a60065485610d0490919063ffffffff16565b905061109a8282610d23565b91506110d06001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610c74565b6003546040516304d0c2c560e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201859052909116906304d0c2c590604401600060405180830381600087803b15801561113e57600080fd5b505af1158015611152573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086836040516111b191815260200190565b60405180910390a250505050565b6000611214826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112a49092919063ffffffff16565b8051909150156105075780806020019051810190611232919061156a565b6105075760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610391565b60606112b384846000856112bb565b949350505050565b6060824710156113335760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610391565b843b6113815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610391565b600080866001600160a01b0316858760405161139d91906115bc565b60006040518083038185875af1925050503d80600081146113da576040519150601f19603f3d011682016040523d82523d6000602084013e6113df565b606091505b50915091506113ef8282866113fa565b979650505050505050565b60608315611409575081610d10565b8251156114195782518084602001fd5b8160405162461bcd60e51b815260040161039191906115d8565b6001600160a01b03811681146109b857600080fd5b6000806040838503121561145b57600080fd5b823561146681611433565b9150602083013561147681611433565b809150509250929050565b60006020828403121561149357600080fd5b8135610d1081611433565b6000602082840312156114b057600080fd5b5035919050565b600080604083850312156114ca57600080fd5b82356114d581611433565b946020939093013593505050565b6000602082840312156114f557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561152c5761152c6114fc565b500290565b60008261154e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611565576115656114fc565b500390565b60006020828403121561157c57600080fd5b81518015158114610d1057600080fd5b60005b838110156115a757818101518382015260200161158f565b838111156115b6576000848401525b50505050565b600082516115ce81846020870161158c565b9190910192915050565b60208152600082518060208401526115f781604085016020870161158c565b601f01601f1916919091016040019291505056fea164736f6c634300080b000a0000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d00000000000000000000000068655ad9852a99c87c0934c7290bb62cfa5d412300000000000000000000000000000000000000000000000000000000000026de

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d00000000000000000000000068655ad9852a99c87c0934c7290bb62cfa5d412300000000000000000000000000000000000000000000000000000000000026de

-----Decoded View---------------
Arg [0] : _rewards (address): 0x3Fa73f1E5d8A792C80F426fc8F84FBF7Ce9bBCAC
Arg [1] : _crv (address): 0xba100000625a3754423978a60c9317c58a424e3D
Arg [2] : _cvx (address): 0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF
Arg [3] : _cvxCrv (address): 0x616e8BfA43F920657B3497DBf40D6b1A02D4608d
Arg [4] : _crvDepositorWrapper (address): 0x68655AD9852a99C87C0934c7290BB62CFa5D4123
Arg [5] : _outputBps (uint256): 9950

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000003fa73f1e5d8a792c80f426fc8f84fbf7ce9bbcac
Arg [1] : 000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d
Arg [2] : 000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf
Arg [3] : 000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
Arg [4] : 00000000000000000000000068655ad9852a99c87c0934c7290bb62cfa5d4123
Arg [5] : 00000000000000000000000000000000000000000000000000000000000026de


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

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.