ETH Price: $3,666.00 (-1.75%)

Contract

0xCb6DFd06973bF66C8bD2779538e5C8311B8070B8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Age:30D
Amount:Between 0-1
Reset Filter
Transaction Hash
Method
Block
From
To
Transfer Ownersh...212586312024-11-24 15:54:357 days ago1732463675IN
0xCb6DFd06...11B8070B8
0 ETH0.000263829.17824149
Set Interest Rat...212562172024-11-24 7:48:598 days ago1732434539IN
0xCb6DFd06...11B8070B8
0 ETH0.000278349.26953516
Set Obelisk Regi...212562172024-11-24 7:48:598 days ago1732434539IN
0xCb6DFd06...11B8070B8
0 ETH0.000437059.26953516
0x60e06040212562162024-11-24 7:48:478 days ago1732434527IN
 Create: ApxETHVault
0 ETH0.006738468.25994864
VIEW ADVANCED FILTER

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
212660362024-11-25 16:42:596 days ago1732552979
0xCb6DFd06...11B8070B8
1 ETH
212660362024-11-25 16:42:596 days ago1732552979
0xCb6DFd06...11B8070B8
1 ETH
212628792024-11-25 6:07:357 days ago1732514855
0xCb6DFd06...11B8070B8
294 ETH
212628792024-11-25 6:07:357 days ago1732514855
0xCb6DFd06...11B8070B8
294 ETH
212628532024-11-25 6:02:237 days ago1732514543
0xCb6DFd06...11B8070B8
1 ETH
212628532024-11-25 6:02:237 days ago1732514543
0xCb6DFd06...11B8070B8
1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApxETHVault

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 14 : ApxETHVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import { BaseDripVault } from "./BaseDripVault.sol";

import { IApxETH } from "src/vendor/dinero/IApxETH.sol";
import { IPirexEth } from "src/vendor/dinero/IPirexEth.sol";

contract ApxETHVault is BaseDripVault {
  uint256 internal constant DENOMINATOR = 1_000_000;

  IApxETH public immutable APXETH;
  IPirexEth public immutable PIREX_ETH;

  constructor(
    address _owner,
    address _obeliskRegistry,
    address _apxETH,
    address _rateReceiver
  ) BaseDripVault(address(0), _owner, _obeliskRegistry, _rateReceiver) {
    APXETH = IApxETH(_apxETH);
    PIREX_ETH = IPirexEth(IApxETH(_apxETH).pirexEth());
  }

  function _afterDeposit(uint256 _amount)
    internal
    override
    returns (uint256 depositAmount_)
  {
    // ApxETH does not have a 1:1 ratio with ETH, but Pirex does.
    // This means the value returned by the deposit function will be equivalent with ETH.
    uint256 fee;
    (depositAmount_, fee) = PIREX_ETH.deposit{ value: _amount }(address(this), true);
    totalDeposit -= fee;

    return depositAmount_;
  }

  function _beforeWithdrawal(address _to, uint256 _amount)
    internal
    override
    returns (uint256 withdrawalAmount_)
  {
    withdrawalAmount_ = APXETH.convertToShares(_amount);
    _transfer(address(APXETH), _to, withdrawalAmount_);

    return withdrawalAmount_;
  }

  function claim() external override nonReentrant returns (uint256 interestInApx_) {
    interestInApx_ = _getPendingClaiming();
    _transfer(address(APXETH), interestRateReceiver, interestInApx_);

    return interestInApx_;
  }

  function getPendingClaiming() external view returns (uint256) {
    return _getPendingClaiming();
  }

  function _getPendingClaiming() internal view returns (uint256 interestInApx_) {
    uint256 cachedTotalDeposit = getTotalDeposit();
    uint256 maxRedeemInETH = APXETH.convertToAssets(APXETH.maxRedeem(address(this)));

    if (maxRedeemInETH > cachedTotalDeposit) {
      interestInApx_ = APXETH.convertToShares(maxRedeemInETH - cachedTotalDeposit);
    }

    return interestInApx_;
  }

  function getOutputToken() external view returns (address) {
    return address(APXETH);
  }

  function previewDeposit(uint256 _amount)
    external
    view
    override
    returns (uint256 depositAmount_)
  {
    uint256 feeAmount = (_amount * PIREX_ETH.fees(0)) / DENOMINATOR;
    depositAmount_ = _amount - feeAmount;

    return depositAmount_;
  }
}

