ETH Price: $1,783.89 (+1.51%)

Contract

0x7374c3DcAf8Ff2c9BB706eafF7bF4EBBf9AC6067
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim From Vault...199806642024-05-30 5:46:11309 days ago1717047971IN
0x7374c3Dc...Bf9AC6067
0 ETH0.003863527.97124264
Deposit From Und...199541502024-05-26 12:48:11313 days ago1716727691IN
0x7374c3Dc...Bf9AC6067
0 ETH0.002912385.88106548
Claim From Vault...199424692024-05-24 21:37:47314 days ago1716586667IN
0x7374c3Dc...Bf9AC6067
0 ETH0.003188526.5137563
Claim From Vault...198206492024-05-07 20:43:11331 days ago1715114591IN
0x7374c3Dc...Bf9AC6067
0 ETH0.002359835.11737126
Deposit From Und...197501352024-04-28 0:06:35341 days ago1714262795IN
0x7374c3Dc...Bf9AC6067
0 ETH0.002485774.76278888
Claim From Vault...196012342024-04-07 3:47:11362 days ago1712461631IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0058326412.10326236
Claim From Vault...195470212024-03-30 13:19:23370 days ago1711804763IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0118213124.29105651
Claim From Vault...195391922024-03-29 10:53:35371 days ago1711709615IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0105891321.99740508
Deposit From Und...195346822024-03-28 19:42:59371 days ago1711654979IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0177019833.92588842
Claim From Vault...193668722024-03-05 5:27:23395 days ago1709616443IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0526193387.08969854
Claim From Vault...192968582024-02-24 10:30:11405 days ago1708770611IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0122592525.84115423
Deposit From Und...192495822024-02-17 19:14:23411 days ago1708197263IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0110403122.42352967
Claim From Vault...191620692024-02-05 12:28:11424 days ago1707136091IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0083192618.78523496
Claim From Vault...191620652024-02-05 12:27:23424 days ago1707136043IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0089120218.38254463
Claim From Vault...191490112024-02-03 16:26:59425 days ago1706977619IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0119708225.94367421
Claim From Vault...191209892024-01-30 18:03:47429 days ago1706637827IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0162249333.04965936
Deposit From Und...190782632024-01-24 18:24:11435 days ago1706120651IN
0x7374c3Dc...Bf9AC6067
0 ETH0.00725215.75237775
Claim From Vault...190708252024-01-23 17:22:11436 days ago1706030531IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0075591716.94236941
Claim From Vault...190290862024-01-17 20:49:59442 days ago1705524599IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0169862535.03830574
Claim From Vault...190184812024-01-16 9:13:35444 days ago1705396415IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0144108825.10173928
Claim From Vault...190183582024-01-16 8:48:59444 days ago1705394939IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0150577725
Claim From Vault...190173592024-01-16 5:28:23444 days ago1705382903IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0135548126.11824355
Deposit From Und...189346462024-01-04 14:44:35455 days ago1704379475IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0131913626.73828683
Claim From Vault...189194492024-01-02 11:38:11458 days ago1704195491IN
0x7374c3Dc...Bf9AC6067
0 ETH0.0073386615.5
Claim From Vault...189016762023-12-30 23:43:35460 days ago1703979815IN
0x7374c3Dc...Bf9AC6067
0 ETH0.007913714.07524308
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Swap Exact ETH F...193668722024-03-05 5:27:23395 days ago1709616443
0x7374c3Dc...Bf9AC6067
2.83182203 ETH
Transfer193668722024-03-05 5:27:23395 days ago1709616443
0x7374c3Dc...Bf9AC6067
2.83182203 ETH
Swap Exact ETH F...190184812024-01-16 9:13:35444 days ago1705396415
0x7374c3Dc...Bf9AC6067
0.35467221 ETH
Transfer190184812024-01-16 9:13:35444 days ago1705396415
0x7374c3Dc...Bf9AC6067
0.35467221 ETH
Swap Exact ETH F...190183582024-01-16 8:48:59444 days ago1705394939
0x7374c3Dc...Bf9AC6067
1.20590279 ETH
Transfer190183582024-01-16 8:48:59444 days ago1705394939
0x7374c3Dc...Bf9AC6067
1.20590279 ETH
Swap Exact ETH F...189016762023-12-30 23:43:35460 days ago1703979815
0x7374c3Dc...Bf9AC6067
1.45870827 ETH
Transfer189016762023-12-30 23:43:35460 days ago1703979815
0x7374c3Dc...Bf9AC6067
1.45870827 ETH
Swap Exact ETH F...188665872023-12-26 1:26:35465 days ago1703553995
0x7374c3Dc...Bf9AC6067
1.02863502 ETH
Transfer188665872023-12-26 1:26:35465 days ago1703553995
0x7374c3Dc...Bf9AC6067
1.02863502 ETH
Swap Exact ETH F...188464622023-12-23 5:33:59468 days ago1703309639
0x7374c3Dc...Bf9AC6067
2.15600647 ETH
Transfer188464622023-12-23 5:33:59468 days ago1703309639
0x7374c3Dc...Bf9AC6067
2.15600647 ETH
Swap Exact ETH F...187983652023-12-16 11:35:35475 days ago1702726535
0x7374c3Dc...Bf9AC6067
2.14199584 ETH
Transfer187983652023-12-16 11:35:35475 days ago1702726535
0x7374c3Dc...Bf9AC6067
2.14199584 ETH
Swap Exact ETH F...187397582023-12-08 6:29:23483 days ago1702016963
0x7374c3Dc...Bf9AC6067
1.62405704 ETH
Transfer187397582023-12-08 6:29:23483 days ago1702016963
0x7374c3Dc...Bf9AC6067
1.62405704 ETH
Swap Exact ETH F...185499512023-11-11 16:42:23509 days ago1699720943
0x7374c3Dc...Bf9AC6067
0.43374928 ETH
Transfer185499512023-11-11 16:42:23509 days ago1699720943
0x7374c3Dc...Bf9AC6067
0.43374928 ETH
Deposit179870922023-08-24 20:58:35588 days ago1692910715
0x7374c3Dc...Bf9AC6067
0.275 ETH
Swap Exact ETH F...179714942023-08-22 16:38:23590 days ago1692722303
0x7374c3Dc...Bf9AC6067
2.01122834 ETH
Transfer179714942023-08-22 16:38:23590 days ago1692722303
0x7374c3Dc...Bf9AC6067
2.01122834 ETH
Deposit179477122023-08-19 8:44:35594 days ago1692434675
0x7374c3Dc...Bf9AC6067
0.58599999 ETH
Deposit178440542023-08-04 20:39:35608 days ago1691181575
0x7374c3Dc...Bf9AC6067
1 ETH
Swap Exact ETH F...177579592023-07-23 19:40:11620 days ago1690141211
0x7374c3Dc...Bf9AC6067
2.66728921 ETH
Transfer177579592023-07-23 19:40:11620 days ago1690141211
0x7374c3Dc...Bf9AC6067
2.66728921 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuraBalZaps

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 15 : StrategyZaps.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "SafeERC20.sol";
import "ERC20.sol";
import "StrategyBase.sol";
import "IGenericVault.sol";
import "IUniV2Router.sol";
import "IWETH.sol";

