APE Price: $0.96 (+0.52%)

Contract

0x9998357A0733814cC3D918e907Afa14B6D47648B

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo14.412660491409960812 APE

APE Value

$13.88 (@ $0.96/APE)

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Distribute Yield90280992025-01-31 10:19:5115 mins ago1738318791IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90274432025-01-31 9:57:5137 mins ago1738317471IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90267762025-01-31 9:35:511 hrs ago1738316151IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90260722025-01-31 9:13:511 hr ago1738314831IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90253812025-01-31 8:51:511 hr ago1738313511IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90246282025-01-31 8:29:512 hrs ago1738312191IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90239822025-01-31 8:07:512 hrs ago1738310871IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90233362025-01-31 7:45:512 hrs ago1738309551IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90227182025-01-31 7:23:513 hrs ago1738308231IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90219412025-01-31 7:01:513 hrs ago1738306911IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90212762025-01-31 6:39:513 hrs ago1738305591IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90205932025-01-31 6:17:514 hrs ago1738304271IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90198442025-01-31 5:55:514 hrs ago1738302951IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90190562025-01-31 5:33:515 hrs ago1738301631IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90183492025-01-31 5:11:515 hrs ago1738300311IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90174192025-01-31 4:49:505 hrs ago1738298990IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90166012025-01-31 4:27:506 hrs ago1738297670IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90158242025-01-31 4:05:506 hrs ago1738296350IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90150462025-01-31 3:43:506 hrs ago1738295030IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90141252025-01-31 3:21:507 hrs ago1738293710IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90131972025-01-31 2:59:507 hrs ago1738292390IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90123402025-01-31 2:37:497 hrs ago1738291069IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90115442025-01-31 2:15:498 hrs ago1738289749IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90105032025-01-31 1:53:498 hrs ago1738288429IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
Distribute Yield90097942025-01-31 1:31:499 hrs ago1738287109IN
0x9998357A...B6D47648B
0 APE0.0024440225.42069
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
90280992025-01-31 10:19:5115 mins ago1738318791
0x9998357A...B6D47648B
21.1836348 APE
90274432025-01-31 9:57:5137 mins ago1738317471
0x9998357A...B6D47648B
21.18808879 APE
90267762025-01-31 9:35:511 hrs ago1738316151
0x9998357A...B6D47648B
21.18492626 APE
90260722025-01-31 9:13:511 hr ago1738314831
0x9998357A...B6D47648B
21.18985517 APE
90253812025-01-31 8:51:511 hr ago1738313511
0x9998357A...B6D47648B
21.18487915 APE
90246282025-01-31 8:29:512 hrs ago1738312191
0x9998357A...B6D47648B
21.18250185 APE
90239822025-01-31 8:07:512 hrs ago1738310871
0x9998357A...B6D47648B
21.18355669 APE
90233362025-01-31 7:45:512 hrs ago1738309551
0x9998357A...B6D47648B
21.18930105 APE
90227182025-01-31 7:23:513 hrs ago1738308231
0x9998357A...B6D47648B
21.18716998 APE
90219412025-01-31 7:01:513 hrs ago1738306911
0x9998357A...B6D47648B
21.18664003 APE
90212762025-01-31 6:39:513 hrs ago1738305591
0x9998357A...B6D47648B
21.18664003 APE
90205932025-01-31 6:17:514 hrs ago1738304271
0x9998357A...B6D47648B
21.19126291 APE
90198442025-01-31 5:55:514 hrs ago1738302951
0x9998357A...B6D47648B
21.18664003 APE
90190562025-01-31 5:33:515 hrs ago1738301631
0x9998357A...B6D47648B
21.18664003 APE
90183492025-01-31 5:11:515 hrs ago1738300311
0x9998357A...B6D47648B
21.20513153 APE
90174192025-01-31 4:49:505 hrs ago1738298990
0x9998357A...B6D47648B
21.18664003 APE
90166012025-01-31 4:27:506 hrs ago1738297670
0x9998357A...B6D47648B
21.18662898 APE
90158242025-01-31 4:05:506 hrs ago1738296350
0x9998357A...B6D47648B
21.1867797 APE
90150462025-01-31 3:43:506 hrs ago1738295030
0x9998357A...B6D47648B
21.18734238 APE
90141252025-01-31 3:21:507 hrs ago1738293710
0x9998357A...B6D47648B
21.18751118 APE
90131972025-01-31 2:59:507 hrs ago1738292390
0x9998357A...B6D47648B
21.20198709 APE
90123402025-01-31 2:37:497 hrs ago1738291069
0x9998357A...B6D47648B
21.18806934 APE
90115442025-01-31 2:15:498 hrs ago1738289749
0x9998357A...B6D47648B
21.187806 APE
90105032025-01-31 1:53:498 hrs ago1738288429
0x9998357A...B6D47648B
21.18772463 APE
90097942025-01-31 1:31:499 hrs ago1738287109
0x9998357A...B6D47648B
21.18772463 APE
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApeDelegate

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 800 runs

