ETH Price: $3,300.47 (-0.22%)
Gas: 14 Gwei

Contract

0xE04e8Ae290965AD4F7E40c68041c493d2e89cDC3
 

Overview

ETH Balance

17.604666204375019205 ETH

Eth Value

$58,103.60 (@ $3,300.47/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Resume Position199999632024-06-01 22:29:2358 days ago1717280963IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.000907745.15748849
Resume Position199712382024-05-28 22:06:2362 days ago1716933983IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0013139711.20638238
Resume Position199712222024-05-28 22:03:1162 days ago1716933791IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0015313112.21427339
Resume Position192229652024-02-14 1:32:59167 days ago1707874379IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0024570219.59800934
Resume Position187065262023-12-03 14:42:11240 days ago1701614531IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0037707231.35792677
Resume Position184800192023-11-01 21:44:47271 days ago1698875087IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0046422138.60534807
Process Withdraw...184112662023-10-23 6:42:59281 days ago1698043379IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0015389931
Process Withdraw...184112662023-10-23 6:42:59281 days ago1698043379IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112662023-10-23 6:42:59281 days ago1698043379IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112662023-10-23 6:42:59281 days ago1698043379IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112652023-10-23 6:42:47281 days ago1698043367IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0015396731
Process Withdraw...184112652023-10-23 6:42:47281 days ago1698043367IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0015389931
Process Withdraw...184112652023-10-23 6:42:47281 days ago1698043367IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0015389931
Process Withdraw...184112392023-10-23 6:37:35281 days ago1698043055IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014900130
Process Withdraw...184112392023-10-23 6:37:35281 days ago1698043055IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112392023-10-23 6:37:35281 days ago1698043055IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112392023-10-23 6:37:35281 days ago1698043055IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112382023-10-23 6:37:23281 days ago1698043043IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.001439729
Process Withdraw...184112382023-10-23 6:37:23281 days ago1698043043IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112382023-10-23 6:37:23281 days ago1698043043IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.001439729
Process Withdraw...184112272023-10-23 6:35:11281 days ago1698042911IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112272023-10-23 6:35:11281 days ago1698042911IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112272023-10-23 6:35:11281 days ago1698042911IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112262023-10-23 6:34:59281 days ago1698042899IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014893530
Process Withdraw...184112262023-10-23 6:34:59281 days ago1698042899IN
0xE04e8Ae2...d2e89cDC3
0 ETH0.0014900130
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
199712222024-05-28 22:03:1162 days ago1716933791
0xE04e8Ae2...d2e89cDC3
0.12153352 ETH
192229652024-02-14 1:32:59167 days ago1707874379
0xE04e8Ae2...d2e89cDC3
0.23214889 ETH
180583442023-09-03 20:27:23330 days ago1693772843
0xE04e8Ae2...d2e89cDC3
2.05497991 ETH
180038442023-08-27 5:13:47338 days ago1693113227
0xE04e8Ae2...d2e89cDC3
0.37630095 ETH
179705682023-08-22 13:31:47343 days ago1692711107
0xE04e8Ae2...d2e89cDC3
0.1822854 ETH
179452882023-08-19 0:36:23346 days ago1692405383
0xE04e8Ae2...d2e89cDC3
0.29169963 ETH
179418312023-08-18 13:00:35347 days ago1692363635
0xE04e8Ae2...d2e89cDC3
0.76439294 ETH
176918602023-07-14 13:00:35382 days ago1689339635
0xE04e8Ae2...d2e89cDC3
0.54205708 ETH
176674792023-07-11 2:43:11385 days ago1689043391
0xE04e8Ae2...d2e89cDC3
0.09631739 ETH
176420842023-07-07 13:00:35389 days ago1688734835
0xE04e8Ae2...d2e89cDC3
0.09631739 ETH
176072052023-07-02 15:27:35393 days ago1688311655
0xE04e8Ae2...d2e89cDC3
1.9242081 ETH
175922502023-06-30 13:00:35396 days ago1688130035
0xE04e8Ae2...d2e89cDC3
1.98974068 ETH
175505762023-06-24 16:30:59401 days ago1687624259
0xE04e8Ae2...d2e89cDC3
0.26536016 ETH
175424262023-06-23 13:00:35403 days ago1687525235
0xE04e8Ae2...d2e89cDC3
0.26536016 ETH
174935902023-06-16 16:29:35409 days ago1686932975
0xE04e8Ae2...d2e89cDC3
0.92677639 ETH
174925602023-06-16 13:01:11410 days ago1686920471
0xE04e8Ae2...d2e89cDC3
1.15892528 ETH
173385832023-05-25 20:38:59431 days ago1685047139
0xE04e8Ae2...d2e89cDC3
0.20075699 ETH
172751552023-05-16 22:16:11440 days ago1684275371
0xE04e8Ae2...d2e89cDC3
0.60979835 ETH
172631852023-05-15 5:42:11442 days ago1684129331
0xE04e8Ae2...d2e89cDC3
12.68481563 ETH
172560922023-05-14 5:35:59443 days ago1684042559
0xE04e8Ae2...d2e89cDC3
1.79826334 ETH
171945932023-05-05 13:00:35452 days ago1683291635
0xE04e8Ae2...d2e89cDC3
0.20075699 ETH
171507202023-04-29 8:58:47458 days ago1682758727
0xE04e8Ae2...d2e89cDC3
0.31153432 ETH
171217832023-04-25 7:25:47462 days ago1682407547
0xE04e8Ae2...d2e89cDC3
0.97164253 ETH
170949272023-04-21 13:00:47466 days ago1682082047
0xE04e8Ae2...d2e89cDC3
0.37630095 ETH
170506252023-04-15 6:23:47472 days ago1681539827
0xE04e8Ae2...d2e89cDC3
0.02106453 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RibbonVaultPauser

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : RibbonVaultPauser.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {
    SafeERC20
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IVaultPauser} from "../../interfaces/IVaultPauser.sol";
import {Vault} from "../../libraries/Vault.sol";
import {IRibbonThetaVault} from "../../interfaces/IRibbonThetaVault.sol";
import {IWETH} from "../../interfaces/IWETH.sol";
import {ShareMath} from "../../libraries/ShareMath.sol";

contract RibbonVaultPauser is Ownable, IVaultPauser {
    using SafeERC20 for IERC20;

    /************************************************
     *  NON UPGRADEABLE STORAGE
     ***********************************************/

    /// @notice Stores all the vault's paused positions
    struct PauseReceipt {
        uint16 round;
        uint128 shares;
    }

    mapping(address => mapping(address => PauseReceipt)) public pausedPositions;
    mapping(address => bool) private registeredVaults;

    /************************************************
     *  IMMUTABLES & CONSTANTS
     ***********************************************/
    /// @notice WETH9 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
    address public immutable WETH;
    address public immutable STETH;
    address public immutable STETH_VAULT;

    address public keeper;
    /************************************************
     *  EVENTS
     ***********************************************/

    event Pause(
        address indexed account,
        address indexed vaultAddress,
        uint256 share,
        uint256 round
    );

    event Resume(
        address indexed account,
        address indexed vaultAddress,
        uint256 withdrawAmount
    );

    event ProcessWithdrawal(address indexed vaultAddress, uint256 round);

    /************************************************
     *  CONSTRUCTOR & INITIALIZATION
     ***********************************************/

    /**
     * @notice Initializes the contract with immutable variables
     */
    constructor(
        address _keeper,
        address _weth,
        address _steth,
        address _steth_vault
    ) {
        require(_keeper != address(0), "!_keeper");
        require(_weth != address(0), "!_weth");
        require(_steth != address(0), "!_steth");
        require(_steth_vault != address(0), "!_steth_vault");

        keeper = _keeper;
        WETH = _weth;
        STETH = _steth;
        STETH_VAULT = _steth_vault;
    }

    /**
     * @dev Throws if called by any account other than the keeper.
     */
    modifier onlyKeeper() {
        require(msg.sender == keeper, "!keeper");
        _;
    }

    /************************************************
     *  GETTERS
     ***********************************************/

    function getPausePosition(address _vaultAddress, address _userAddress)
        external
        view
        returns (PauseReceipt memory)
    {
        return pausedPositions[_vaultAddress][_userAddress];
    }

    /************************************************
     *  SETTERS
     ***********************************************/

    /**
     * @notice Sets the new keeper
     * @param _newKeeper is the address of the new keeper
     */
    function setNewKeeper(address _newKeeper) external onlyOwner {
        require(_newKeeper != address(0), "!newKeeper");
        keeper = _newKeeper;
    }

    /**
     * @notice add vault into registered vaults
     * @param _vaultAddress is the address of the new vault to be registered
     */
    function addVault(address _vaultAddress) external onlyOwner {
        registeredVaults[_vaultAddress] = true;
    }

    /************************************************
     *  VAULT OPERATIONS
     ***********************************************/

    /**
     * @notice pause position from vault by redeem all the shares from vault to Pauser
     * @param _account user's address
     * @param _amount the amount of shares
     */
    function pausePosition(address _account, uint256 _amount)
        external
        override
    {
        address currentVaultAddress = msg.sender;
        IRibbonThetaVault currentVault = IRibbonThetaVault(currentVaultAddress);

        // check if vault is registered
        require(
            registeredVaults[currentVaultAddress],
            "Vault is not registered"
        );

        PauseReceipt storage pausedPosition =
            pausedPositions[currentVaultAddress][_account];

        // check if position is paused
        require(
            pausedPosition.shares == 0 && pausedPosition.round == 0,
            "Position is paused"
        );

        uint16 round = currentVault.vaultState().round;

        require(_amount < type(uint128).max, "_amount overflow");

        pausedPositions[currentVaultAddress][_account] = PauseReceipt({
            round: round,
            shares: uint128(_amount)
        });

        emit Pause(_account, currentVaultAddress, _amount, round);

        // transfer from user to pauser
        IERC20(currentVaultAddress).safeTransferFrom(
            _account,
            address(this),
            _amount
        );

        currentVault.initiateWithdraw(_amount);
    }

    /**
     * @notice resume user's position into vault by making a deposit
     * @param _vaultAddress vault's address
     */
    function resumePosition(address _vaultAddress) external override {
        IRibbonThetaVault currentVault = IRibbonThetaVault(_vaultAddress);

        // check if vault is registered
        require(registeredVaults[_vaultAddress], "Vault is not registered");

        // get params and round
        Vault.VaultParams memory currentParams = currentVault.vaultParams();
        uint256 round = currentVault.vaultState().round;

        PauseReceipt storage pauseReceipt =
            pausedPositions[_vaultAddress][msg.sender];
        uint256 pauseReceiptRound = pauseReceipt.round;

        // check if roun is closed before resuming position
        require(pauseReceiptRound < round, "Round not closed yet");
        uint256 totalWithdrawAmount =
            ShareMath.sharesToAsset(
                pauseReceipt.shares,
                currentVault.roundPricePerShare(pauseReceiptRound),
                currentParams.decimals
            );

        // delete position once transfer (revert to zero)
        delete pausedPositions[_vaultAddress][msg.sender];

        // stETH transfers suffer from an off-by-1 error
        // since we received STETH , we shall deposit using STETH instead of ETH
        if (_vaultAddress == STETH_VAULT) {
            totalWithdrawAmount = totalWithdrawAmount - 3;

            emit Resume(msg.sender, _vaultAddress, totalWithdrawAmount - 1);
            IERC20(STETH).safeApprove(_vaultAddress, totalWithdrawAmount);
            currentVault.depositYieldTokenFor(totalWithdrawAmount, msg.sender);
        } else {
            emit Resume(msg.sender, _vaultAddress, totalWithdrawAmount);

            // if asset is ETH, we will convert it into WETH before depositing
            if (currentParams.asset == WETH) {
                IWETH(WETH).deposit{value: totalWithdrawAmount}();
            }
            IERC20(currentParams.asset).safeApprove(
                _vaultAddress,
                totalWithdrawAmount
            );

            currentVault.depositFor(totalWithdrawAmount, msg.sender);
        }
    }

    /**
     * @notice process withdrawals by completing in a batch
     * @param _vaultAddress vault's address to be processed
     */
    function processWithdrawal(address _vaultAddress) external onlyKeeper {
        IRibbonThetaVault currentVault = IRibbonThetaVault(_vaultAddress);
        // we can only process withdrawal after closing the previous round
        // hence round should be - 1
        emit ProcessWithdrawal(
            _vaultAddress,
            currentVault.vaultState().round - 1
        );
        currentVault.completeWithdraw();
    }

    fallback() external payable {}

    receive() external payable {}
}

File 2 of 12 : 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 3 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 12 : IVaultPauser.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;

interface IVaultPauser {
    /// @notice pause vault position of an account with max amount
    /// @param _account the address of user
    /// @param _amount amount of shares
    function pausePosition(address _account, uint256 _amount) external;

    /// @notice resume vault position of an account with max amount
    /// @param _vaultAddress the address of vault
    function resumePosition(address _vaultAddress) external;
}

File 6 of 12 : Vault.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;

library Vault {
    /************************************************
     *  IMMUTABLES & CONSTANTS
     ***********************************************/

    // Fees are 6-decimal places. For example: 20 * 10**6 = 20%
    uint256 internal constant FEE_MULTIPLIER = 10**6;

    // Premium discount has 1-decimal place. For example: 80 * 10**1 = 80%. Which represents a 20% discount.
    uint256 internal constant PREMIUM_DISCOUNT_MULTIPLIER = 10;

    // Otokens have 8 decimal places.
    uint256 internal constant OTOKEN_DECIMALS = 8;

    // Percentage of funds allocated to options is 2 decimal places. 10 * 10**2 = 10%
    uint256 internal constant OPTION_ALLOCATION_MULTIPLIER = 10**2;

    // Placeholder uint value to prevent cold writes
    uint256 internal constant PLACEHOLDER_UINT = 1;

    struct VaultParams {
        // Option type the vault is selling
        bool isPut;
        // Token decimals for vault shares
        uint8 decimals;
        // Asset used in Theta / Delta Vault
        address asset;
        // Underlying asset of the options sold by vault
        address underlying;
        // Minimum supply of the vault shares issued, for ETH it's 10**10
        uint56 minimumSupply;
        // Vault cap
        uint104 cap;
    }

    struct OptionState {
        // Option that the vault is shorting / longing in the next cycle
        address nextOption;
        // Option that the vault is currently shorting / longing
        address currentOption;
        // The timestamp when the `nextOption` can be used by the vault
        uint32 nextOptionReadyAt;
    }

    struct VaultState {
        // 32 byte slot 1
        //  Current round number. `round` represents the number of `period`s elapsed.
        uint16 round;
        // Amount that is currently locked for selling options
        uint104 lockedAmount;
        // Amount that was locked for selling options in the previous round
        // used for calculating performance fee deduction
        uint104 lastLockedAmount;
        // 32 byte slot 2
        // Stores the total tally of how much of `asset` there is
        // to be used to mint rTHETA tokens
        uint128 totalPending;
        // Total amount of queued withdrawal shares from previous rounds (doesn't include the current round)
        uint128 queuedWithdrawShares;
    }

    struct DepositReceipt {
        // Maximum of 65535 rounds. Assuming 1 round is 7 days, maximum is 1256 years.
        uint16 round;
        // Deposit amount, max 20,282,409,603,651 or 20 trillion ETH deposit
        uint104 amount;
        // Unredeemed shares balance
        uint128 unredeemedShares;
    }

    struct Withdrawal {
        // Maximum of 65535 rounds. Assuming 1 round is 7 days, maximum is 1256 years.
        uint16 round;
        // Number of shares withdrawn
        uint128 shares;
    }

    struct AuctionSellOrder {
        // Amount of `asset` token offered in auction
        uint96 sellAmount;
        // Amount of oToken requested in auction
        uint96 buyAmount;
        // User Id of delta vault in latest gnosis auction
        uint64 userId;
    }
}

File 7 of 12 : IRibbonThetaVault.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;

import {Vault} from "../libraries/Vault.sol";

interface IRibbonThetaVault {
    function currentOption() external view returns (address);

    function nextOption() external view returns (address);

    function vaultParams() external view returns (Vault.VaultParams memory);

    function vaultState() external view returns (Vault.VaultState memory);

    function optionState() external view returns (Vault.OptionState memory);

    function optionAuctionID() external view returns (uint256);

    function pricePerShare() external view returns (uint256);

    function roundPricePerShare(uint256) external view returns (uint256);

    function depositFor(uint256 amount, address creditor) external;

    function initiateWithdraw(uint256 numShares) external;

    function completeWithdraw() external;

    function maxRedeem() external;

    function depositYieldTokenFor(uint256 amount, address creditor) external;

    function symbol() external view returns (string calldata);
}

File 8 of 12 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;

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

    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 9 of 12 : ShareMath.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;

import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {Vault} from "./Vault.sol";

library ShareMath {
    using SafeMath for uint256;

    uint256 internal constant PLACEHOLDER_UINT = 1;

    function assetToShares(
        uint256 assetAmount,
        uint256 assetPerShare,
        uint256 decimals
    ) internal pure returns (uint256) {
        // If this throws, it means that vault's roundPricePerShare[currentRound] has not been set yet
        // which should never happen.
        // Has to be larger than 1 because `1` is used in `initRoundPricePerShares` to prevent cold writes.
        require(assetPerShare > PLACEHOLDER_UINT, "Invalid assetPerShare");

        return assetAmount.mul(10**decimals).div(assetPerShare);
    }

    function sharesToAsset(
        uint256 shares,
        uint256 assetPerShare,
        uint256 decimals
    ) internal pure returns (uint256) {
        // If this throws, it means that vault's roundPricePerShare[currentRound] has not been set yet
        // which should never happen.
        // Has to be larger than 1 because `1` is used in `initRoundPricePerShares` to prevent cold writes.
        require(assetPerShare > PLACEHOLDER_UINT, "Invalid assetPerShare");

        return shares.mul(assetPerShare).div(10**decimals);
    }

    /**
     * @notice Returns the shares unredeemed by the user given their DepositReceipt
     * @param depositReceipt is the user's deposit receipt
     * @param currentRound is the `round` stored on the vault
     * @param assetPerShare is the price in asset per share
     * @param decimals is the number of decimals the asset/shares use
     * @return unredeemedShares is the user's virtual balance of shares that are owed
     */
    function getSharesFromReceipt(
        Vault.DepositReceipt memory depositReceipt,
        uint256 currentRound,
        uint256 assetPerShare,
        uint256 decimals
    ) internal pure returns (uint256 unredeemedShares) {
        if (depositReceipt.round > 0 && depositReceipt.round < currentRound) {
            uint256 sharesFromRound =
                assetToShares(depositReceipt.amount, assetPerShare, decimals);

            return
                uint256(depositReceipt.unredeemedShares).add(sharesFromRound);
        }
        return depositReceipt.unredeemedShares;
    }

    function pricePerShare(
        uint256 totalSupply,
        uint256 totalBalance,
        uint256 pendingAmount,
        uint256 decimals
    ) internal pure returns (uint256) {
        uint256 singleShare = 10**decimals;
        return
            totalSupply > 0
                ? singleShare.mul(totalBalance.sub(pendingAmount)).div(
                    totalSupply
                )
                : singleShare;
    }

    /************************************************
     *  HELPERS
     ***********************************************/

    function assertUint104(uint256 num) internal pure {
        require(num <= type(uint104).max, "Overflow uint104");
    }

    function assertUint128(uint256 num) internal pure {
        require(num <= type(uint128).max, "Overflow uint128");
    }
}

File 10 of 12 : 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;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 12 : 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) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_keeper","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_steth","type":"address"},{"internalType":"address","name":"_steth_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"round","type":"uint256"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"round","type":"uint256"}],"name":"ProcessWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"Resume","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"STETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STETH_VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"addVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_userAddress","type":"address"}],"name":"getPausePosition","outputs":[{"components":[{"internalType":"uint16","name":"round","type":"uint16"},{"internalType":"uint128","name":"shares","type":"uint128"}],"internalType":"struct RibbonVaultPauser.PauseReceipt","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"pausePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"pausedPositions","outputs":[{"internalType":"uint16","name":"round","type":"uint16"},{"internalType":"uint128","name":"shares","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"processWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"resumePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newKeeper","type":"address"}],"name":"setNewKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b5060405162001aaa38038062001aaa833981016040819052620000349162000208565b6200003f336200019b565b6001600160a01b038416620000865760405162461bcd60e51b815260206004820152600860248201526710afb5b2b2b832b960c11b60448201526064015b60405180910390fd5b6001600160a01b038316620000c75760405162461bcd60e51b8152602060048201526006602482015265042beeecae8d60d31b60448201526064016200007d565b6001600160a01b038216620001095760405162461bcd60e51b8152602060048201526007602482015266042bee6e8cae8d60cb1b60448201526064016200007d565b6001600160a01b038116620001515760405162461bcd60e51b815260206004820152600d60248201526c0857dcdd195d1a17dd985d5b1d609a1b60448201526064016200007d565b600380546001600160a01b039095166001600160a01b0319909516949094179093556001600160601b0319606092831b811660805290821b811660a05291901b1660c05262000264565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200020357600080fd5b919050565b600080600080608085870312156200021e578384fd5b6200022985620001eb565b93506200023960208601620001eb565b92506200024960408601620001eb565b91506200025960608601620001eb565b905092959194509250565b60805160601c60a05160601c60c05160601c6117f1620002b9600039600081816102180152610b9f0152600081816102ac0152610c270152600081816101e401528181610cf50152610d3301526117f16000f3fe6080604052600436106100d55760003560e01c8063af5ea6e711610079578063d63e8a7e11610056578063d63e8a7e1461027a578063e00bfe501461029a578063f11e5309146102ce578063f2fde38b1461033d57005b8063af5ea6e714610206578063c9c2d4f51461023a578063d164cc151461025a57005b80638da5cb5b116100b25780638da5cb5b14610133578063966c95451461016a578063aced1661146101b2578063ad5c4648146101d257005b8063256b5a02146100de5780633c1a5012146100fe578063715018a61461011e57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f9366004611375565b61035d565b34801561010a57600080fd5b506100dc610119366004611375565b6103b4565b34801561012a57600080fd5b506100dc610513565b34801561013f57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017657600080fd5b5061018a610185366004611391565b610549565b60408051825161ffff1681526020928301516001600160801b03169281019290925201610161565b3480156101be57600080fd5b5060035461014d906001600160a01b031681565b3480156101de57600080fd5b5061014d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561021257600080fd5b5061014d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561024657600080fd5b506100dc6102553660046113c9565b6105a7565b34801561026657600080fd5b506100dc610275366004611375565b610877565b34801561028657600080fd5b506100dc610295366004611375565b610906565b3480156102a657600080fd5b5061014d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102da57600080fd5b5061031b6102e9366004611391565b600160209081526000928352604080842090915290825290205461ffff8116906201000090046001600160801b031682565b6040805161ffff90931683526001600160801b03909116602083015201610161565b34801561034957600080fd5b506100dc610358366004611375565b610e29565b6000546001600160a01b031633146103905760405162461bcd60e51b8152600401610387906115cb565b60405180910390fd5b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6003546001600160a01b031633146103f85760405162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b6044820152606401610387565b6000819050816001600160a01b03167f4d1c6a568276d680f6c7d9eadabf2d36ba34ed239ddbfa3f267906e5013b84d46001836001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b15801561046357600080fd5b505afa158015610477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049b91906114c3565b516104a6919061172a565b60405161ffff909116815260200160405180910390a2806001600160a01b031663f756fa216040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b505050505050565b6000546001600160a01b0316331461053d5760405162461bcd60e51b8152600401610387906115cb565b6105476000610ec4565b565b604080518082018252600080825260209182018190526001600160a01b038581168252600183528382209085168252825282902082518084019093525461ffff811683526201000090046001600160801b0316908201525b92915050565b33600081815260026020526040902054819060ff166106025760405162461bcd60e51b815260206004820152601760248201527615985d5b1d081a5cc81b9bdd081c9959da5cdd195c9959604a1b6044820152606401610387565b6001600160a01b03828116600090815260016020908152604080832093881683529290522080546201000090046001600160801b03161580156106485750805461ffff16155b6106895760405162461bcd60e51b8152602060048201526012602482015271141bdcda5d1a5bdb881a5cc81c185d5cd95960721b6044820152606401610387565b6000826001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b1580156106c457600080fd5b505afa1580156106d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fc91906114c3565b5190506001600160801b0385106107485760405162461bcd60e51b815260206004820152601060248201526f5f616d6f756e74206f766572666c6f7760801b6044820152606401610387565b60408051808201825261ffff80841682526001600160801b0380891660208085019182526001600160a01b03808b16600081815260018452888120928f16808252929093529187902095518654935190941662010000026001600160901b031990931693909416929092171790925591519091907f30b4d0c56f1d21525fe9adea4192756b335aafffc6c77f51ceb8a144b9bcde63906107f8908990869091825261ffff16602082015260400190565b60405180910390a36108156001600160a01b038516873088610f14565b604051633f0846a960e11b8152600481018690526001600160a01b03841690637e108d5290602401600060405180830381600087803b15801561085757600080fd5b505af115801561086b573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b031633146108a15760405162461bcd60e51b8152600401610387906115cb565b6001600160a01b0381166108e45760405162461bcd60e51b815260206004820152600a60248201526910b732bba5b2b2b832b960b11b6044820152606401610387565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260026020526040902054819060ff1661096a5760405162461bcd60e51b815260206004820152601760248201527615985d5b1d081a5cc81b9bdd081c9959da5cdd195c9959604a1b6044820152606401610387565b6000816001600160a01b0316639fcc2d756040518163ffffffff1660e01b815260040160c06040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd919061140e565b90506000826001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b158015610a1a57600080fd5b505afa158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5291906114c3565b516001600160a01b03851660009081526001602090815260408083203384529091529020805461ffff9283169350909116828110610ac95760405162461bcd60e51b8152602060048201526014602482015273149bdd5b99081b9bdd0818db1bdcd959081e595d60621b6044820152606401610387565b81546040516387153eb160e01b815260048101839052600091610b6891620100009091046001600160801b0316906001600160a01b038916906387153eb19060240160206040518083038186803b158015610b2357600080fd5b505afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190611564565b876020015160ff16610f85565b6001600160a01b038089166000818152600160209081526040808320338452909152902080546001600160901b03191690559192507f0000000000000000000000000000000000000000000000000000000000000000161415610cb357610bd060038261174d565b90506001600160a01b038716337f88889b96c10c4dde96ecfa85e3e07b053a168791157fa9cc588a86732d2d6dba610c0960018561174d565b60405190815260200160405180910390a3610c4e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168883610ff7565b6040516332f5210f60e11b8152600481018290523360248201526001600160a01b038716906365ea421e90604401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b50505050610e20565b6040518181526001600160a01b0388169033907f88889b96c10c4dde96ecfa85e3e07b053a168791157fa9cc588a86732d2d6dba9060200160405180910390a37f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685604001516001600160a01b03161415610da6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b50505050505b6040850151610dbf906001600160a01b03168883610ff7565b6040516336efd16f60e01b8152600481018290523360248201526001600160a01b038716906336efd16f90604401600060405180830381600087803b158015610e0757600080fd5b505af1158015610e1b573d6000803e3d6000fd5b505050505b50505050505050565b6000546001600160a01b03163314610e535760405162461bcd60e51b8152600401610387906115cb565b6001600160a01b038116610eb85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610387565b610ec181610ec4565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f7f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611120565b50505050565b600060018311610fcf5760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964206173736574506572536861726560581b6044820152606401610387565b610fed610fdd83600a611663565b610fe786866111f2565b906111fe565b90505b9392505050565b8015806110805750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561104657600080fd5b505afa15801561105a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107e9190611564565b155b6110eb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610387565b6040516001600160a01b03831660248201526044810182905261111b90849063095ea7b360e01b90606401610f48565b505050565b6000611175826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661120a9092919063ffffffff16565b80519091501561111b578080602001905181019061119391906113f4565b61111b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610387565b6000610ff0828461170b565b6000610ff08284611600565b6060610fed848460008585843b6112635760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610387565b600080866001600160a01b0316858760405161127f919061157c565b60006040518083038185875af1925050503d80600081146112bc576040519150601f19603f3d011682016040523d82523d6000602084013e6112c1565b606091505b50915091506112d18282866112dc565b979650505050505050565b606083156112eb575081610ff0565b8251156112fb5782518084602001fd5b8160405162461bcd60e51b81526004016103879190611598565b8051801515811461132557600080fd5b919050565b80516cffffffffffffffffffffffffff8116811461132557600080fd5b80516001600160801b038116811461132557600080fd5b805166ffffffffffffff8116811461132557600080fd5b600060208284031215611386578081fd5b8135610ff0816117a6565b600080604083850312156113a3578081fd5b82356113ae816117a6565b915060208301356113be816117a6565b809150509250929050565b600080604083850312156113db578182fd5b82356113e6816117a6565b946020939093013593505050565b600060208284031215611405578081fd5b610ff082611315565b600060c0828403121561141f578081fd5b60405160c0810181811067ffffffffffffffff8211171561144e57634e487b7160e01b83526041600452602483fd5b60405261145a83611315565b8152602083015160ff8116811461146f578283fd5b60208201526040830151611482816117a6565b60408201526060830151611495816117a6565b60608201526114a66080840161135e565b60808201526114b760a0840161132a565b60a08201529392505050565b600060a082840312156114d4578081fd5b60405160a0810181811067ffffffffffffffff8211171561150357634e487b7160e01b83526041600452602483fd5b604052825161ffff81168114611517578283fd5b81526115256020840161132a565b60208201526115366040840161132a565b604082015261154760608401611347565b606082015261155860808401611347565b60808201529392505050565b600060208284031215611575578081fd5b5051919050565b6000825161158e818460208701611764565b9190910192915050565b60208152600082518060208401526115b7816040850160208701611764565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008261161b57634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111561165b57816000190482111561164157611641611790565b8085161561164e57918102915b93841c9390800290611625565b509250929050565b6000610ff08383600082611679575060016105a1565b81611686575060006105a1565b816001811461169c57600281146116a6576116c2565b60019150506105a1565b60ff8411156116b7576116b7611790565b50506001821b6105a1565b5060208310610133831016604e8410600b84101617156116e5575081810a6105a1565b6116ef8383611620565b806000190482111561170357611703611790565b029392505050565b600081600019048311821515161561172557611725611790565b500290565b600061ffff8381169083168181101561174557611745611790565b039392505050565b60008282101561175f5761175f611790565b500390565b60005b8381101561177f578181015183820152602001611767565b83811115610f7f5750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610ec157600080fdfea2646970667358221220b910b1da247c1eab29140dd84e61ef983578ee292b7b3d5be511ac044400c06264736f6c63430008040033000000000000000000000000691c87dc570563d1d0ad7fd0bb099ed367858863000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000053773e034d9784153471813dacaff53dbbb78e8c