contract AuraBalZaps is AuraBalStrategyBase {
    using SafeERC20 for IERC20;

    address public immutable vault;
    bytes32 private constant BAL_ETH_POOL_ID =
        0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014;
    bytes32 private constant AURABAL_BAL_ETH_BPT_POOL_ID =
        0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249;

    constructor(address _vault) {
        vault = _vault;
    }

    /// @notice Set approvals for the contracts used when swapping & staking
    function setApprovals() external {
        IERC20(BAL_TOKEN).safeApprove(BAL_VAULT, 0);
        IERC20(BAL_TOKEN).safeApprove(BAL_VAULT, type(uint256).max);
        IERC20(WETH_TOKEN).safeApprove(BAL_VAULT, 0);
        IERC20(WETH_TOKEN).safeApprove(BAL_VAULT, type(uint256).max);
        IERC20(AURABAL_TOKEN).safeApprove(BAL_VAULT, 0);
        IERC20(AURABAL_TOKEN).safeApprove(BAL_VAULT, type(uint256).max);
        IERC20(AURABAL_TOKEN).safeApprove(vault, 0);
        IERC20(AURABAL_TOKEN).safeApprove(vault, type(uint256).max);
        IERC20(BAL_ETH_POOL_TOKEN).safeApprove(BAL_VAULT, 0);
        IERC20(BAL_ETH_POOL_TOKEN).safeApprove(BAL_VAULT, type(uint256).max);
        IERC20(BAL_ETH_POOL_TOKEN).safeApprove(AURABAL_PT_DEPOSIT, 0);
        IERC20(BAL_ETH_POOL_TOKEN).safeApprove(
            AURABAL_PT_DEPOSIT,
            type(uint256).max
        );
    }

    /// @notice Deposit from BAL and/or WETH
    /// @param _amounts - the amounts of BAL and WETH to deposit respectively
    /// @param _minAmountOut - min amount of LP tokens expected
    /// @param _to - address to stake on behalf of
    function depositFromUnderlyingAssets(
        uint256[2] calldata _amounts,
        uint256 _minAmountOut,
        address _to,
        bool _lock
    ) external notToZeroAddress(_to) {
        if (_amounts[0] > 0) {
            IERC20(BAL_TOKEN).safeTransferFrom(
                msg.sender,
                address(this),
                _amounts[0]
            );
        }
        if (_amounts[1] > 0) {
            IERC20(WETH_TOKEN).safeTransferFrom(
                msg.sender,
                address(this),
                _amounts[1]
            );
        }
        _addAndDeposit(_amounts, _minAmountOut, _to, _lock);
    }

    function _addAndDeposit(
        uint256[2] memory _amounts,
        uint256 _minAmountOut,
        address _to,
        bool _lock
    ) internal {
        _depositToBalEthPool(
            _amounts[0],
            _amounts[1],
            _lock ? _minAmountOut : 0
        );
        uint256 _bptBalance = IERC20(BAL_ETH_POOL_TOKEN).balanceOf(
            address(this)
        );
        if (_lock) {
            bptDepositor.deposit(_bptBalance, true, address(0));
        } else {
            _swapBptToAuraBal(_bptBalance, _minAmountOut);
        }
        IGenericVault(vault).depositAll(_to);
    }

    /// @notice Deposit into the pounder from ETH
    /// @param _minAmountOut - min amount of lp tokens expected
    /// @param _to - address to stake on behalf of
    function depositFromEth(
        uint256 _minAmountOut,
        address _to,
        bool _lock
    ) external payable notToZeroAddress(_to) {
        require(msg.value > 0, "cheap");
        _depositFromEth(msg.value, _minAmountOut, _to, _lock);
    }

    /// @notice Internal function to deposit ETH to the pounder
    /// @param _amount - amount of ETH
    /// @param _minAmountOut - min amount of lp tokens expected
    /// @param _to - address to stake on behalf of
    function _depositFromEth(
        uint256 _amount,
        uint256 _minAmountOut,
        address _to,
        bool _lock
    ) internal {
        IWETH(WETH_TOKEN).deposit{value: _amount}();
        _addAndDeposit([0, _amount], _minAmountOut, _to, _lock);
    }

    /// @notice Deposit into the pounder from any token via Uni interface
    /// @notice Use at your own risk
    /// @dev Zap contract needs approval for spending of inputToken
    /// @param _amount - min amount of input token
    /// @param _minAmountOut - min amount of cvxCRV expected
    /// @param _router - address of the router to use. e.g. 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F for Sushi
    /// @param _inputToken - address of the token to swap from, needs to have an ETH pair on router used
    /// @param _to - address to stake on behalf of
    function depositViaUniV2EthPair(
        uint256 _amount,
        uint256 _minAmountOut,
        address _router,
        address _inputToken,
        address _to,
        bool _lock
    ) external notToZeroAddress(_to) {
        require(_router != address(0));

        IERC20(_inputToken).safeTransferFrom(
            msg.sender,
            address(this),
            _amount
        );
        address[] memory _path = new address[](2);
        _path[0] = _inputToken;
        _path[1] = WETH_TOKEN;

        IERC20(_inputToken).safeApprove(_router, 0);
        IERC20(_inputToken).safeApprove(_router, _amount);

        IUniV2Router(_router).swapExactTokensForETH(
            _amount,
            1,
            _path,
            address(this),
            block.timestamp + 1
        );
        _depositFromEth(address(this).balance, _minAmountOut, _to, _lock);
    }

    /// @notice Retrieves a user's vault shares and withdraw all
    ///         then converts auraBal back to LP token
    /// @param _amount - amount of shares to retrieve
    /// @return amount of 80ETH-20BAL BPT obtained after the swap
    function _claimAndWithdraw(uint256 _amount) internal returns (uint256) {
        IERC20(vault).safeTransferFrom(msg.sender, address(this), _amount);
        IGenericVault(vault).withdrawAll(address(this));

        IBalancerVault.SingleSwap memory _auraBalSwapParams = IBalancerVault
            .SingleSwap({
                poolId: AURABAL_BAL_ETH_BPT_POOL_ID,
                kind: IBalancerVault.SwapKind.GIVEN_IN,
                assetIn: IAsset(AURABAL_TOKEN),
                assetOut: IAsset(BAL_ETH_POOL_TOKEN),
                amount: IERC20(AURABAL_TOKEN).balanceOf(address(this)),
                userData: new bytes(0)
            });

        return
            balVault.swap(
                _auraBalSwapParams,
                _createSwapFunds(),
                0,
                block.timestamp + 1
            );
    }

    /// @notice Claim as either BAL or WETH/ETH
    /// @param _amount - amount to withdraw
    /// @param _assetIndex - asset to withdraw (0: BAL, 1: ETH)
    /// @param _minAmountOut - minimum amount of underlying tokens expected
    /// @param _to - address to send withdrawn underlying to
    /// @param _useWrappedEth - whether to use WETH or unwrap
    function claimFromVaultAsUnderlying(
        uint256 _amount,
        uint256 _assetIndex,
        uint256 _minAmountOut,
        address _to,
        bool _useWrappedEth
    ) public notToZeroAddress(_to) {
        _claimAndWithdraw(_amount);

        IAsset[] memory _assets = new IAsset[](2);
        _assets[0] = IAsset(BAL_TOKEN);
        _assets[1] = IAsset(_useWrappedEth ? WETH_TOKEN : address(0));

        uint256[] memory _amountsOut = new uint256[](2);
        _amountsOut[0] = _assetIndex == 0 ? _minAmountOut : 0;
        _amountsOut[1] = _assetIndex == 1 ? _minAmountOut : 0;

        balVault.exitPool(
            BAL_ETH_POOL_ID,
            address(this),
            payable(_to),
            IBalancerVault.ExitPoolRequest(
                _assets,
                _amountsOut,
                abi.encode(
                    ExitKind.EXACT_BPT_IN_FOR_ONE_TOKEN_OUT,
                    IERC20(BAL_ETH_POOL_TOKEN).balanceOf(address(this)),
                    _assetIndex
                ),
                false
            )
        );
    }

    /// @notice Claim to any token via a univ2 router
    /// @notice Use at your own risk
    /// @param _amount - amount of uFXS to unstake
    /// @param _minAmountOut - min amount of output token expected
    /// @param _router - address of the router to use. e.g. 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F for Sushi
    /// @param _outputToken - address of the token to swap to
    /// @param _to - address of the final recipient of the swapped tokens
    function claimFromVaultViaUniV2EthPair(
        uint256 _amount,
        uint256 _minAmountOut,
        address _router,
        address _outputToken,
        address _to
    ) public notToZeroAddress(_to) {
        require(_router != address(0));
        claimFromVaultAsUnderlying(_amount, 1, 0, address(this), false);
        address[] memory _path = new address[](2);
        _path[0] = WETH_TOKEN;
        _path[1] = _outputToken;
        IUniV2Router(_router).swapExactETHForTokens{
            value: address(this).balance
        }(_minAmountOut, _path, _to, block.timestamp + 1);
    }

    modifier notToZeroAddress(address _to) {
        require(_to != address(0), "Invalid address!");
        _;
    }
}

File 2 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + 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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

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 15 : Address.sol
// SPDX-License-Identifier: MIT

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;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 15 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 6 of 15 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 8 of 15 : StrategyBase.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "IBasicRewards.sol";
import "IBalancer.sol";
import "IAsset.sol";
import "IBalPtDeposit.sol";