Other Settings:
paris EvmVersion
File 1 of 9 : ApeDelegate.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";

import "../interfaces/IGeneralErrors.sol";
import "../interfaces/IWETH9.sol";
import "../interfaces/IGToken.sol";

import "../libraries/NativeYieldUtils.sol";

/**
 * @dev Contract used as Delegate for gTrade's custom wAPE. Receives the Native APE yield and distributes it to gAPE depositors.
 */
contract ApeDelegate is Ownable2Step {
    uint256 public constant MIN_APE_WEI_AMOUNT = 0.01e18; // Minimum amount of APE needed to call `distributeYield`

    IWETH9 public immutable wApe;

    IGToken public gToken;

    event GTokenUpdated(address gToken);
    event YieldDistributed(uint256 amount);

    constructor(IWETH9 _wApe, address _owner) {
        if (address(_wApe) == address(0) || _owner == address(0)) revert IGeneralErrors.ZeroAddress();

        // Set wAPE address
        wApe = _wApe;

        // Transfer ownership
        _transferOwnership(_owner);

        // Switch on Automatic Yield. This call gracefully fails for chains without ArbInfo and NativeYield
        NativeYieldUtils.trySetAutomaticYield();
    }

    /**
     * @dev Receive function. Allows contract to accept native token transfers
     */
    receive() external payable {}

    /**
     * @dev Updated `gToken` address and approves wApe spending
     * @param _gToken the new gToken address
     */
    function setGToken(address _gToken) external onlyOwner {
        if (_gToken == address(0)) revert IGeneralErrors.ZeroAddress();

        // If gToken was previously set, revoke approval
        if (address(gToken) != address(0)) wApe.approve(address(gToken), 0);

        // Approve wApe spending by the new gToken address
        wApe.approve(_gToken, type(uint256).max);

        // Update state variable with new gToken address
        gToken = IGToken(_gToken);

        emit GTokenUpdated(_gToken);
    }

    /**
     * @dev Distributes native yield available to gToken depositors
     */
    function distributeYield() external {
        // If gToken is not yet set then revert
        if (address(gToken) == address(0)) revert IGeneralErrors.ZeroAddress();

        uint256 balance = address(this).balance;

        // Revert if there is not enough yield to distribute
        if (balance < MIN_APE_WEI_AMOUNT) revert IGeneralErrors.BelowMin();

        // Deposit native token to receive wApe
        wApe.deposit{value: balance}();

        // Distribute converted balance
        gToken.distributeReward(balance);

        emit YieldDistributed(balance);
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 3 of 9 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides 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} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 4 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

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;
    }

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

File 5 of 9 : IArbInfo.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @dev Interface for Arbitrum special l2 functions
 */
interface IArbInfo {
    function configureAutomaticYield() external;
    function configureVoidYield() external;
    function configureDelegateYield(address delegate) external;
}

File 6 of 9 : IGeneralErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @dev Interface for errors potentially used in all libraries (general names)
 */