File 2 of 14 : BaseDripVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { IDripVault } from "src/interfaces/IDripVault.sol";
import {
  SafeERC20, IERC20
} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

abstract contract BaseDripVault is IDripVault, Ownable, ReentrancyGuard {
  address public immutable INPUT_TOKEN;

  address public interestRateReceiver;
  address public obeliskRegistry;
  uint256 internal totalDeposit;

  modifier onlyObeliskRegistry() {
    if (msg.sender != obeliskRegistry) revert NotObeliskRegistry();
    _;
  }

  constructor(
    address _inputToken,
    address _owner,
    address _obeliskRegistry,
    address _rateReceiver
  ) Ownable(_owner) {
    interestRateReceiver = _rateReceiver;
    obeliskRegistry = _obeliskRegistry;
    INPUT_TOKEN = _inputToken;
  }

  function deposit(uint256 _amount)
    external
    payable
    override
    nonReentrant
    onlyObeliskRegistry
    returns (uint256 depositAmount_)
  {
    address cachedInputToken = INPUT_TOKEN;
    uint256 cachedTotalBalance = totalDeposit;

    if (msg.value != 0) _amount = msg.value;

    if (cachedInputToken == address(0) && msg.value == 0) revert InvalidAmount();
    if (cachedInputToken != address(0) && msg.value != 0) revert NativeNotAccepted();

    totalDeposit = cachedTotalBalance + _amount;
    return _afterDeposit(_amount);
  }

  function _afterDeposit(uint256 _amount)
    internal
    virtual
    returns (uint256 depositAmount_);

  function withdraw(address _to, uint256 _amount)
    external
    override
    nonReentrant
    onlyObeliskRegistry
    returns (uint256 withdrawAmount_)
  {
    withdrawAmount_ = _beforeWithdrawal(_to, _amount);
    totalDeposit -= _amount;

    return withdrawAmount_;
  }

  function _beforeWithdrawal(address _to, uint256 _amount)
    internal
    virtual
    returns (uint256 withdrawalAmount_);

  function _transfer(address _asset, address _to, uint256 _amount) internal {
    if (_amount == 0) return;

    if (_asset == address(0)) {
      (bool success,) = _to.call{ value: _amount }("");
      if (!success) revert FailedToSendETH();
    } else {
      SafeERC20.safeTransfer(IERC20(_asset), _to, _amount);
    }
  }

  function setObeliskRegistry(address _obeliskRegistry) external onlyOwner {
    if (_obeliskRegistry == address(0)) revert ZeroAddress();

    obeliskRegistry = _obeliskRegistry;
    emit ObeliskRegistryUpdated(_obeliskRegistry);
  }

  function setInterestRateReceiver(address _interestRateReceiver) external onlyOwner {
    if (_interestRateReceiver == address(0)) revert ZeroAddress();
    interestRateReceiver = _interestRateReceiver;
    emit InterestRateReceiverUpdated(_interestRateReceiver);
  }

  function getTotalDeposit() public view override returns (uint256) {
    return totalDeposit;
  }

  function getInputToken() external view returns (address) {
    return INPUT_TOKEN;
  }

  function previewDeposit(uint256 _amount) external view virtual returns (uint256);
}

File 3 of 14 : IApxETH.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import { IERC4626 } from "@openzeppelin/contracts/interfaces/IERC4626.sol";

interface IApxETH is IERC4626 {
  function pirexEth() external view returns (address);
}

File 4 of 14 : IPirexEth.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IPirexEth {
  function deposit(address receiver, bool shouldCompound)
    external
    payable
    returns (uint256 postFeeAmount, uint256 feeAmount);

  function fees(uint8 _feeType) external view returns (uint32);
}