contract AuraBalStrategyBase {
    address public constant AURABAL_PT_DEPOSIT =
        0xeAd792B55340Aa20181A80d6a16db6A0ECd1b827;
    address public constant AURABAL_STAKING =
        0x00A7BA8Ae7bca0B10A32Ea1f8e2a1Da980c6CAd2;
    address public constant BAL_VAULT =
        0xBA12222222228d8Ba445958a75a0704d566BF2C8;

    address public constant BBUSD_TOKEN =
        0x7B50775383d3D6f0215A8F290f2C9e2eEBBEceb2;
    address public constant AURA_TOKEN =
        0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF;
    address public constant AURABAL_TOKEN =
        0x616e8BfA43F920657B3497DBf40D6b1A02D4608d;

    address public constant WETH_TOKEN =
        0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public constant BAL_TOKEN =
        0xba100000625a3754423978a60c9317c58a424e3D;
    address public constant BAL_ETH_POOL_TOKEN =
        0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56;

    bytes32 private constant AURABAL_BAL_ETH_BPT_POOL_ID =
        0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249;
    bytes32 private constant BAL_ETH_POOL_ID =
        0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014;

    IBasicRewards public auraBalStaking = IBasicRewards(AURABAL_STAKING);
    IBalancerVault public balVault = IBalancerVault(BAL_VAULT);
    IBalPtDeposit public bptDepositor = IBalPtDeposit(AURABAL_PT_DEPOSIT);

    /// @notice Deposit BAL and WETH to the BAL-ETH pool
    /// @param _wethAmount - amount of wETH to deposit
    /// @param _balAmount - amount of BAL to deposit
    /// @param _minAmountOut - min amount of BPT expected
    function _depositToBalEthPool(
        uint256 _balAmount,
        uint256 _wethAmount,
        uint256 _minAmountOut
    ) internal {
        IAsset[] memory _assets = new IAsset[](2);
        _assets[0] = IAsset(BAL_TOKEN);
        _assets[1] = IAsset(WETH_TOKEN);

        uint256[] memory _amountsIn = new uint256[](2);
        _amountsIn[0] = _balAmount;
        _amountsIn[1] = _wethAmount;

        balVault.joinPool(
            BAL_ETH_POOL_ID,
            address(this),
            address(this),
            IBalancerVault.JoinPoolRequest(
                _assets,
                _amountsIn,
                abi.encode(
                    JoinKind.EXACT_TOKENS_IN_FOR_BPT_OUT,
                    _amountsIn,
                    _minAmountOut
                ),
                false
            )
        );
    }

    function _swapBptToAuraBal(uint256 _amount, uint256 _minAmountOut)
        internal
        returns (uint256)
    {
        IBalancerVault.SingleSwap memory _auraSwapParams = IBalancerVault
            .SingleSwap({
                poolId: AURABAL_BAL_ETH_BPT_POOL_ID,
                kind: IBalancerVault.SwapKind.GIVEN_IN,
                assetIn: IAsset(BAL_ETH_POOL_TOKEN),
                assetOut: IAsset(AURABAL_TOKEN),
                amount: _amount,
                userData: new bytes(0)
            });

        return
            balVault.swap(
                _auraSwapParams,
                _createSwapFunds(),
                _minAmountOut,
                block.timestamp + 1
            );
    }

    /// @notice Returns a FundManagement struct used for BAL swaps
    function _createSwapFunds()
        internal
        returns (IBalancerVault.FundManagement memory)
    {
        return
            IBalancerVault.FundManagement({
                sender: address(this),
                fromInternalBalance: false,
                recipient: payable(address(this)),
                toInternalBalance: false
            });
    }

    receive() external payable {}
}

File 9 of 15 : IBasicRewards.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.9;

interface IBasicRewards {
    function stakeFor(address, uint256) external returns (bool);

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

    function earned(address) external view returns (uint256);

    function withdrawAll(bool) external returns (bool);

    function withdraw(uint256, bool) external returns (bool);

    function withdrawAndUnwrap(uint256 amount, bool claim)
        external
        returns (bool);

    function getReward() external returns (bool);

    function stake(uint256) external returns (bool);

    function extraRewards(uint256) external view returns (address);

    function exit() external returns (bool);
}

File 10 of 15 : IBalancer.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import {IAsset} from "IAsset.sol";

enum ExitKind {
    EXACT_BPT_IN_FOR_ONE_TOKEN_OUT,
    EXACT_BPT_IN_FOR_TOKENS_OUT,
    BPT_IN_FOR_EXACT_TOKENS_OUT
}

enum JoinKind {
    INIT,
    EXACT_TOKENS_IN_FOR_BPT_OUT,
    TOKEN_IN_FOR_EXACT_BPT_OUT,
    ALL_TOKENS_IN_FOR_EXACT_BPT_OUT,
    ADD_TOKEN // for Managed Pool
}

interface IBalancerVault {
    /**
     * @dev Called by users to join a Pool, which transfers tokens from `sender` into the Pool's balance. This will
     * trigger custom Pool behavior, which will typically grant something in return to `recipient` - often tokenized
     * Pool shares.
     *
     * If the caller is not `sender`, it must be an authorized relayer for them.
     *
     * The `assets` and `maxAmountsIn` arrays must have the same length, and each entry indicates the maximum amount
     * to send for each asset. The amounts to send are decided by the Pool and not the Vault: it just enforces
     * these maximums.
     *
     * If joining a Pool that holds WETH, it is possible to send ETH directly: the Vault will do the wrapping. To enable
     * this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead of the
     * WETH address. Note that it is not possible to combine ETH and WETH in the same join. Any excess ETH will be sent
     * back to the caller (not the sender, which is important for relayers).
     *
     * `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when
     * interacting with Pools that register and deregister tokens frequently. If sending ETH however, the array must be
     * sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the final
     * `assets` array might not be sorted. Pools with no registered tokens cannot be joined.
     *
     * If `fromInternalBalance` is true, the caller's Internal Balance will be preferred: ERC20 transfers will only
     * be made for the difference between the requested amount and Internal Balance (if any). Note that ETH cannot be
     * withdrawn from Internal Balance: attempting to do so will trigger a revert.
     *
     * This causes the Vault to call the `IBasePool.onJoinPool` hook on the Pool's contract, where Pools implement
     * their own custom logic. This typically requires additional information from the user (such as the expected number
     * of Pool shares). This can be encoded in the `userData` argument, which is ignored by the Vault and passed
     * directly to the Pool's contract, as is `recipient`.
     *
     * Emits a `PoolBalanceChanged` event.
     */
    function joinPool(
        bytes32 poolId,
        address sender,
        address recipient,
        JoinPoolRequest memory request
    ) external payable;

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

    /**
     * @dev Called by users to exit a Pool, which transfers tokens from the Pool's balance to `recipient`. This will
     * trigger custom Pool behavior, which will typically ask for something in return from `sender` - often tokenized
     * Pool shares. The amount of tokens that can be withdrawn is limited by the Pool's `cash` balance (see
     * `getPoolTokenInfo`).
     *
     * If the caller is not `sender`, it must be an authorized relayer for them.
     *
     * The `tokens` and `minAmountsOut` arrays must have the same length, and each entry in these indicates the minimum
     * token amount to receive for each token contract. The amounts to send are decided by the Pool and not the Vault:
     * it just enforces these minimums.
     *
     * If exiting a Pool that holds WETH, it is possible to receive ETH directly: the Vault will do the unwrapping. To
     * enable this mechanism, the IAsset sentinel value (the zero address) must be passed in the `assets` array instead
     * of the WETH address. Note that it is not possible to combine ETH and WETH in the same exit.
     *
     * `assets` must have the same length and order as the array returned by `getPoolTokens`. This prevents issues when
     * interacting with Pools that register and deregister tokens frequently. If receiving ETH however, the array must
     * be sorted *before* replacing the WETH address with the ETH sentinel value (the zero address), which means the
     * final `assets` array might not be sorted. Pools with no registered tokens cannot be exited.
     *
     * If `toInternalBalance` is true, the tokens will be deposited to `recipient`'s Internal Balance. Otherwise,
     * an ERC20 transfer will be performed. Note that ETH cannot be deposited to Internal Balance: attempting to
     * do so will trigger a revert.
     *
     * `minAmountsOut` is the minimum amount of tokens the user expects to get out of the Pool, for each token in the
     * `tokens` array. This array must match the Pool's registered tokens.
     *
     * This causes the Vault to call the `IBasePool.onExitPool` hook on the Pool's contract, where Pools implement
     * their own custom logic. This typically requires additional information from the user (such as the expected number
     * of Pool shares to return). This can be encoded in the `userData` argument, which is ignored by the Vault and
     * passed directly to the Pool's contract.
     *
     * Emits a `PoolBalanceChanged` event.
     */
    function exitPool(
        bytes32 poolId,
        address sender,
        address payable recipient,
        ExitPoolRequest memory request
    ) external;