interface IGeneralErrors {
    error InitError();
    error InvalidAddresses();
    error InvalidAddress();
    error InvalidInputLength();
    error InvalidCollateralIndex();
    error WrongParams();
    error WrongLength();
    error WrongOrder();
    error WrongIndex();
    error BlockOrder();
    error Overflow();
    error ZeroAddress();
    error ZeroValue();
    error AlreadyExists();
    error DoesntExist();
    error Paused();
    error BelowMin();
    error AboveMax();
    error NotAuthorized();
    error WrongTradeType();
    error WrongOrderType();
    error InsufficientBalance();
    error UnsupportedChain();
}

File 7 of 9 : IGToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @dev Interface for GToken contract
 */
interface IGToken {
    struct GnsPriceProvider {
        address addr;
        bytes signature;
    }

    struct LockedDeposit {
        address owner;
        uint256 shares; // collateralConfig.precision
        uint256 assetsDeposited; // collateralConfig.precision
        uint256 assetsDiscount; // collateralConfig.precision
        uint256 atTimestamp; // timestamp
        uint256 lockDuration; // timestamp
    }

    struct ContractAddresses {
        address asset;
        address owner; // 2-week timelock contract
        address manager; // 3-day timelock contract
        address admin; // bypasses timelock, access to emergency functions
        address gnsToken;
        address lockedDepositNft;
        address pnlHandler;
        address openTradesPnlFeed;
        GnsPriceProvider gnsPriceProvider;
    }

    struct Meta {
        string name;
        string symbol;
    }

    function manager() external view returns (address);

    function admin() external view returns (address);

    function currentEpoch() external view returns (uint256);

    function currentEpochStart() external view returns (uint256);

    function currentEpochPositiveOpenPnl() external view returns (uint256);

    function updateAccPnlPerTokenUsed(
        uint256 prevPositiveOpenPnl,
        uint256 newPositiveOpenPnl
    ) external returns (uint256);

    function getLockedDeposit(uint256 depositId) external view returns (LockedDeposit memory);

    function sendAssets(uint256 assets, address receiver) external;

    function receiveAssets(uint256 assets, address user) external;

    function distributeReward(uint256 assets) external;

    function tvl() external view returns (uint256);

    function marketCap() external view returns (uint256);

    function shareToAssetsPrice() external view returns (uint256);

    function collateralConfig() external view returns (uint128, uint128);

    event ManagerUpdated(address newValue);
    event AdminUpdated(address newValue);
    event PnlHandlerUpdated(address newValue);
    event OpenTradesPnlFeedUpdated(address newValue);
    event GnsPriceProviderUpdated(GnsPriceProvider newValue);
    event WithdrawLockThresholdsPUpdated(uint256[2] newValue);
    event MaxAccOpenPnlDeltaUpdated(uint256 newValue);
    event MaxDailyAccPnlDeltaUpdated(uint256 newValue);
    event MaxSupplyIncreaseDailyPUpdated(uint256 newValue);
    event LossesBurnPUpdated(uint256 newValue);
    event MaxGnsSupplyMintDailyPUpdated(uint256 newValue);
    event MaxDiscountPUpdated(uint256 newValue);
    event MaxDiscountThresholdPUpdated(uint256 newValue);

    event CurrentMaxSupplyUpdated(uint256 newValue);
    event DailyAccPnlDeltaReset();
    event ShareToAssetsPriceUpdated(uint256 newValue);
    event OpenTradesPnlFeedCallFailed();

    event WithdrawRequested(
        address indexed sender,
        address indexed owner,
        uint256 shares,
        uint256 currEpoch,
        uint256 indexed unlockEpoch
    );
    event WithdrawCanceled(
        address indexed sender,
        address indexed owner,
        uint256 shares,
        uint256 currEpoch,
        uint256 indexed unlockEpoch
    );

    event DepositLocked(address indexed sender, address indexed owner, uint256 depositId, LockedDeposit d);
    event DepositUnlocked(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 depositId,
        LockedDeposit d
    );

    event RewardDistributed(address indexed sender, uint256 assets);