File 5 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 14 : IDripVault.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

interface IDripVault {
  error FailedToSendETH();
  error InvalidAmount();
  error NotObeliskRegistry();
  error NativeNotAccepted();
  error ZeroAddress();

  event ObeliskRegistryUpdated(address indexed obeliskRegistry);
  event InterestRateReceiverUpdated(address indexed interestRateReceiver);

  /**
   * @notice Deposits ETH or a specified amount of ERC20 token into the vault.
   * @dev ERC20 has to be transferred before calling this function
   */
  function deposit(uint256 _amount) external payable returns (uint256 depositAmount_);

  /**
   * @notice Withdraws ETH or a specified amount of ERC20 token from the vault.
   * @param _to The address to withdraw the funds to.
   * @param _amount The amount of ETH or ERC20 token to withdraw. Use 0 for ETH.
   */
  function withdraw(address _to, uint256 _amount)
    external
    returns (uint256 withdrawAmount_);

  /**
   * @notice Claims any accrued interest in the vault.
   * @return The amount of interest claimed.
   */
  function claim() external returns (uint256);

  /**
   * @notice Gets the total deposit amount in the vault.
   * @return The total deposit amount.
   */
  function getTotalDeposit() external view returns (uint256);

  /**
   * @notice Gets the input token of the vault.
   * @return The input token address.
   */
  function getInputToken() external view returns (address);

  /**
   * @notice Gets the output token of the vault.
   * @return The output token address.
   */
  function getOutputToken() external view returns (address);

  /**
   * @notice Gets the preview deposit amount of the vault.
   * @return The preview deposit amount.
   */
  function previewDeposit(uint256 _amount) external view returns (uint256);
}

File 7 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 8 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 9 of 14 : IERC4626.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4626.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";

/**
 * @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in
 * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
 */
interface IERC4626 is IERC20, IERC20Metadata {
    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /**
     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
     *
     * - MUST be an ERC-20 token contract.
     * - MUST NOT revert.
     */
    function asset() external view returns (address assetTokenAddress);

    /**
     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.
     *
     * - SHOULD include any compounding that occurs from yield.
     * - MUST be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT revert.
     */
    function totalAssets() external view returns (uint256 totalManagedAssets);

    /**
     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToShares(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
     * through a deposit call.
     *
     * - MUST return a limited value if receiver is subject to some deposit limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
     * - MUST NOT revert.
     */
    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
     *   in the same transaction.
     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   deposit execution, and are accounted for during deposit.
     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
     * - MUST return a limited value if receiver is subject to some mint limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
     * - MUST NOT revert.
     */
    function maxMint(address receiver) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
     *   same transaction.
     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
     *   would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by minting.
     */
    function previewMint(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
     *   execution, and are accounted for during mint.
     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
     * Vault, through a withdraw call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
     *   called
     *   in the same transaction.
     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   withdraw execution, and are accounted for during withdraw.
     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
     * through a redeem call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxRedeem(address owner) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
     *   same transaction.
     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
     *   redemption would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.
     */
    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   redeem execution, and are accounted for during redeem.
     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
}

File 10 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 11 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

File 12 of 14 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 13 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 14 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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);
}