Deployed Bytecode

0x6080604052600436106100d55760003560e01c8063af5ea6e711610079578063d63e8a7e11610056578063d63e8a7e1461027a578063e00bfe501461029a578063f11e5309146102ce578063f2fde38b1461033d57005b8063af5ea6e714610206578063c9c2d4f51461023a578063d164cc151461025a57005b80638da5cb5b116100b25780638da5cb5b14610133578063966c95451461016a578063aced1661146101b2578063ad5c4648146101d257005b8063256b5a02146100de5780633c1a5012146100fe578063715018a61461011e57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f9366004611375565b61035d565b34801561010a57600080fd5b506100dc610119366004611375565b6103b4565b34801561012a57600080fd5b506100dc610513565b34801561013f57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561017657600080fd5b5061018a610185366004611391565b610549565b60408051825161ffff1681526020928301516001600160801b03169281019290925201610161565b3480156101be57600080fd5b5060035461014d906001600160a01b031681565b3480156101de57600080fd5b5061014d7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561021257600080fd5b5061014d7f00000000000000000000000053773e034d9784153471813dacaff53dbbb78e8c81565b34801561024657600080fd5b506100dc6102553660046113c9565b6105a7565b34801561026657600080fd5b506100dc610275366004611375565b610877565b34801561028657600080fd5b506100dc610295366004611375565b610906565b3480156102a657600080fd5b5061014d7f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b3480156102da57600080fd5b5061031b6102e9366004611391565b600160209081526000928352604080842090915290825290205461ffff8116906201000090046001600160801b031682565b6040805161ffff90931683526001600160801b03909116602083015201610161565b34801561034957600080fd5b506100dc610358366004611375565b610e29565b6000546001600160a01b031633146103905760405162461bcd60e51b8152600401610387906115cb565b60405180910390fd5b6001600160a01b03166000908152600260205260409020805460ff19166001179055565b6003546001600160a01b031633146103f85760405162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b6044820152606401610387565b6000819050816001600160a01b03167f4d1c6a568276d680f6c7d9eadabf2d36ba34ed239ddbfa3f267906e5013b84d46001836001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b15801561046357600080fd5b505afa158015610477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049b91906114c3565b516104a6919061172a565b60405161ffff909116815260200160405180910390a2806001600160a01b031663f756fa216040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b505050505050565b6000546001600160a01b0316331461053d5760405162461bcd60e51b8152600401610387906115cb565b6105476000610ec4565b565b604080518082018252600080825260209182018190526001600160a01b038581168252600183528382209085168252825282902082518084019093525461ffff811683526201000090046001600160801b0316908201525b92915050565b33600081815260026020526040902054819060ff166106025760405162461bcd60e51b815260206004820152601760248201527615985d5b1d081a5cc81b9bdd081c9959da5cdd195c9959604a1b6044820152606401610387565b6001600160a01b03828116600090815260016020908152604080832093881683529290522080546201000090046001600160801b03161580156106485750805461ffff16155b6106895760405162461bcd60e51b8152602060048201526012602482015271141bdcda5d1a5bdb881a5cc81c185d5cd95960721b6044820152606401610387565b6000826001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b1580156106c457600080fd5b505afa1580156106d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fc91906114c3565b5190506001600160801b0385106107485760405162461bcd60e51b815260206004820152601060248201526f5f616d6f756e74206f766572666c6f7760801b6044820152606401610387565b60408051808201825261ffff80841682526001600160801b0380891660208085019182526001600160a01b03808b16600081815260018452888120928f16808252929093529187902095518654935190941662010000026001600160901b031990931693909416929092171790925591519091907f30b4d0c56f1d21525fe9adea4192756b335aafffc6c77f51ceb8a144b9bcde63906107f8908990869091825261ffff16602082015260400190565b60405180910390a36108156001600160a01b038516873088610f14565b604051633f0846a960e11b8152600481018690526001600160a01b03841690637e108d5290602401600060405180830381600087803b15801561085757600080fd5b505af115801561086b573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b031633146108a15760405162461bcd60e51b8152600401610387906115cb565b6001600160a01b0381166108e45760405162461bcd60e51b815260206004820152600a60248201526910b732bba5b2b2b832b960b11b6044820152606401610387565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038116600090815260026020526040902054819060ff1661096a5760405162461bcd60e51b815260206004820152601760248201527615985d5b1d081a5cc81b9bdd081c9959da5cdd195c9959604a1b6044820152606401610387565b6000816001600160a01b0316639fcc2d756040518163ffffffff1660e01b815260040160c06040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd919061140e565b90506000826001600160a01b0316632728f3336040518163ffffffff1660e01b815260040160a06040518083038186803b158015610a1a57600080fd5b505afa158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5291906114c3565b516001600160a01b03851660009081526001602090815260408083203384529091529020805461ffff9283169350909116828110610ac95760405162461bcd60e51b8152602060048201526014602482015273149bdd5b99081b9bdd0818db1bdcd959081e595d60621b6044820152606401610387565b81546040516387153eb160e01b815260048101839052600091610b6891620100009091046001600160801b0316906001600160a01b038916906387153eb19060240160206040518083038186803b158015610b2357600080fd5b505afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190611564565b876020015160ff16610f85565b6001600160a01b038089166000818152600160209081526040808320338452909152902080546001600160901b03191690559192507f00000000000000000000000053773e034d9784153471813dacaff53dbbb78e8c161415610cb357610bd060038261174d565b90506001600160a01b038716337f88889b96c10c4dde96ecfa85e3e07b053a168791157fa9cc588a86732d2d6dba610c0960018561174d565b60405190815260200160405180910390a3610c4e6001600160a01b037f000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84168883610ff7565b6040516332f5210f60e11b8152600481018290523360248201526001600160a01b038716906365ea421e90604401600060405180830381600087803b158015610c9657600080fd5b505af1158015610caa573d6000803e3d6000fd5b50505050610e20565b6040518181526001600160a01b0388169033907f88889b96c10c4dde96ecfa85e3e07b053a168791157fa9cc588a86732d2d6dba9060200160405180910390a37f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031685604001516001600160a01b03161415610da6577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d8c57600080fd5b505af1158015610da0573d6000803e3d6000fd5b50505050505b6040850151610dbf906001600160a01b03168883610ff7565b6040516336efd16f60e01b8152600481018290523360248201526001600160a01b038716906336efd16f90604401600060405180830381600087803b158015610e0757600080fd5b505af1158015610e1b573d6000803e3d6000fd5b505050505b50505050505050565b6000546001600160a01b03163314610e535760405162461bcd60e51b8152600401610387906115cb565b6001600160a01b038116610eb85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610387565b610ec181610ec4565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f7f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611120565b50505050565b600060018311610fcf5760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964206173736574506572536861726560581b6044820152606401610387565b610fed610fdd83600a611663565b610fe786866111f2565b906111fe565b90505b9392505050565b8015806110805750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561104657600080fd5b505afa15801561105a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107e9190611564565b155b6110eb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610387565b6040516001600160a01b03831660248201526044810182905261111b90849063095ea7b360e01b90606401610f48565b505050565b6000611175826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661120a9092919063ffffffff16565b80519091501561111b578080602001905181019061119391906113f4565b61111b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610387565b6000610ff0828461170b565b6000610ff08284611600565b6060610fed848460008585843b6112635760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610387565b600080866001600160a01b0316858760405161127f919061157c565b60006040518083038185875af1925050503d80600081146112bc576040519150601f19603f3d011682016040523d82523d6000602084013e6112c1565b606091505b50915091506112d18282866112dc565b979650505050505050565b606083156112eb575081610ff0565b8251156112fb5782518084602001fd5b8160405162461bcd60e51b81526004016103879190611598565b8051801515811461132557600080fd5b919050565b80516cffffffffffffffffffffffffff8116811461132557600080fd5b80516001600160801b038116811461132557600080fd5b805166ffffffffffffff8116811461132557600080fd5b600060208284031215611386578081fd5b8135610ff0816117a6565b600080604083850312156113a3578081fd5b82356113ae816117a6565b915060208301356113be816117a6565b809150509250929050565b600080604083850312156113db578182fd5b82356113e6816117a6565b946020939093013593505050565b600060208284031215611405578081fd5b610ff082611315565b600060c0828403121561141f578081fd5b60405160c0810181811067ffffffffffffffff8211171561144e57634e487b7160e01b83526041600452602483fd5b60405261145a83611315565b8152602083015160ff8116811461146f578283fd5b60208201526040830151611482816117a6565b60408201526060830151611495816117a6565b60608201526114a66080840161135e565b60808201526114b760a0840161132a565b60a08201529392505050565b600060a082840312156114d4578081fd5b60405160a0810181811067ffffffffffffffff8211171561150357634e487b7160e01b83526041600452602483fd5b604052825161ffff81168114611517578283fd5b81526115256020840161132a565b60208201526115366040840161132a565b604082015261154760608401611347565b606082015261155860808401611347565b60808201529392505050565b600060208284031215611575578081fd5b5051919050565b6000825161158e818460208701611764565b9190910192915050565b60208152600082518060208401526115b7816040850160208701611764565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008261161b57634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111561165b57816000190482111561164157611641611790565b8085161561164e57918102915b93841c9390800290611625565b509250929050565b6000610ff08383600082611679575060016105a1565b81611686575060006105a1565b816001811461169c57600281146116a6576116c2565b60019150506105a1565b60ff8411156116b7576116b7611790565b50506001821b6105a1565b5060208310610133831016604e8410600b84101617156116e5575081810a6105a1565b6116ef8383611620565b806000190482111561170357611703611790565b029392505050565b600081600019048311821515161561172557611725611790565b500290565b600061ffff8381169083168181101561174557611745611790565b039392505050565b60008282101561175f5761175f611790565b500390565b60005b8381101561177f578181015183820152602001611767565b83811115610f7f5750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610ec157600080fdfea2646970667358221220b910b1da247c1eab29140dd84e61ef983578ee292b7b3d5be511ac044400c06264736f6c63430008040033

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

000000000000000000000000691c87dc570563d1d0ad7fd0bb099ed367858863000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000053773e034d9784153471813dacaff53dbbb78e8c

-----Decoded View---------------
Arg [0] : _keeper (address): 0x691c87dc570563D1D0AD7Fd0bb099ED367858863
Arg [1] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _steth (address): 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
Arg [3] : _steth_vault (address): 0x53773E034d9784153471813dacAFF53dBBB78E8c

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000691c87dc570563d1d0ad7fd0bb099ed367858863
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84
Arg [3] : 00000000000000000000000053773e034d9784153471813dacaff53dbbb78e8c


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
[ 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.