    event AssetsSent(address indexed sender, address indexed receiver, uint256 assets);
    event AssetsReceived(address indexed sender, address indexed user, uint256 assets, uint256 assetsLessDeplete);

    event Depleted(address indexed sender, uint256 assets, uint256 amountGns);
    event Refilled(address indexed sender, uint256 assets, uint256 amountGns);

    event AccPnlPerTokenUsedUpdated(
        address indexed sender,
        uint256 indexed newEpoch,
        uint256 prevPositiveOpenPnl,
        uint256 newPositiveOpenPnl,
        uint256 newEpochPositiveOpenPnl,
        int256 newAccPnlPerTokenUsed
    );

    error OnlyManager();
    error OnlyTradingPnlHandler();
    error OnlyPnlFeed();
    error AddressZero();
    error PriceZero();
    error ValueZero();
    error BytesZero();
    error NoActiveDiscount();
    error BelowMin();
    error AboveMax();
    error WrongValue();
    error WrongValues();
    error GnsPriceCallFailed();
    error GnsTokenPriceZero();
    error PendingWithdrawal();
    error EndOfEpoch();
    error NotAllowed();
    error NoDiscount();
    error NotUnlocked();
    error NotEnoughAssets();
    error MaxDailyPnl();
    error NotUnderCollateralized();
    error AboveInflationLimit();

    // Ownable
    error OwnableInvalidOwner(address owner);

    // ERC4626
    error ERC4626ExceededMaxDeposit();
    error ERC4626ExceededMaxMint();
    error ERC4626ExceededMaxWithdraw();
    error ERC4626ExceededMaxRedeem();
}

File 8 of 9 : IWETH9.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @dev Interface for WETH9 token
 */
interface IWETH9 {
    function approve(address spender, uint256 amount) external returns (bool);

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

    function deposit() external payable;

    function withdraw(uint256) external;

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

    event Approval(address indexed src, address indexed guy, uint256 wad);
    event Transfer(address indexed src, address indexed dst, uint256 wad);
    event Deposit(address indexed dst, uint256 wad);
    event Withdrawal(address indexed src, uint256 wad);
}

File 9 of 9 : NativeYieldUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import "../interfaces/IArbInfo.sol";

/**
 *
 * @dev Library that handles delegating native yield. Only supports Arbitrum Orbit chains.
 */