Settings
{
  "remappings": [
    "hero-tokens/test/=test/",
    "ds-test/=node_modules/@layerzerolabs/toolbox-foundry/lib/ds-test/",
    "forge-std/=node_modules/@layerzerolabs/toolbox-foundry/lib/forge-std/src/",
    "@layerzerolabs/=node_modules/@layerzerolabs/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "heroglyph-library/=node_modules/@layerzerolabs/toolbox-foundry/lib/heroglyph-library/src/",
    "@axelar-network/=node_modules/@axelar-network/",
    "@chainlink/=node_modules/@chainlink/",
    "@eth-optimism/=node_modules/@eth-optimism/",
    "hardhat-deploy/=node_modules/hardhat-deploy/",
    "hardhat/=node_modules/hardhat/",
    "solidity-bytes-utils/=node_modules/solidity-bytes-utils/",
    "@prb-math/=node_modules/@layerzerolabs/toolbox-foundry/lib/prb-math/",
    "@prb/math/=node_modules/@layerzerolabs/toolbox-foundry/lib/prb-math/",
    "@sablier/v2-core/=node_modules/@sablier/v2-core/",
    "@uniswap/v3-periphery/=node_modules/@layerzerolabs/toolbox-foundry/lib/v3-periphery/",
    "@uniswap/v3-core/=node_modules/@layerzerolabs/toolbox-foundry/lib/v3-core/",
    "atoumic/=node_modules/@layerzerolabs/toolbox-foundry/lib/atoumic/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_obeliskRegistry","type":"address"},{"internalType":"address","name":"_apxETH","type":"address"},{"internalType":"address","name":"_rateReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"FailedToSendETH","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"NativeNotAccepted","type":"error"},{"inputs":[],"name":"NotObeliskRegistry","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"interestRateReceiver","type":"address"}],"name":"InterestRateReceiverUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"obeliskRegistry","type":"address"}],"name":"ObeliskRegistryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"APXETH","outputs":[{"internalType":"contract IApxETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INPUT_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIREX_ETH","outputs":[{"internalType":"contract IPirexEth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"interestInApx_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"depositAmount_","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getInputToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOutputToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingClaiming","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interestRateReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"obeliskRegistry","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":"uint256","name":"_amount","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"depositAmount_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_interestRateReceiver","type":"address"}],"name":"setInterestRateReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_obeliskRegistry","type":"address"}],"name":"setObeliskRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawAmount_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60e0604090808252346101b157608081610e50803803809161002182856101b6565b8339810103126101b157610034816101ef565b90610041602082016101ef565b61005860606100518685016101ef565b93016101ef565b6001600160a01b039390929084169182156101995760047f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09386602094898280968160009b8c54978d60018060a01b03199682888c16178255519d8e9c8d9b169180a360018055168360025416176002551690600354161760035587608052168060a052632a9ca34760e21b82525afa91821561018e57809261014e575b50501660c05251610c4c908161020482396080518181816104580152610815015260a051818181610122015281816103b0015281816106cc015261090f015260c0518181816102b0015281816104c3015261060b0152f35b9091506020823d602011610186575b8161016a602093836101b6565b81010312610183575061017c906101ef565b38806100f6565b80fd5b3d915061015d565b8451903d90823e3d90fd5b8551631e4fbdf760e01b815260006004820152602490fd5b600080fd5b601f909101601f19168101906001600160401b038211908210176101d957604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036101b15756fe6040608081526004908136101561001557600080fd5b600090813560e01c806302d25bfb1461077657806306a2f44a146106fb57806316305cd81461039c5780634e71d92d14610694578063715018a61461063a5780638331ae23146105f75780638da5cb5b146105d05780639915e23d146105a8578063b6b55f2514610419578063c022215c146103fb578063c7e32c21146103df578063ce2931ea1461039c578063df4df11814610374578063e52e43da146101ee578063ef8b30f71461027e578063f2fde38b146101f3578063f3835afb146101ee5763f3fef3a3146100e757600080fd5b346101ea57806003193601126101ea576100ff6107e4565b926024359361010c6108cb565b6003546001600160a01b0390811633036101da577f00000000000000000000000000000000000000000000000000000000000000001683516363737ac960e11b81528684820152602081602481855afa9586156101cf578096610190575b50509461017d8561018493602098610ab4565b825461087c565b90556001805551908152f35b90919295506020823d6020116101c7575b816101ae60209383610844565b810103126101c4575051939061017d602061016a565b80fd5b3d91506101a1565b8551903d90823e3d90fd5b83516356620d4b60e11b81528390fd5b5080fd5b6107ff565b50823461027a57602036600319011261027a5761020e6107e4565b9061021761089f565b6001600160a01b0391821692831561026457505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5090346101c457602092836003193601126101ea578251630d5f04d560e21b81528082018390528135929085816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa801561036a57829061032c575b63ffffffff9150169182840292848404148415171561031957505090620f424061031292049061087c565b9051908152f35b634e487b7160e01b825260119052602490fd5b508581813d8311610363575b6103428183610844565b810103126101ea575163ffffffff811681036101ea5763ffffffff906102e7565b503d610338565b85513d84823e3d90fd5b50346101ea57816003193601126101ea5760025490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346101ea57816003193601126101ea576020906103126108ee565b50823461027a578260031936011261027a5760209250549051908152f35b508290602036600319011261027a576104306108cb565b6003546001600160a01b0392908316330361059a578035928154341580159081610592575b837f000000000000000000000000000000000000000000000000000000000000000016158091819261058a575b5061057a57159081610572575b506105625784810180911161054f5790839183556044825180968193632b725d0360e21b83523087840152600160248401527f0000000000000000000000000000000000000000000000000000000000000000165af19384156105445780938195610504575b5050610184602094825461087c565b83809296508195503d831161053d575b61051e8183610844565b810103126105395760209350610184848451940151946104f5565b8380fd5b503d610514565b8251903d90823e3d90fd5b634e487b7160e01b865260118352602486fd5b8351630d4ff4fb60e11b81528390fd5b90508761048f565b855163162908e360e11b81528590fd5b905089610482565b349650610455565b90516356620d4b60e11b8152fd5b50346101ea57816003193601126101ea5760035490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57905490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b82346101c457806003193601126101c45761065361089f565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346101ea57816003193601126101ea576020906106b06108cb565b6106b86108ee565b906106f18260018060a01b038060025416907f000000000000000000000000000000000000000000000000000000000000000016610ab4565b6001805551908152f35b50823461027a57602036600319011261027a576107166107e4565b61071e61089f565b6001600160a01b0316918215610769575050600380546001600160a01b031916821790557ff519f52145308d45acc079180416de1f47df9c159f59cf3deef8ab1abc46fd718280a280f35b5163d92e233d60e01b8152fd5b50823461027a57602036600319011261027a576107916107e4565b61079961089f565b6001600160a01b0316918215610769575050600280546001600160a01b031916821790557f5d06b4991f6f56c1ae05df37909ffcc7172f0dad10302701103a5553756aef4f8280a280f35b600435906001600160a01b03821682036107fa57565b600080fd5b346107fa5760003660031901126107fa576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b634e487b7160e01b600052604160045260246000fd5b9190820391821161088957565b634e487b7160e01b600052601160045260246000fd5b6000546001600160a01b031633036108b357565b60405163118cdaa760e01b8152336004820152602490fd5b6002600154146108dc576002600155565b604051633ee5aeb560e01b8152600490fd5b6004805460408051636c82bbbf60e11b8152309381019390935260009290917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169184916020918281602481885afa908115610a3d578491610a47575b508551906303d1689d60e11b825260048201528281602481885afa908115610a3d578491610a10575b5081811161098e575b50505050505090565b8293949596509061099e9161087c565b60248651809681936363737ac960e11b835260048301525afa938415610a05575081936109d4575b505050388080808080610985565b9091809350813d83116109fe575b6109ec8183610844565b810103126101c45750513880806109c6565b503d6109e2565b51913d9150823e3d90fd5b90508281813d8311610a36575b610a278183610844565b8101031261053957513861097c565b503d610a1d565b86513d86823e3d90fd5b90508281813d8311610a6d575b610a5e8183610844565b81010312610539575138610953565b503d610a54565b3d15610aaf573d9067ffffffffffffffff82116108665760405191610aa3601f8201601f191660200184610844565b82523d6000602084013e565b606090565b8215610bae576001600160a01b039081169081610af8575050600080809381935af1610ade610a74565b5015610ae657565b6040516338822c1360e11b8152600490fd5b909260405191602083019363a9059cbb60e01b8552166024830152604482015260448152608081019080821067ffffffffffffffff83111761086657610b5691604052600080938192519082875af1610b4f610a74565b9084610bb3565b908151918215159283610b86575b505050610b6e5750565b60249060405190635274afe760e01b82526004820152fd5b8192935090602091810103126101ea5760200151908115918215036101c45750388080610b64565b505050565b90610bda5750805115610bc857805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610c0d575b610beb575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610be356fea2646970667358221220404248ed1491bc524860b8664d1e6e3e0d431341b1c616d8099803468f9eb22f64736f6c63430008190033000000000000000000000000c90b92d70af24ef1369389f1a1e3887305cd89c900000000000000000000000000000000000000000000000000000000000000000000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6000000000000000000000000888d768764a2e304215247f0ba3457ccb0f0ab4f