    struct ExitPoolRequest {
        IAsset[] assets;
        uint256[] minAmountsOut;
        bytes userData;
        bool toInternalBalance;
    }

    // Swaps
    //
    // Users can swap tokens with Pools by calling the `swap` and `batchSwap` functions. To do this,
    // they need not trust Pool contracts in any way: all security checks are made by the Vault. They must however be
    // aware of the Pools' pricing algorithms in order to estimate the prices Pools will quote.
    //
    // The `swap` function executes a single swap, while `batchSwap` can perform multiple swaps in sequence.
    // In each individual swap, tokens of one kind are sent from the sender to the Pool (this is the 'token in'),
    // and tokens of another kind are sent from the Pool to the recipient in exchange (this is the 'token out').
    // More complex swaps, such as one token in to multiple tokens out can be achieved by batching together
    // individual swaps.
    //
    // There are two swap kinds:
    //  - 'given in' swaps, where the amount of tokens in (sent to the Pool) is known, and the Pool determines (via the
    // `onSwap` hook) the amount of tokens out (to send to the recipient).
    //  - 'given out' swaps, where the amount of tokens out (received from the Pool) is known, and the Pool determines
    // (via the `onSwap` hook) the amount of tokens in (to receive from the sender).
    //
    // Additionally, it is possible to chain swaps using a placeholder input amount, which the Vault replaces with
    // the calculated output of the previous swap. If the previous swap was 'given in', this will be the calculated
    // tokenOut amount. If the previous swap was 'given out', it will use the calculated tokenIn amount. These extended
    // swaps are known as 'multihop' swaps, since they 'hop' through a number of intermediate tokens before arriving at
    // the final intended token.
    //
    // In all cases, tokens are only transferred in and out of the Vault (or withdrawn from and deposited into Internal
    // Balance) after all individual swaps have been completed, and the net token balance change computed. This makes
    // certain swap patterns, such as multihops, or swaps that interact with the same token pair in multiple Pools, cost
    // much less gas than they would otherwise.
    //
    // It also means that under certain conditions it is possible to perform arbitrage by swapping with multiple
    // Pools in a way that results in net token movement out of the Vault (profit), with no tokens being sent in (only
    // updating the Pool's internal accounting).
    //
    // To protect users from front-running or the market changing rapidly, they supply a list of 'limits' for each token
    // involved in the swap, where either the maximum number of tokens to send (by passing a positive value) or the
    // minimum amount of tokens to receive (by passing a negative value) is specified.
    //
    // Additionally, a 'deadline' timestamp can also be provided, forcing the swap to fail if it occurs after
    // this point in time (e.g. if the transaction failed to be included in a block promptly).
    //
    // If interacting with Pools that hold WETH, it is possible to both send and receive ETH directly: the Vault will do
    // the wrapping and unwrapping. To enable this mechanism, the IAsset sentinel value (the zero address) must be
    // passed in the `assets` array instead of the WETH address. Note that it is possible to combine ETH and WETH in the
    // same swap. Any excess ETH will be sent back to the caller (not the sender, which is relevant for relayers).
    //
    // Finally, Internal Balance can be used when either sending or receiving tokens.

    enum SwapKind {
        GIVEN_IN,
        GIVEN_OUT
    }

    /**
     * @dev Performs a swap with a single Pool.
     *
     * If the swap is 'given in' (the number of tokens to send to the Pool is known), it returns the amount of tokens
     * taken from the Pool, which must be greater than or equal to `limit`.
     *
     * If the swap is 'given out' (the number of tokens to take from the Pool is known), it returns the amount of tokens
     * sent to the Pool, which must be less than or equal to `limit`.
     *
     * Internal Balance usage and the recipient are determined by the `funds` struct.
     *
     * Emits a `Swap` event.
     */
    function swap(
        SingleSwap memory singleSwap,
        FundManagement memory funds,
        uint256 limit,
        uint256 deadline
    ) external payable returns (uint256);

    /**
     * @dev Data for a single swap executed by `swap`. `amount` is either `amountIn` or `amountOut` depending on
     * the `kind` value.
     *
     * `assetIn` and `assetOut` are either token addresses, or the IAsset sentinel value for ETH (the zero address).
     * Note that Pools never interact with ETH directly: it will be wrapped to or unwrapped from WETH by the Vault.
     *
     * The `userData` field is ignored by the Vault, but forwarded to the Pool in the `onSwap` hook, and may be
     * used to extend swap behavior.
     */
    struct SingleSwap {
        bytes32 poolId;
        SwapKind kind;
        IAsset assetIn;
        IAsset assetOut;
        uint256 amount;
        bytes userData;
    }

    /**
     * @dev Simulates a call to `batchSwap`, returning an array of Vault asset deltas. Calls to `swap` cannot be
     * simulated directly, but an equivalent `batchSwap` call can and will yield the exact same result.
     *
     * Each element in the array corresponds to the asset at the same index, and indicates the number of tokens (or ETH)
     * the Vault would take from the sender (if positive) or send to the recipient (if negative). The arguments it
     * receives are the same that an equivalent `batchSwap` call would receive.
     *
     * Unlike `batchSwap`, this function performs no checks on the sender or recipient field in the `funds` struct.
     * This makes it suitable to be called by off-chain applications via eth_call without needing to hold tokens,
     * approve them for the Vault, or even know a user's address.
     *
     * Note that this function is not 'view' (due to implementation details): the client code must explicitly execute
     * eth_call instead of eth_sendTransaction.
     */
    function queryBatchSwap(
        SwapKind kind,
        BatchSwapStep[] memory swaps,
        IAsset[] memory assets,
        FundManagement memory funds
    ) external returns (int256[] memory assetDeltas);

    /**
     * @dev Performs a series of swaps with one or multiple Pools. In each individual swap, the caller determines either
     * the amount of tokens sent to or received from the Pool, depending on the `kind` value.
     *
     * Returns an array with the net Vault asset balance deltas. Positive amounts represent tokens (or ETH) sent to the
     * Vault, and negative amounts represent tokens (or ETH) sent by the Vault. Each delta corresponds to the asset at
     * the same index in the `assets` array.
     *
     * Swaps are executed sequentially, in the order specified by the `swaps` array. Each array element describes a
     * Pool, the token to be sent to this Pool, the token to receive from it, and an amount that is either `amountIn` or
     * `amountOut` depending on the swap kind.
     *
     * Multihop swaps can be executed by passing an `amount` value of zero for a swap. This will cause the amount in/out
     * of the previous swap to be used as the amount in for the current one. In a 'given in' swap, 'tokenIn' must equal
     * the previous swap's `tokenOut`. For a 'given out' swap, `tokenOut` must equal the previous swap's `tokenIn`.
     *
     * The `assets` array contains the addresses of all assets involved in the swaps. These are either token addresses,
     * or the IAsset sentinel value for ETH (the zero address). Each entry in the `swaps` array specifies tokens in and
     * out by referencing an index in `assets`. Note that Pools never interact with ETH directly: it will be wrapped to
     * or unwrapped from WETH by the Vault.
     *
     * Internal Balance usage, sender, and recipient are determined by the `funds` struct. The `limits` array specifies
     * the minimum or maximum amount of each token the vault is allowed to transfer.
     *
     * `batchSwap` can be used to make a single swap, like `swap` does, but doing so requires more gas than the
     * equivalent `swap` call.
     *
     * Emits `Swap` events.
     */
    function batchSwap(
        SwapKind kind,
        BatchSwapStep[] memory swaps,
        IAsset[] memory assets,
        FundManagement memory funds,
        int256[] memory limits,
        uint256 deadline
    ) external payable returns (int256[] memory);