library NativeYieldUtils {
    address private constant ARB_INFO = address(101);

    event Delegated(address newDelegate, bool success);
    event AutomaticYieldSet(bool success);

    /**
     * @dev Sets the Native Yield delegate for this contract
     * @param _delegate the new delegate. Setting to address(0) disables native yield
     *
     * Emits {Delegated} event
     */
    function trySetDelegate(address _delegate) internal returns (bool success) {
        bytes memory data;

        if (_delegate == address(0)) {
            // If `_delegate` is address(0) then disable yield
            data = abi.encodeWithSelector(IArbInfo.configureVoidYield.selector);
        } else {
            // If `_delegate` is not address(0) then delegate the native yield
            data = abi.encodeWithSelector(IArbInfo.configureDelegateYield.selector, _delegate);
        }

        (success, ) = ARB_INFO.call(data);

        emit Delegated(_delegate, success);
    }

    /**
     * @dev Sets the Native Yield mode to Automatic
     */
    function trySetAutomaticYield() internal returns (bool success) {
        (success, ) = ARB_INFO.call(abi.encodeWithSelector(IArbInfo.configureAutomaticYield.selector));

        emit AutomaticYieldSet(success);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IWETH9","name":"_wApe","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BelowMin","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"AutomaticYieldSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gToken","type":"address"}],"name":"GTokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"YieldDistributed","type":"event"},{"inputs":[],"name":"MIN_APE_WEI_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gToken","outputs":[{"internalType":"contract IGToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gToken","type":"address"}],"name":"setGToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wApe","outputs":[{"internalType":"contract IWETH9","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405234801561001057600080fd5b506040516109fc3803806109fc83398101604081905261002f916101d3565b61003833610099565b6001600160a01b038216158061005557506001600160a01b038116155b156100735760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b03821660805261008981610099565b6100916100b5565b50505061023c565b600180546001600160a01b03191690556100b28161016e565b50565b60408051600481526024810182526020810180516001600160e01b031663388a0bbd60e11b17905290516000916065916100ef919061020d565b6000604051808303816000865af19150503d806000811461012c576040519150601f19603f3d011682016040523d82523d6000602084013e610131565b606091505b505060405181151581529091507fe53ed370ae01bd355d5431f0a8e64999d2d4ae1c3130fbd0ff99ce9fed1e1ea99060200160405180910390a190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100b257600080fd5b600080604083850312156101e657600080fd5b82516101f1816101be565b6020840151909250610202816101be565b809150509250929050565b6000825160005b8181101561022e5760208186018101518583015201610214565b506000920191825250919050565b60805161079061026c600039600081816101b8015281816102810152818161031901526104d701526107906000f3fe6080604052600436106100b55760003560e01c80638a570a1211610069578063b42558d21161004e578063b42558d2146101a6578063e30c3978146101da578063f2fde38b146101f857600080fd5b80638a570a12146101735780638da5cb5b1461018857600080fd5b8063715018a61161009a578063715018a61461011157806376ffb9bd1461012657806379ba50971461015e57600080fd5b80630467366d146100c15780634d9c0775146100ef57600080fd5b366100bc57005b600080fd5b3480156100cd57600080fd5b506100dc662386f26fc1000081565b6040519081526020015b60405180910390f35b3480156100fb57600080fd5b5061010f61010a366004610708565b610218565b005b34801561011d57600080fd5b5061010f6103dc565b34801561013257600080fd5b50600254610146906001600160a01b031681565b6040516001600160a01b0390911681526020016100e6565b34801561016a57600080fd5b5061010f6103f0565b34801561017f57600080fd5b5061010f610483565b34801561019457600080fd5b506000546001600160a01b0316610146565b3480156101b257600080fd5b506101467f000000000000000000000000000000000000000000000000000000000000000081565b3480156101e657600080fd5b506001546001600160a01b0316610146565b34801561020457600080fd5b5061010f610213366004610708565b6105d9565b61022061064a565b6001600160a01b0381166102475760405163d92e233d60e01b815260040160405180910390fd5b6002546001600160a01b0316156102f25760025460405163095ea7b360e01b81526001600160a01b039182166004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000009091169063095ea7b3906044016020604051808303816000875af11580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610738565b505b60405163095ea7b360e01b81526001600160a01b03828116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016020604051808303816000875af1158015610362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103869190610738565b50600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fcc5d23b1a3c49657282b545fa506eae7d2689c9cf2985229e6132d1360fdda6b906020015b60405180910390a150565b6103e461064a565b6103ee60006106a4565b565b60015433906001600160a01b031681146104775760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610480816106a4565b50565b6002546001600160a01b03166104ac5760405163d92e233d60e01b815260040160405180910390fd5b47662386f26fc100008110156104d5576040516310906acb60e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561053057600080fd5b505af1158015610544573d6000803e3d6000fd5b505060025460405163940a4e4560e01b8152600481018690526001600160a01b03909116935063940a4e4592506024019050600060405180830381600087803b15801561059057600080fd5b505af11580156105a4573d6000803e3d6000fd5b505050507fe8ed0a697f15301f06fd3d30bc896682e7826c5397076a3eda05844cfc356480816040516103d191815260200190565b6105e161064a565b600180546001600160a01b0383166001600160a01b031990911681179091556106126000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146103ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046e565b600180546001600160a01b031916905561048081600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561071a57600080fd5b81356001600160a01b038116811461073157600080fd5b9392505050565b60006020828403121561074a57600080fd5b8151801515811461073157600080fdfea2646970667358221220618174143a19b2afb6652cba2c31249d4b0efb030bb9809d833f706f177cca0564736f6c6343000817003300000000000000000000000000000000000f7e000644657dc9417b185962645a000000000000000000000000ec9581354f7750bc8194e3e801f8ee1d91e2a8ac