Deployed Bytecode

0x6040608081526004908136101561001557600080fd5b600090813560e01c806302d25bfb1461077657806306a2f44a146106fb57806316305cd81461039c5780634e71d92d14610694578063715018a61461063a5780638331ae23146105f75780638da5cb5b146105d05780639915e23d146105a8578063b6b55f2514610419578063c022215c146103fb578063c7e32c21146103df578063ce2931ea1461039c578063df4df11814610374578063e52e43da146101ee578063ef8b30f71461027e578063f2fde38b146101f3578063f3835afb146101ee5763f3fef3a3146100e757600080fd5b346101ea57806003193601126101ea576100ff6107e4565b926024359361010c6108cb565b6003546001600160a01b0390811633036101da577f0000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e61683516363737ac960e11b81528684820152602081602481855afa9586156101cf578096610190575b50509461017d8561018493602098610ab4565b825461087c565b90556001805551908152f35b90919295506020823d6020116101c7575b816101ae60209383610844565b810103126101c4575051939061017d602061016a565b80fd5b3d91506101a1565b8551903d90823e3d90fd5b83516356620d4b60e11b81528390fd5b5080fd5b6107ff565b50823461027a57602036600319011261027a5761020e6107e4565b9061021761089f565b6001600160a01b0391821692831561026457505082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5090346101c457602092836003193601126101ea578251630d5f04d560e21b81528082018390528135929085816024817f000000000000000000000000d664b74274dfeb538d9bac494f3a4760828b02b06001600160a01b03165afa801561036a57829061032c575b63ffffffff9150169182840292848404148415171561031957505090620f424061031292049061087c565b9051908152f35b634e487b7160e01b825260119052602490fd5b508581813d8311610363575b6103428183610844565b810103126101ea575163ffffffff811681036101ea5763ffffffff906102e7565b503d610338565b85513d84823e3d90fd5b50346101ea57816003193601126101ea5760025490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57517f0000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e66001600160a01b03168152602090f35b50346101ea57816003193601126101ea576020906103126108ee565b50823461027a578260031936011261027a5760209250549051908152f35b508290602036600319011261027a576104306108cb565b6003546001600160a01b0392908316330361059a578035928154341580159081610592575b837f000000000000000000000000000000000000000000000000000000000000000016158091819261058a575b5061057a57159081610572575b506105625784810180911161054f5790839183556044825180968193632b725d0360e21b83523087840152600160248401527f000000000000000000000000d664b74274dfeb538d9bac494f3a4760828b02b0165af19384156105445780938195610504575b5050610184602094825461087c565b83809296508195503d831161053d575b61051e8183610844565b810103126105395760209350610184848451940151946104f5565b8380fd5b503d610514565b8251903d90823e3d90fd5b634e487b7160e01b865260118352602486fd5b8351630d4ff4fb60e11b81528390fd5b90508761048f565b855163162908e360e11b81528590fd5b905089610482565b349650610455565b90516356620d4b60e11b8152fd5b50346101ea57816003193601126101ea5760035490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57905490516001600160a01b039091168152602090f35b50346101ea57816003193601126101ea57517f000000000000000000000000d664b74274dfeb538d9bac494f3a4760828b02b06001600160a01b03168152602090f35b82346101c457806003193601126101c45761065361089f565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346101ea57816003193601126101ea576020906106b06108cb565b6106b86108ee565b906106f18260018060a01b038060025416907f0000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e616610ab4565b6001805551908152f35b50823461027a57602036600319011261027a576107166107e4565b61071e61089f565b6001600160a01b0316918215610769575050600380546001600160a01b031916821790557ff519f52145308d45acc079180416de1f47df9c159f59cf3deef8ab1abc46fd718280a280f35b5163d92e233d60e01b8152fd5b50823461027a57602036600319011261027a576107916107e4565b61079961089f565b6001600160a01b0316918215610769575050600280546001600160a01b031916821790557f5d06b4991f6f56c1ae05df37909ffcc7172f0dad10302701103a5553756aef4f8280a280f35b600435906001600160a01b03821682036107fa57565b600080fd5b346107fa5760003660031901126107fa576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b90601f8019910116810190811067ffffffffffffffff82111761086657604052565b634e487b7160e01b600052604160045260246000fd5b9190820391821161088957565b634e487b7160e01b600052601160045260246000fd5b6000546001600160a01b031633036108b357565b60405163118cdaa760e01b8152336004820152602490fd5b6002600154146108dc576002600155565b604051633ee5aeb560e01b8152600490fd5b6004805460408051636c82bbbf60e11b8152309381019390935260009290917f0000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e66001600160a01b03169184916020918281602481885afa908115610a3d578491610a47575b508551906303d1689d60e11b825260048201528281602481885afa908115610a3d578491610a10575b5081811161098e575b50505050505090565b8293949596509061099e9161087c565b60248651809681936363737ac960e11b835260048301525afa938415610a05575081936109d4575b505050388080808080610985565b9091809350813d83116109fe575b6109ec8183610844565b810103126101c45750513880806109c6565b503d6109e2565b51913d9150823e3d90fd5b90508281813d8311610a36575b610a278183610844565b8101031261053957513861097c565b503d610a1d565b86513d86823e3d90fd5b90508281813d8311610a6d575b610a5e8183610844565b81010312610539575138610953565b503d610a54565b3d15610aaf573d9067ffffffffffffffff82116108665760405191610aa3601f8201601f191660200184610844565b82523d6000602084013e565b606090565b8215610bae576001600160a01b039081169081610af8575050600080809381935af1610ade610a74565b5015610ae657565b6040516338822c1360e11b8152600490fd5b909260405191602083019363a9059cbb60e01b8552166024830152604482015260448152608081019080821067ffffffffffffffff83111761086657610b5691604052600080938192519082875af1610b4f610a74565b9084610bb3565b908151918215159283610b86575b505050610b6e5750565b60249060405190635274afe760e01b82526004820152fd5b8192935090602091810103126101ea5760200151908115918215036101c45750388080610b64565b505050565b90610bda5750805115610bc857805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580610c0d575b610beb575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15610be356fea2646970667358221220404248ed1491bc524860b8664d1e6e3e0d431341b1c616d8099803468f9eb22f64736f6c63430008190033

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

000000000000000000000000c90b92d70af24ef1369389f1a1e3887305cd89c900000000000000000000000000000000000000000000000000000000000000000000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6000000000000000000000000888d768764a2e304215247f0ba3457ccb0f0ab4f

-----Decoded View---------------
Arg [0] : _owner (address): 0xc90B92d70AF24eF1369389f1A1E3887305cD89c9
Arg [1] : _obeliskRegistry (address): 0x0000000000000000000000000000000000000000
Arg [2] : _apxETH (address): 0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6
Arg [3] : _rateReceiver (address): 0x888D768764A2E304215247F0bA3457cCb0f0ab4f

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c90b92d70af24ef1369389f1a1e3887305cd89c9
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000009ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6
Arg [3] : 000000000000000000000000888d768764a2e304215247f0ba3457ccb0f0ab4f


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.