    /**
     * @dev Data for each individual swap executed by `batchSwap`. The asset in and out fields are indexes into the
     * `assets` array passed to that function, and ETH assets are converted to WETH.
     *
     * If `amount` is zero, the multihop mechanism is used to determine the actual amount based on the amount in/out
     * from the previous swap, depending on the swap kind.
     *
     * The `userData` field is ignored by the Vault, but forwarded to the Pool in the `onSwap` hook, and may be
     * used to extend swap behavior.
     */
    struct BatchSwapStep {
        bytes32 poolId;
        uint256 assetInIndex;
        uint256 assetOutIndex;
        uint256 amount;
        bytes userData;
    }

    /**
     * @dev All tokens in a swap are either sent from the `sender` account to the Vault, or from the Vault to the
     * `recipient` account.
     *
     * If the caller is not `sender`, it must be an authorized relayer for them.
     *
     * If `fromInternalBalance` is true, the `sender`'s Internal Balance will be preferred, performing an ERC20
     * transfer for the difference between the requested amount and the User's Internal Balance (if any). The `sender`
     * must have allowed the Vault to use their tokens via `IERC20.approve()`. This matches the behavior of
     * `joinPool`.
     *
     * If `toInternalBalance` is true, tokens will be deposited to `recipient`'s internal balance instead of
     * transferred. This matches the behavior of `exitPool`.
     *
     * Note that ETH cannot be deposited to or withdrawn from Internal Balance: attempting to do so will trigger a
     * revert.
     */
    struct FundManagement {
        address sender;
        bool fromInternalBalance;
        address payable recipient;
        bool toInternalBalance;
    }
}

File 11 of 15 : IAsset.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/**
 * @dev This is an empty interface used to represent either ERC20-conforming token contracts or ETH (using the zero
 * address sentinel value). We're just relying on the fact that `interface` can be used to declare new address-like
 * types.
 *
 * This concept is unrelated to a Pool's Asset Managers.
 */
interface IAsset {
    // solhint-disable-previous-line no-empty-blocks
}

File 12 of 15 : IBalPtDeposit.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IBalPtDeposit {
    function deposit(
        uint256 _amount,
        bool _lock,
        address _stakeAddress
    ) external;
}

File 13 of 15 : IGenericVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IGenericVault {
    function withdraw(address _to, uint256 _shares)
        external
        returns (uint256 withdrawn);

    function withdrawAll(address _to) external returns (uint256 withdrawn);

    function depositAll(address _to) external returns (uint256 _shares);

    function deposit(address _to, uint256 _amount)
        external
        returns (uint256 _shares);

    function harvest() external;

    function balanceOfUnderlying(address user)
        external
        view
        returns (uint256 amount);

    function totalUnderlying() external view returns (uint256 total);

    function totalSupply() external view returns (uint256 total);

    function underlying() external view returns (address);

    function strategy() external view returns (address);

    function platform() external view returns (address);

    function setPlatform(address _platform) external;

    function setPlatformFee(uint256 _fee) external;

    function setCallIncentive(uint256 _incentive) external;

    function setWithdrawalPenalty(uint256 _penalty) external;

    function setApprovals() external;

    function callIncentive() external view returns (uint256);

    function platformFee() external view returns (uint256);
}

File 14 of 15 : IUniV2Router.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IUniV2Router {
    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function getAmountsOut(uint256 amountIn, address[] memory path)
        external
        view
        returns (uint256[] memory amounts);
}

File 15 of 15 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

interface IWETH {
    function deposit() external payable;

    function transfer(address to, uint256 value) external returns (bool);