Deployed Bytecode

0x6080604052600436106100b55760003560e01c80638a570a1211610069578063b42558d21161004e578063b42558d2146101a6578063e30c3978146101da578063f2fde38b146101f857600080fd5b80638a570a12146101735780638da5cb5b1461018857600080fd5b8063715018a61161009a578063715018a61461011157806376ffb9bd1461012657806379ba50971461015e57600080fd5b80630467366d146100c15780634d9c0775146100ef57600080fd5b366100bc57005b600080fd5b3480156100cd57600080fd5b506100dc662386f26fc1000081565b6040519081526020015b60405180910390f35b3480156100fb57600080fd5b5061010f61010a366004610708565b610218565b005b34801561011d57600080fd5b5061010f6103dc565b34801561013257600080fd5b50600254610146906001600160a01b031681565b6040516001600160a01b0390911681526020016100e6565b34801561016a57600080fd5b5061010f6103f0565b34801561017f57600080fd5b5061010f610483565b34801561019457600080fd5b506000546001600160a01b0316610146565b3480156101b257600080fd5b506101467f00000000000000000000000000000000000f7e000644657dc9417b185962645a81565b3480156101e657600080fd5b506001546001600160a01b0316610146565b34801561020457600080fd5b5061010f610213366004610708565b6105d9565b61022061064a565b6001600160a01b0381166102475760405163d92e233d60e01b815260040160405180910390fd5b6002546001600160a01b0316156102f25760025460405163095ea7b360e01b81526001600160a01b039182166004820152600060248201527f00000000000000000000000000000000000f7e000644657dc9417b185962645a9091169063095ea7b3906044016020604051808303816000875af11580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610738565b505b60405163095ea7b360e01b81526001600160a01b03828116600483015260001960248301527f00000000000000000000000000000000000f7e000644657dc9417b185962645a169063095ea7b3906044016020604051808303816000875af1158015610362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103869190610738565b50600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fcc5d23b1a3c49657282b545fa506eae7d2689c9cf2985229e6132d1360fdda6b906020015b60405180910390a150565b6103e461064a565b6103ee60006106a4565b565b60015433906001600160a01b031681146104775760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610480816106a4565b50565b6002546001600160a01b03166104ac5760405163d92e233d60e01b815260040160405180910390fd5b47662386f26fc100008110156104d5576040516310906acb60e01b815260040160405180910390fd5b7f00000000000000000000000000000000000f7e000644657dc9417b185962645a6001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561053057600080fd5b505af1158015610544573d6000803e3d6000fd5b505060025460405163940a4e4560e01b8152600481018690526001600160a01b03909116935063940a4e4592506024019050600060405180830381600087803b15801561059057600080fd5b505af11580156105a4573d6000803e3d6000fd5b505050507fe8ed0a697f15301f06fd3d30bc896682e7826c5397076a3eda05844cfc356480816040516103d191815260200190565b6105e161064a565b600180546001600160a01b0383166001600160a01b031990911681179091556106126000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146103ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161046e565b600180546001600160a01b031916905561048081600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561071a57600080fd5b81356001600160a01b038116811461073157600080fd5b9392505050565b60006020828403121561074a57600080fd5b8151801515811461073157600080fdfea2646970667358221220618174143a19b2afb6652cba2c31249d4b0efb030bb9809d833f706f177cca0564736f6c63430008170033

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

00000000000000000000000000000000000f7e000644657dc9417b185962645a000000000000000000000000ec9581354f7750bc8194e3e801f8ee1d91e2a8ac

-----Decoded View---------------
Arg [0] : _wApe (address): 0x00000000000f7e000644657dC9417b185962645a
Arg [1] : _owner (address): 0xec9581354f7750Bc8194E3e801f8eE1D91e2a8Ac

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000f7e000644657dc9417b185962645a
Arg [1] : 000000000000000000000000ec9581354f7750bc8194e3e801f8ee1d91e2a8ac


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