    function withdraw(uint256) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AURABAL_PT_DEPOSIT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AURABAL_STAKING","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AURABAL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AURA_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAL_ETH_POOL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAL_VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BBUSD_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auraBalStaking","outputs":[{"internalType":"contract IBasicRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balVault","outputs":[{"internalType":"contract IBalancerVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bptDepositor","outputs":[{"internalType":"contract IBalPtDeposit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_assetIndex","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_useWrappedEth","type":"bool"}],"name":"claimFromVaultAsUnderlying","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_outputToken","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"claimFromVaultViaUniV2EthPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"depositFromEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_amounts","type":"uint256[2]"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"depositFromUnderlyingAssets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_inputToken","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"depositViaUniV2EthPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052600080546001600160a01b031990811672a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad21790915560018054821673ba12222222228d8ba445958a75a0704d566bf2c81790556002805490911673ead792b55340aa20181a80d6a16db6a0ecd1b82717905534801561007557600080fd5b506040516200212638038062002126833981016040819052610096916100a7565b6001600160a01b03166080526100d7565b6000602082840312156100b957600080fd5b81516001600160a01b03811681146100d057600080fd5b9392505050565b60805161201062000116600039600081816103c301528181610a3401528181610a7401528181610f3701528181610fca015261100701526120106000f3fe6080604052600436106101185760003560e01c80638702ca5c116100a0578063c584d40e11610064578063c584d40e14610326578063ce0744ed1461034e578063d1e1a86714610376578063fb341ae01461039e578063fbfa77cf146103b157600080fd5b80638702ca5c146102825780638757b15b146102a25780638a5a167e146102b75780639ccd9e9d146102df578063aee26b181461030657600080fd5b80634128f86e116100e75780634128f86e146101da578063415d8d29146101fa578063749ef7521461021a57806377aba2131461023a5780637c6b513f1461025a57600080fd5b80630762a3dd1461012457806324d9683d146101685780632abc2a991461018a57806337d277d4146101b257600080fd5b3661011f57005b600080fd5b34801561013057600080fd5b5061014c735c6ee304399dbdb9c8ef030ab642b10820db8f5681565b6040516001600160a01b03909116815260200160405180910390f35b34801561017457600080fd5b50610188610183366004611940565b6103e5565b005b34801561019657600080fd5b5061014c73ba100000625a3754423978a60c9317c58a424e3d81565b3480156101be57600080fd5b5061014c73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156101e657600080fd5b5060005461014c906001600160a01b031681565b34801561020657600080fd5b50610188610215366004611994565b6104a1565b34801561022657600080fd5b5060025461014c906001600160a01b031681565b34801561024657600080fd5b5060015461014c906001600160a01b031681565b34801561026657600080fd5b5061014c737b50775383d3d6f0215a8f290f2c9e2eebbeceb281565b34801561028e57600080fd5b5061018861029d3660046119e8565b61076d565b3480156102ae57600080fd5b506101886108df565b3480156102c357600080fd5b5061014c73616e8bfa43f920657b3497dbf40d6b1a02d4608d81565b3480156102eb57600080fd5b5061014c72a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad281565b34801561031257600080fd5b50610188610321366004611a3f565b610b6f565b34801561033257600080fd5b5061014c73ba12222222228d8ba445958a75a0704d566bf2c881565b34801561035a57600080fd5b5061014c73ead792b55340aa20181a80d6a16db6a0ecd1b82781565b34801561038257600080fd5b5061014c73c0c293ce456ff0ed870add98a0828dd4d2903dbf81565b6101886103ac366004611aa9565b610d14565b3480156103bd57600080fd5b5061014c7f000000000000000000000000000000000000000000000000000000000000000081565b816001600160a01b0381166104155760405162461bcd60e51b815260040161040c90611ae9565b60405180910390fd5b84351561043d5761043d73ba100000625a3754423978a60c9317c58a424e3d33308835610d85565b60208501351561046b5761046b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233306020890135610d85565b60408051808201825261049a918790600290839083908082843760009201919091525087915086905085610df0565b5050505050565b816001600160a01b0381166104c85760405162461bcd60e51b815260040161040c90611ae9565b6104d186610fbb565b5060408051600280825260608201835260009260208301908036833701905050905073ba100000625a3754423978a60c9317c58a424e3d8160008151811061051b5761051b611b13565b60200260200101906001600160a01b031690816001600160a01b0316815250508261054757600061055d565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b8160018151811061057057610570611b13565b6001600160a01b0392909216602092830291909101820152604080516002808252606082018352600093919290918301908036833701905050905086156105b85760006105ba565b855b816000815181106105cd576105cd611b13565b602002602001018181525050866001146105e85760006105ea565b855b816001815181106105fd576105fd611b13565b6020908102919091018101919091526001546040805160808101825285815292830184905280516370a0823160e01b815230600482018190526001600160a01b0390931693638bdb3913937f5c6ee304399dbdb9c8ef030ab642b10820db8f560002000000000000000000149390928b9291820190600090735c6ee304399dbdb9c8ef030ab642b10820db8f56906370a082319060240160206040518083038186803b1580156106ac57600080fd5b505afa1580156106c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e49190611b3f565b8f6040516020016106f793929190611b6e565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016107319493929190611cc0565b600060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050505050505050505050565b806001600160a01b0381166107945760405162461bcd60e51b815260040161040c90611ae9565b6001600160a01b0384166107a757600080fd5b6107b786600160003060006104a1565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160008151811061080057610800611b13565b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061083457610834611b13565b6001600160a01b0392831660209182029290920101528516637ff36ab547888487610860426001611cfc565b6040518663ffffffff1660e01b815260040161087f9493929190611d5b565b6000604051808303818588803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611d90565b5050505050505050565b61091373ba100000625a3754423978a60c9317c58a424e3d73ba12222222228d8ba445958a75a0704d566bf2c86000611220565b61094873ba100000625a3754423978a60c9317c58a424e3d73ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b61097c73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ba12222222228d8ba445958a75a0704d566bf2c86000611220565b6109b173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b6109e573616e8bfa43f920657b3497dbf40d6b1a02d4608d73ba12222222228d8ba445958a75a0704d566bf2c86000611220565b610a1a73616e8bfa43f920657b3497dbf40d6b1a02d4608d73ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b610a5a73616e8bfa43f920657b3497dbf40d6b1a02d4608d7f00000000000000000000000000000000000000000000000000000000000000006000611220565b610a9b73616e8bfa43f920657b3497dbf40d6b1a02d4608d7f0000000000000000000000000000000000000000000000000000000000000000600019611220565b610acf735c6ee304399dbdb9c8ef030ab642b10820db8f5673ba12222222228d8ba445958a75a0704d566bf2c86000611220565b610b04735c6ee304399dbdb9c8ef030ab642b10820db8f5673ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b610b38735c6ee304399dbdb9c8ef030ab642b10820db8f5673ead792b55340aa20181a80d6a16db6a0ecd1b8276000611220565b610b6d735c6ee304399dbdb9c8ef030ab642b10820db8f5673ead792b55340aa20181a80d6a16db6a0ecd1b827600019611220565b565b816001600160a01b038116610b965760405162461bcd60e51b815260040161040c90611ae9565b6001600160a01b038516610ba957600080fd5b610bbe6001600160a01b03851633308a610d85565b6040805160028082526060820183526000926020830190803683370190505090508481600081518110610bf357610bf3611b13565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610c3b57610c3b611b13565b6001600160a01b039283166020918202929092010152610c5f908616876000611220565b610c736001600160a01b038616878a611220565b6001600160a01b0386166318cbafe58960018430610c914284611cfc565b6040518663ffffffff1660e01b8152600401610cb1959493929190611e4e565b600060405180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d079190810190611d90565b506108d547888686611349565b816001600160a01b038116610d3b5760405162461bcd60e51b815260040161040c90611ae9565b60003411610d735760405162461bcd60e51b8152602060048201526005602482015264063686561760dc1b604482015260640161040c565b610d7f34858585611349565b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610d7f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526113d2565b83516020850151610e0e919083610e085760006114a4565b856114a4565b6040516370a0823160e01b8152306004820152600090735c6ee304399dbdb9c8ef030ab642b10820db8f56906370a082319060240160206040518083038186803b158015610e5b57600080fd5b505afa158015610e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e939190611b3f565b90508115610f0c5760025460405163203b5c7960e21b81526004810183905260016024820152600060448201526001600160a01b03909116906380ed71e490606401600060405180830381600087803b158015610eef57600080fd5b505af1158015610f03573d6000803e3d6000fd5b50505050610f18565b610f16818561169a565b505b604051639f0d5f2760e01b81526001600160a01b0384811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639f0d5f2790602401602060405180830381600087803b158015610f7b57600080fd5b505af1158015610f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb39190611b3f565b505050505050565b6000610ff26001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610d85565b604051630fa09e6360e41b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063fa09e63090602401602060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108b9190611b3f565b506040805160c0810182527f3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249815260006020820181905273616e8bfa43f920657b3497dbf40d6b1a02d4608d828401819052735c6ee304399dbdb9c8ef030ab642b10820db8f56606084015292516370a0823160e01b8152306004820152909260808301916370a082319060240160206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190611b3f565b8152604080516000815260208082019092529101526001549091506001600160a01b03166352bbbe298261119b6117bd565b60006111a8426001611cfc565b6040518563ffffffff1660e01b81526004016111c79493929190611ef1565b602060405180830381600087803b1580156111e157600080fd5b505af11580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112199190611b3f565b9392505050565b8015806112a95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561126f57600080fd5b505afa158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190611b3f565b155b6113145760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161040c565b6040516001600160a01b03831660248201526044810182905261134490849063095ea7b360e01b90606401610db9565b505050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561139857600080fd5b505af11580156113ac573d6000803e3d6000fd5b5050505050610d7f60405180604001604052806000815260200186815250848484610df0565b6000611427826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118089092919063ffffffff16565b80519091501561134457808060200190518101906114459190611f55565b6113445760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b60408051600280825260608201835260009260208301908036833701905050905073ba100000625a3754423978a60c9317c58a424e3d816000815181106114ed576114ed611b13565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061153557611535611b13565b6001600160a01b03929092166020928302919091018201526040805160028082526060820183526000939192909183019080368337019050509050848160008151811061158457611584611b13565b60200260200101818152505083816001815181106115a4576115a4611b13565b602002602001018181525050600160009054906101000a90046001600160a01b03166001600160a01b031663b95cac287f5c6ee304399dbdb9c8ef030ab642b10820db8f5600020000000000000000001460001b303060405180608001604052808881526020018781526020016001888b60405160200161162793929190611f72565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016116619493929190611cc0565b600060405180830381600087803b15801561167b57600080fd5b505af115801561168f573d6000803e3d6000fd5b505050505050505050565b6040805160c0810182527f3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249815260006020808301829052735c6ee304399dbdb9c8ef030ab642b10820db8f568385015273616e8bfa43f920657b3497dbf40d6b1a02d4608d606084015260808301869052835182815290810190935260a08201929092526001546001600160a01b03166352bbbe29826117386117bd565b86611744426001611cfc565b6040518563ffffffff1660e01b81526004016117639493929190611ef1565b602060405180830381600087803b15801561177d57600080fd5b505af1158015611791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b59190611b3f565b949350505050565b60408051608081018252600080825260208201819052918101829052606081019190915250604080516080810182523080825260006020830181905292820152606081019190915290565b60606117b5848460008585843b6118615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b600080866001600160a01b0316858760405161187d9190611fab565b60006040518083038185875af1925050503d80600081146118ba576040519150601f19603f3d011682016040523d82523d6000602084013e6118bf565b606091505b50915091506118cf8282866118da565b979650505050505050565b606083156118e9575081611219565b8251156118f95782518084602001fd5b8160405162461bcd60e51b815260040161040c9190611fc7565b80356001600160a01b038116811461192a57600080fd5b919050565b801515811461193d57600080fd5b50565b60008060008060a0858703121561195657600080fd5b604085018681111561196757600080fd5b85945035925061197960608501611913565b915060808501356119898161192f565b939692955090935050565b600080600080600060a086880312156119ac57600080fd5b8535945060208601359350604086013592506119ca60608701611913565b915060808601356119da8161192f565b809150509295509295909350565b600080600080600060a08688031215611a0057600080fd5b8535945060208601359350611a1760408701611913565b9250611a2560608701611913565b9150611a3360808701611913565b90509295509295909350565b60008060008060008060c08789031215611a5857600080fd5b8635955060208701359450611a6f60408801611913565b9350611a7d60608801611913565b9250611a8b60808801611913565b915060a0870135611a9b8161192f565b809150509295509295509295565b600080600060608486031215611abe57600080fd5b83359250611ace60208501611913565b91506040840135611ade8161192f565b809150509250925092565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060208284031215611b5157600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b6060810160038510611b8257611b82611b58565b938152602081019290925260409091015290565b600081518084526020808501945080840160005b83811015611bc657815187529582019590820190600101611baa565b509495945050505050565b60005b83811015611bec578181015183820152602001611bd4565b83811115610d7f5750506000910152565b60008151808452611c15816020860160208601611bd1565b601f01601f19169290920160200192915050565b8051608080845281519084018190526000916020919082019060a0860190845b81811015611c6e5783516001600160a01b031683529284019291840191600101611c49565b505082850151915085810383870152611c878183611b96565b9250505060408301518482036040860152611ca28282611bfd565b9150506060830151611cb8606086018215159052565b509392505050565b8481526001600160a01b03848116602083015283166040820152608060608201819052600090611cf290830184611c29565b9695505050505050565b60008219821115611d1d57634e487b7160e01b600052601160045260246000fd5b500190565b600081518084526020808501945080840160005b83811015611bc65781516001600160a01b031687529582019590820190600101611d36565b848152608060208201526000611d746080830186611d22565b6001600160a01b03949094166040830152506060015292915050565b60006020808385031215611da357600080fd5b825167ffffffffffffffff80821115611dbb57600080fd5b818501915085601f830112611dcf57600080fd5b815181811115611de157611de1611b29565b8060051b604051601f19603f83011681018181108582111715611e0657611e06611b29565b604052918252848201925083810185019188831115611e2457600080fd5b938501935b82851015611e4257845184529385019392850192611e29565b98975050505050505050565b85815284602082015260a060408201526000611e6d60a0830186611d22565b6001600160a01b0394909416606083015250608001529392505050565b805182526000602082015160028110611ea557611ea5611b58565b80602085015250604082015160018060a01b03808216604086015280606085015116606086015250506080820151608084015260a082015160c060a08501526117b560c0850182611bfd565b60e081526000611f0460e0830187611e8a565b9050611f43602083018680516001600160a01b039081168352602080830151151590840152604080830151909116908301526060908101511515910152565b60a082019390935260c0015292915050565b600060208284031215611f6757600080fd5b81516112198161192f565b600060058510611f8457611f84611b58565b84825260606020830152611f9b6060830185611b96565b9050826040830152949350505050565b60008251611fbd818460208701611bd1565b9190910192915050565b6020815260006112196020830184611bfd56fea26469706673582212208ef9e49635ec65bdea03e093851d2d790d9961ad2c60bf3e7415204cb281871464736f6c634300080900330000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd67

Deployed Bytecode

0x6080604052600436106101185760003560e01c80638702ca5c116100a0578063c584d40e11610064578063c584d40e14610326578063ce0744ed1461034e578063d1e1a86714610376578063fb341ae01461039e578063fbfa77cf146103b157600080fd5b80638702ca5c146102825780638757b15b146102a25780638a5a167e146102b75780639ccd9e9d146102df578063aee26b181461030657600080fd5b80634128f86e116100e75780634128f86e146101da578063415d8d29146101fa578063749ef7521461021a57806377aba2131461023a5780637c6b513f1461025a57600080fd5b80630762a3dd1461012457806324d9683d146101685780632abc2a991461018a57806337d277d4146101b257600080fd5b3661011f57005b600080fd5b34801561013057600080fd5b5061014c735c6ee304399dbdb9c8ef030ab642b10820db8f5681565b6040516001600160a01b03909116815260200160405180910390f35b34801561017457600080fd5b50610188610183366004611940565b6103e5565b005b34801561019657600080fd5b5061014c73ba100000625a3754423978a60c9317c58a424e3d81565b3480156101be57600080fd5b5061014c73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156101e657600080fd5b5060005461014c906001600160a01b031681565b34801561020657600080fd5b50610188610215366004611994565b6104a1565b34801561022657600080fd5b5060025461014c906001600160a01b031681565b34801561024657600080fd5b5060015461014c906001600160a01b031681565b34801561026657600080fd5b5061014c737b50775383d3d6f0215a8f290f2c9e2eebbeceb281565b34801561028e57600080fd5b5061018861029d3660046119e8565b61076d565b3480156102ae57600080fd5b506101886108df565b3480156102c357600080fd5b5061014c73616e8bfa43f920657b3497dbf40d6b1a02d4608d81565b3480156102eb57600080fd5b5061014c72a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad281565b34801561031257600080fd5b50610188610321366004611a3f565b610b6f565b34801561033257600080fd5b5061014c73ba12222222228d8ba445958a75a0704d566bf2c881565b34801561035a57600080fd5b5061014c73ead792b55340aa20181a80d6a16db6a0ecd1b82781565b34801561038257600080fd5b5061014c73c0c293ce456ff0ed870add98a0828dd4d2903dbf81565b6101886103ac366004611aa9565b610d14565b3480156103bd57600080fd5b5061014c7f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd6781565b816001600160a01b0381166104155760405162461bcd60e51b815260040161040c90611ae9565b60405180910390fd5b84351561043d5761043d73ba100000625a3754423978a60c9317c58a424e3d33308835610d85565b60208501351561046b5761046b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233306020890135610d85565b60408051808201825261049a918790600290839083908082843760009201919091525087915086905085610df0565b5050505050565b816001600160a01b0381166104c85760405162461bcd60e51b815260040161040c90611ae9565b6104d186610fbb565b5060408051600280825260608201835260009260208301908036833701905050905073ba100000625a3754423978a60c9317c58a424e3d8160008151811061051b5761051b611b13565b60200260200101906001600160a01b031690816001600160a01b0316815250508261054757600061055d565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b8160018151811061057057610570611b13565b6001600160a01b0392909216602092830291909101820152604080516002808252606082018352600093919290918301908036833701905050905086156105b85760006105ba565b855b816000815181106105cd576105cd611b13565b602002602001018181525050866001146105e85760006105ea565b855b816001815181106105fd576105fd611b13565b6020908102919091018101919091526001546040805160808101825285815292830184905280516370a0823160e01b815230600482018190526001600160a01b0390931693638bdb3913937f5c6ee304399dbdb9c8ef030ab642b10820db8f560002000000000000000000149390928b9291820190600090735c6ee304399dbdb9c8ef030ab642b10820db8f56906370a082319060240160206040518083038186803b1580156106ac57600080fd5b505afa1580156106c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e49190611b3f565b8f6040516020016106f793929190611b6e565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016107319493929190611cc0565b600060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050505050505050505050565b806001600160a01b0381166107945760405162461bcd60e51b815260040161040c90611ae9565b6001600160a01b0384166107a757600080fd5b6107b786600160003060006104a1565b60408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160008151811061080057610800611b13565b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061083457610834611b13565b6001600160a01b0392831660209182029290920101528516637ff36ab547888487610860426001611cfc565b6040518663ffffffff1660e01b815260040161087f9493929190611d5b565b6000604051808303818588803b15801561089857600080fd5b505af11580156108ac573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611d90565b5050505050505050565b61091373ba100000625a3754423978a60c9317c58a424e3d73ba12222222228d8ba445958a75a0704d566bf2c86000611220565b61094873ba100000625a3754423978a60c9317c58a424e3d73ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b61097c73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ba12222222228d8ba445958a75a0704d566bf2c86000611220565b6109b173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b6109e573616e8bfa43f920657b3497dbf40d6b1a02d4608d73ba12222222228d8ba445958a75a0704d566bf2c86000611220565b610a1a73616e8bfa43f920657b3497dbf40d6b1a02d4608d73ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b610a5a73616e8bfa43f920657b3497dbf40d6b1a02d4608d7f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd676000611220565b610a9b73616e8bfa43f920657b3497dbf40d6b1a02d4608d7f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd67600019611220565b610acf735c6ee304399dbdb9c8ef030ab642b10820db8f5673ba12222222228d8ba445958a75a0704d566bf2c86000611220565b610b04735c6ee304399dbdb9c8ef030ab642b10820db8f5673ba12222222228d8ba445958a75a0704d566bf2c8600019611220565b610b38735c6ee304399dbdb9c8ef030ab642b10820db8f5673ead792b55340aa20181a80d6a16db6a0ecd1b8276000611220565b610b6d735c6ee304399dbdb9c8ef030ab642b10820db8f5673ead792b55340aa20181a80d6a16db6a0ecd1b827600019611220565b565b816001600160a01b038116610b965760405162461bcd60e51b815260040161040c90611ae9565b6001600160a01b038516610ba957600080fd5b610bbe6001600160a01b03851633308a610d85565b6040805160028082526060820183526000926020830190803683370190505090508481600081518110610bf357610bf3611b13565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610c3b57610c3b611b13565b6001600160a01b039283166020918202929092010152610c5f908616876000611220565b610c736001600160a01b038616878a611220565b6001600160a01b0386166318cbafe58960018430610c914284611cfc565b6040518663ffffffff1660e01b8152600401610cb1959493929190611e4e565b600060405180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d079190810190611d90565b506108d547888686611349565b816001600160a01b038116610d3b5760405162461bcd60e51b815260040161040c90611ae9565b60003411610d735760405162461bcd60e51b8152602060048201526005602482015264063686561760dc1b604482015260640161040c565b610d7f34858585611349565b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610d7f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526113d2565b83516020850151610e0e919083610e085760006114a4565b856114a4565b6040516370a0823160e01b8152306004820152600090735c6ee304399dbdb9c8ef030ab642b10820db8f56906370a082319060240160206040518083038186803b158015610e5b57600080fd5b505afa158015610e6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e939190611b3f565b90508115610f0c5760025460405163203b5c7960e21b81526004810183905260016024820152600060448201526001600160a01b03909116906380ed71e490606401600060405180830381600087803b158015610eef57600080fd5b505af1158015610f03573d6000803e3d6000fd5b50505050610f18565b610f16818561169a565b505b604051639f0d5f2760e01b81526001600160a01b0384811660048301527f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd671690639f0d5f2790602401602060405180830381600087803b158015610f7b57600080fd5b505af1158015610f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb39190611b3f565b505050505050565b6000610ff26001600160a01b037f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd6716333085610d85565b604051630fa09e6360e41b81523060048201527f0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd676001600160a01b03169063fa09e63090602401602060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108b9190611b3f565b506040805160c0810182527f3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249815260006020820181905273616e8bfa43f920657b3497dbf40d6b1a02d4608d828401819052735c6ee304399dbdb9c8ef030ab642b10820db8f56606084015292516370a0823160e01b8152306004820152909260808301916370a082319060240160206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190611b3f565b8152604080516000815260208082019092529101526001549091506001600160a01b03166352bbbe298261119b6117bd565b60006111a8426001611cfc565b6040518563ffffffff1660e01b81526004016111c79493929190611ef1565b602060405180830381600087803b1580156111e157600080fd5b505af11580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112199190611b3f565b9392505050565b8015806112a95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561126f57600080fd5b505afa158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a79190611b3f565b155b6113145760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161040c565b6040516001600160a01b03831660248201526044810182905261134490849063095ea7b360e01b90606401610db9565b505050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561139857600080fd5b505af11580156113ac573d6000803e3d6000fd5b5050505050610d7f60405180604001604052806000815260200186815250848484610df0565b6000611427826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118089092919063ffffffff16565b80519091501561134457808060200190518101906114459190611f55565b6113445760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161040c565b60408051600280825260608201835260009260208301908036833701905050905073ba100000625a3754423978a60c9317c58a424e3d816000815181106114ed576114ed611b13565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061153557611535611b13565b6001600160a01b03929092166020928302919091018201526040805160028082526060820183526000939192909183019080368337019050509050848160008151811061158457611584611b13565b60200260200101818152505083816001815181106115a4576115a4611b13565b602002602001018181525050600160009054906101000a90046001600160a01b03166001600160a01b031663b95cac287f5c6ee304399dbdb9c8ef030ab642b10820db8f5600020000000000000000001460001b303060405180608001604052808881526020018781526020016001888b60405160200161162793929190611f72565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016116619493929190611cc0565b600060405180830381600087803b15801561167b57600080fd5b505af115801561168f573d6000803e3d6000fd5b505050505050505050565b6040805160c0810182527f3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249815260006020808301829052735c6ee304399dbdb9c8ef030ab642b10820db8f568385015273616e8bfa43f920657b3497dbf40d6b1a02d4608d606084015260808301869052835182815290810190935260a08201929092526001546001600160a01b03166352bbbe29826117386117bd565b86611744426001611cfc565b6040518563ffffffff1660e01b81526004016117639493929190611ef1565b602060405180830381600087803b15801561177d57600080fd5b505af1158015611791573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b59190611b3f565b949350505050565b60408051608081018252600080825260208201819052918101829052606081019190915250604080516080810182523080825260006020830181905292820152606081019190915290565b60606117b5848460008585843b6118615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161040c565b600080866001600160a01b0316858760405161187d9190611fab565b60006040518083038185875af1925050503d80600081146118ba576040519150601f19603f3d011682016040523d82523d6000602084013e6118bf565b606091505b50915091506118cf8282866118da565b979650505050505050565b606083156118e9575081611219565b8251156118f95782518084602001fd5b8160405162461bcd60e51b815260040161040c9190611fc7565b80356001600160a01b038116811461192a57600080fd5b919050565b801515811461193d57600080fd5b50565b60008060008060a0858703121561195657600080fd5b604085018681111561196757600080fd5b85945035925061197960608501611913565b915060808501356119898161192f565b939692955090935050565b600080600080600060a086880312156119ac57600080fd5b8535945060208601359350604086013592506119ca60608701611913565b915060808601356119da8161192f565b809150509295509295909350565b600080600080600060a08688031215611a0057600080fd5b8535945060208601359350611a1760408701611913565b9250611a2560608701611913565b9150611a3360808701611913565b90509295509295909350565b60008060008060008060c08789031215611a5857600080fd5b8635955060208701359450611a6f60408801611913565b9350611a7d60608801611913565b9250611a8b60808801611913565b915060a0870135611a9b8161192f565b809150509295509295509295565b600080600060608486031215611abe57600080fd5b83359250611ace60208501611913565b91506040840135611ade8161192f565b809150509250925092565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060208284031215611b5157600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b6060810160038510611b8257611b82611b58565b938152602081019290925260409091015290565b600081518084526020808501945080840160005b83811015611bc657815187529582019590820190600101611baa565b509495945050505050565b60005b83811015611bec578181015183820152602001611bd4565b83811115610d7f5750506000910152565b60008151808452611c15816020860160208601611bd1565b601f01601f19169290920160200192915050565b8051608080845281519084018190526000916020919082019060a0860190845b81811015611c6e5783516001600160a01b031683529284019291840191600101611c49565b505082850151915085810383870152611c878183611b96565b9250505060408301518482036040860152611ca28282611bfd565b9150506060830151611cb8606086018215159052565b509392505050565b8481526001600160a01b03848116602083015283166040820152608060608201819052600090611cf290830184611c29565b9695505050505050565b60008219821115611d1d57634e487b7160e01b600052601160045260246000fd5b500190565b600081518084526020808501945080840160005b83811015611bc65781516001600160a01b031687529582019590820190600101611d36565b848152608060208201526000611d746080830186611d22565b6001600160a01b03949094166040830152506060015292915050565b60006020808385031215611da357600080fd5b825167ffffffffffffffff80821115611dbb57600080fd5b818501915085601f830112611dcf57600080fd5b815181811115611de157611de1611b29565b8060051b604051601f19603f83011681018181108582111715611e0657611e06611b29565b604052918252848201925083810185019188831115611e2457600080fd5b938501935b82851015611e4257845184529385019392850192611e29565b98975050505050505050565b85815284602082015260a060408201526000611e6d60a0830186611d22565b6001600160a01b0394909416606083015250608001529392505050565b805182526000602082015160028110611ea557611ea5611b58565b80602085015250604082015160018060a01b03808216604086015280606085015116606086015250506080820151608084015260a082015160c060a08501526117b560c0850182611bfd565b60e081526000611f0460e0830187611e8a565b9050611f43602083018680516001600160a01b039081168352602080830151151590840152604080830151909116908301526060908101511515910152565b60a082019390935260c0015292915050565b600060208284031215611f6757600080fd5b81516112198161192f565b600060058510611f8457611f84611b58565b84825260606020830152611f9b6060830185611b96565b9050826040830152949350505050565b60008251611fbd818460208701611bd1565b9190910192915050565b6020815260006112196020830184611bfd56fea26469706673582212208ef9e49635ec65bdea03e093851d2d790d9961ad2c60bf3e7415204cb281871464736f6c63430008090033

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

0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd67

-----Decoded View---------------
Arg [0] : _vault (address): 0x8c4EB0Fc6805Ee7337AC126f89a807271A88DD67

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008c4eb0fc6805ee7337ac126f89a807271a88dd67


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.