ETH Price: $3,431.96 (+5.42%)
Gas: 8 Gwei

Contract

0xf35b31B941D94B249EaDED041DB1b05b7097fEb6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem201715252024-06-25 21:56:5919 days ago1719352619IN
0xf35b31B9...b7097fEb6
0 ETH0.000734993.55686537
Deposit201451982024-06-22 5:36:1123 days ago1719034571IN
0xf35b31B9...b7097fEb6
0 ETH0.000482382.22117046
Redeem197183202024-04-23 13:13:4783 days ago1713878027IN
0xf35b31B9...b7097fEb6
0 ETH0.0027920312.74892077
Deposit197143602024-04-22 23:57:3583 days ago1713830255IN
0xf35b31B9...b7097fEb6
0 ETH0.001315266.57381395
Deposit196536022024-04-14 11:53:5992 days ago1713095639IN
0xf35b31B9...b7097fEb6
0 ETH0.0022136410.42207606
Deposit196094932024-04-08 7:33:5998 days ago1712561639IN
0xf35b31B9...b7097fEb6
0 ETH0.0026441312.17375556
Redeem195184732024-03-26 11:59:35111 days ago1711454375IN
0xf35b31B9...b7097fEb6
0 ETH0.0056148125.6381783
Approve194819502024-03-21 8:48:11116 days ago1711010891IN
0xf35b31B9...b7097fEb6
0 ETH0.0012938927.77841921
Deposit194818962024-03-21 8:37:11116 days ago1711010231IN
0xf35b31B9...b7097fEb6
0 ETH0.0062716228.8780664
Deposit194714912024-03-19 21:32:59118 days ago1710883979IN
0xf35b31B9...b7097fEb6
0 ETH0.007503934.55220321
Redeem193887252024-03-08 6:41:23129 days ago1709880083IN
0xf35b31B9...b7097fEb6
0 ETH0.0091333841.70455162
Deposit193637162024-03-04 18:53:23133 days ago1709578403IN
0xf35b31B9...b7097fEb6
0 ETH0.020342193.65608816
Deposit193487182024-03-02 16:36:59135 days ago1709397419IN
0xf35b31B9...b7097fEb6
0 ETH0.0117333854.02109762
Deposit193466942024-03-02 9:49:47135 days ago1709372987IN
0xf35b31B9...b7097fEb6
0 ETH0.0096756243.58862493
Deposit193399532024-03-01 11:13:11136 days ago1709291591IN
0xf35b31B9...b7097fEb6
0 ETH0.0095149943.80754666
Deposit193385872024-03-01 6:39:11136 days ago1709275151IN
0xf35b31B9...b7097fEb6
0 ETH0.0106220647.85489999
Deposit193365362024-02-29 23:45:47136 days ago1709250347IN
0xf35b31B9...b7097fEb6
0 ETH0.0128311263.97235205
Deposit193365272024-02-29 23:43:59136 days ago1709250239IN
0xf35b31B9...b7097fEb6
0 ETH0.012399755.95536489
Redeem193360202024-02-29 22:02:23136 days ago1709244143IN
0xf35b31B9...b7097fEb6
0 ETH0.0176748679.7832531
Deposit193359392024-02-29 21:46:11137 days ago1709243171IN
0xf35b31B9...b7097fEb6
0 ETH0.0198589985.16742078
Deposit193234142024-02-28 3:40:23138 days ago1709091623IN
0xf35b31B9...b7097fEb6
0 ETH0.0071480632.20547359
Redeem191502712024-02-03 20:41:23163 days ago1706992883IN
0xf35b31B9...b7097fEb6
0 ETH0.0035563117.61615675
Redeem190127392024-01-15 14:00:47182 days ago1705327247IN
0xf35b31B9...b7097fEb6
0 ETH0.0080412636.90721197
Redeem189622232024-01-08 12:13:11189 days ago1704715991IN
0xf35b31B9...b7097fEb6
0 ETH0.0044267620.21333604
Deposit189047942023-12-31 10:13:35197 days ago1704017615IN
0xf35b31B9...b7097fEb6
0 ETH0.0025923811.93546805
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MagicApe

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : MagicApe.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "BoringSolidity/BoringOwnable.sol";
import "BoringSolidity/libraries/BoringERC20.sol";
import "./ERC4626.sol";
import "interfaces/IApeCoinStaking.sol";

/// @dev adapted from https://ape.tessera.co/
/// https://etherscan.io/address/0x7966c5bae631294d7cffcea5430b78c2f76db6fa
contract MagicApe is ERC4626, BoringOwnable {
    using BoringERC20 for ERC20;

    error ErrInvalidFeePercent();

    event LogHarvest(uint256 totalRewards, uint256 userRewards, uint256 fees);
    event LogFeeParametersChanged(address indexed feeCollector, uint16 feeAmount);
    event LogStrategyExecutorChanged(address indexed executor, bool allowed);

    // ApeCoinStaking requires at least 1 APE per deposit.
    uint256 public constant MIN_DEPOSIT = 1e18;
    uint256 public constant BIPS = 10_000;

    IApeCoinStaking public immutable staking;
    uint16 public feePercentBips;
    address public feeCollector;

    constructor(
        ERC20 __asset,
        string memory _name,
        string memory _symbol,
        IApeCoinStaking _staking
    ) {
        _asset = __asset;
        name = _name;
        symbol = _symbol;
        staking = _staking;
        
        __asset.approve(address(_staking), type(uint256).max);
    }

    function setFeeParameters(address _feeCollector, uint16 _feePercentBips) external onlyOwner {
        if (feePercentBips > BIPS) {
            revert ErrInvalidFeePercent();
        }

        feeCollector = _feeCollector;
        feePercentBips = _feePercentBips;

        emit LogFeeParametersChanged(_feeCollector, _feePercentBips);
    }

    function totalAssets() public view override returns (uint256) {
        uint256 balance = _asset.balanceOf(address(this));
        uint256 staked = staking.stakedTotal(address(this));
        uint256 pending = staking.pendingRewards(0, address(this), 0);
        uint256 fees = (pending * feePercentBips) / BIPS;
        return balance + staked + pending - fees;
    }

    function _afterDeposit(uint256, uint256) internal override {
        harvest();
    }

    function _beforeWithdraw(uint256 assets, uint256) internal override {
        harvest();
        staking.withdrawApeCoin(assets, address(this));
    }

    function harvest() public {
        uint256 rewards = staking.pendingRewards(0, address(this), 0);

        if (rewards > 0) {
            uint256 fees = (rewards * feePercentBips) / BIPS;

            staking.claimApeCoin(address(this));
            _asset.safeTransfer(feeCollector, fees);

            emit LogHarvest(rewards, rewards - fees, fees);
        }

        uint256 balance = _asset.balanceOf(address(this));
        if (balance >= MIN_DEPOSIT) {
            staking.depositApeCoin(balance, address(this));
        }
    }
}

File 2 of 10 : BoringOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// Source: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol + Claimable.sol
// Simplified by BoringCrypto

contract BoringOwnableData {
    address public owner;
    address public pendingOwner;
}

contract BoringOwnable is BoringOwnableData {
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /// @notice `owner` defaults to msg.sender on construction.
    constructor() {
        owner = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    /// @notice Transfers ownership to `newOwner`. Either directly or claimable by the new pending owner.
    /// Can only be invoked by the current `owner`.
    /// @param newOwner Address of the new owner.
    /// @param direct True if `newOwner` should be set immediately. False if `newOwner` needs to use `claimOwnership`.
    /// @param renounce Allows the `newOwner` to be `address(0)` if `direct` and `renounce` is True. Has no effect otherwise.
    function transferOwnership(
        address newOwner,
        bool direct,
        bool renounce
    ) public onlyOwner {
        if (direct) {
            // Checks
            require(newOwner != address(0) || renounce, "Ownable: zero address");

            // Effects
            emit OwnershipTransferred(owner, newOwner);
            owner = newOwner;
            pendingOwner = address(0);
        } else {
            // Effects
            pendingOwner = newOwner;
        }
    }

    /// @notice Needs to be called by `pendingOwner` to claim ownership.
    function claimOwnership() public {
        address _pendingOwner = pendingOwner;

        // Checks
        require(msg.sender == _pendingOwner, "Ownable: caller != pending owner");

        // Effects
        emit OwnershipTransferred(owner, _pendingOwner);
        owner = _pendingOwner;
        pendingOwner = address(0);
    }

    /// @notice Only allows the `owner` to execute the function.
    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }
}

File 3 of 10 : Domain.sol
// SPDX-License-Identifier: MIT
// Based on code and smartness by Ross Campbell and Keno
// Uses immutable to store the domain separator to reduce gas usage
// If the chain id changes due to a fork, the forked chain will calculate on the fly.
pragma solidity ^0.8.0;

// solhint-disable no-inline-assembly

contract Domain {
    bytes32 private constant DOMAIN_SEPARATOR_SIGNATURE_HASH = keccak256("EIP712Domain(uint256 chainId,address verifyingContract)");
    // See https://eips.ethereum.org/EIPS/eip-191
    string private constant EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA = "\x19\x01";

    // solhint-disable var-name-mixedcase
    bytes32 private immutable _DOMAIN_SEPARATOR;
    uint256 private immutable DOMAIN_SEPARATOR_CHAIN_ID;

    /// @dev Calculate the DOMAIN_SEPARATOR
    function _calculateDomainSeparator(uint256 chainId) private view returns (bytes32) {
        return keccak256(abi.encode(DOMAIN_SEPARATOR_SIGNATURE_HASH, chainId, address(this)));
    }

    constructor() {
        _DOMAIN_SEPARATOR = _calculateDomainSeparator(DOMAIN_SEPARATOR_CHAIN_ID = block.chainid);
    }

    /// @dev Return the DOMAIN_SEPARATOR
    // It's named internal to allow making it public from the contract that uses it by creating a simple view function
    // with the desired public name, such as DOMAIN_SEPARATOR or domainSeparator.
    // solhint-disable-next-line func-name-mixedcase
    function _domainSeparator() internal view returns (bytes32) {
        return block.chainid == DOMAIN_SEPARATOR_CHAIN_ID ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(block.chainid);
    }

    function _getDigest(bytes32 dataHash) internal view returns (bytes32 digest) {
        digest = keccak256(abi.encodePacked(EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA, _domainSeparator(), dataHash));
    }
}

File 4 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IERC20.sol";
import "./Domain.sol";

// solhint-disable no-inline-assembly
// solhint-disable not-rely-on-time

// Data part taken out for building of contracts that receive delegate calls
contract ERC20Data {
    /// @notice owner > balance mapping.
    mapping(address => uint256) public balanceOf;
    /// @notice owner > spender > allowance mapping.
    mapping(address => mapping(address => uint256)) public allowance;
    /// @notice owner > nonce mapping. Used in `permit`.
    mapping(address => uint256) public nonces;
}

abstract contract ERC20 is IERC20, Domain {
    /// @notice owner > balance mapping.
    mapping(address => uint256) public override balanceOf;
    /// @notice owner > spender > allowance mapping.
    mapping(address => mapping(address => uint256)) public override allowance;
    /// @notice owner > nonce mapping. Used in `permit`.
    mapping(address => uint256) public nonces;

    /// @notice Transfers `amount` tokens from `msg.sender` to `to`.
    /// @param to The address to move the tokens.
    /// @param amount of the tokens to move.
    /// @return (bool) Returns True if succeeded.
    function transfer(address to, uint256 amount) public returns (bool) {
        // If `amount` is 0, or `msg.sender` is `to` nothing happens
        if (amount != 0 || msg.sender == to) {
            uint256 srcBalance = balanceOf[msg.sender];
            require(srcBalance >= amount, "ERC20: balance too low");
            if (msg.sender != to) {
                require(to != address(0), "ERC20: no zero address"); // Moved down so low balance calls safe some gas

                balanceOf[msg.sender] = srcBalance - amount; // Underflow is checked
                balanceOf[to] += amount;
            }
        }
        emit Transfer(msg.sender, to, amount);
        return true;
    }

    /// @notice Transfers `amount` tokens from `from` to `to`. Caller needs approval for `from`.
    /// @param from Address to draw tokens from.
    /// @param to The address to move the tokens.
    /// @param amount The token amount to move.
    /// @return (bool) Returns True if succeeded.
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public returns (bool) {
        // If `amount` is 0, or `from` is `to` nothing happens
        if (amount != 0) {
            uint256 srcBalance = balanceOf[from];
            require(srcBalance >= amount, "ERC20: balance too low");

            if (from != to) {
                uint256 spenderAllowance = allowance[from][msg.sender];
                // If allowance is infinite, don't decrease it to save on gas (breaks with EIP-20).
                if (spenderAllowance != type(uint256).max) {
                    require(spenderAllowance >= amount, "ERC20: allowance too low");
                    allowance[from][msg.sender] = spenderAllowance - amount; // Underflow is checked
                }
                require(to != address(0), "ERC20: no zero address"); // Moved down so other failed calls safe some gas

                balanceOf[from] = srcBalance - amount; // Underflow is checked
                balanceOf[to] += amount;
            }
        }
        emit Transfer(from, to, amount);
        return true;
    }

    /// @notice Approves `amount` from sender to be spend by `spender`.
    /// @param spender Address of the party that can draw from msg.sender's account.
    /// @param amount The maximum collective amount that `spender` can draw.
    /// @return (bool) Returns True if approved.
    function approve(address spender, uint256 amount) public override returns (bool) {
        allowance[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32) {
        return _domainSeparator();
    }

    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 private constant PERMIT_SIGNATURE_HASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;

    /// @notice Approves `value` from `owner_` to be spend by `spender`.
    /// @param owner_ Address of the owner.
    /// @param spender The address of the spender that gets approved to draw from `owner_`.
    /// @param value The maximum collective amount that `spender` can draw.
    /// @param deadline This permit must be redeemed before this deadline (UTC timestamp in seconds).
    function permit(
        address owner_,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(owner_ != address(0), "ERC20: Owner cannot be 0");
        require(block.timestamp < deadline, "ERC20: Expired");
        require(
            ecrecover(_getDigest(keccak256(abi.encode(PERMIT_SIGNATURE_HASH, owner_, spender, value, nonces[owner_]++, deadline))), v, r, s) ==
                owner_,
            "ERC20: Invalid Signature"
        );
        allowance[owner_][spender] = value;
        emit Approval(owner_, spender, value);
    }
}

contract ERC20WithSupply is IERC20, ERC20 {
    uint256 public override totalSupply;

    function _mint(address user, uint256 amount) internal {
        uint256 newTotalSupply = totalSupply + amount;
        require(newTotalSupply >= totalSupply, "Mint overflow");
        totalSupply = newTotalSupply;
        balanceOf[user] += amount;
        emit Transfer(address(0), user, amount);
    }

    function _burn(address user, uint256 amount) internal {
        require(balanceOf[user] >= amount, "Burn too much");
        totalSupply -= amount;
        balanceOf[user] -= amount;
        emit Transfer(user, address(0), amount);
    }
}

File 5 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20 {
    // transfer and tranferFrom have been removed, because they don't work on all tokens (some aren't ERC20 complaint).
    // By removing them you can't accidentally use them.
    // name, symbol and decimals have been removed, because they are optional and sometimes wrongly implemented (MKR).
    // Use BoringERC20 with `using BoringERC20 for IERC20` and call `safeTransfer`, `safeTransferFrom`, etc instead.
    function totalSupply() external view returns (uint256);

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

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

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

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /// @notice EIP 2612
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

interface IStrictERC20 {
    // This is the strict ERC20 interface. Don't use this, certainly not if you don't control the ERC20 token you're calling.
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint256);
    function balanceOf(address _owner) external view returns (uint256 balance);
    function transfer(address _to, uint256 _value) external returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);
    function approve(address _spender, uint256 _value) external returns (bool success);
    function allowance(address _owner, address _spender) external view returns (uint256 remaining);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /// @notice EIP 2612
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

File 6 of 10 : BoringERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../interfaces/IERC20.sol";

// solhint-disable avoid-low-level-calls

library BoringERC20 {
    bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol()
    bytes4 private constant SIG_NAME = 0x06fdde03; // name()
    bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals()
    bytes4 private constant SIG_BALANCE_OF = 0x70a08231; // balanceOf(address)
    bytes4 private constant SIG_TOTALSUPPLY = 0x18160ddd; // balanceOf(address)
    bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256)
    bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256)

    function returnDataToString(bytes memory data) internal pure returns (string memory) {
        if (data.length >= 64) {
            return abi.decode(data, (string));
        } else if (data.length == 32) {
            uint8 i = 0;
            while (i < 32 && data[i] != 0) {
                i++;
            }
            bytes memory bytesArray = new bytes(i);
            for (i = 0; i < 32 && data[i] != 0; i++) {
                bytesArray[i] = data[i];
            }
            return string(bytesArray);
        } else {
            return "???";
        }
    }

    /// @notice Provides a safe ERC20.symbol version which returns '???' as fallback string.
    /// @param token The address of the ERC-20 token contract.
    /// @return (string) Token symbol.
    function safeSymbol(IERC20 token) internal view returns (string memory) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_SYMBOL));
        return success ? returnDataToString(data) : "???";
    }

    /// @notice Provides a safe ERC20.name version which returns '???' as fallback string.
    /// @param token The address of the ERC-20 token contract.
    /// @return (string) Token name.
    function safeName(IERC20 token) internal view returns (string memory) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_NAME));
        return success ? returnDataToString(data) : "???";
    }

    /// @notice Provides a safe ERC20.decimals version which returns '18' as fallback value.
    /// @param token The address of the ERC-20 token contract.
    /// @return (uint8) Token decimals.
    function safeDecimals(IERC20 token) internal view returns (uint8) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_DECIMALS));
        return success && data.length == 32 ? abi.decode(data, (uint8)) : 18;
    }

    /// @notice Provides a gas-optimized balance check to avoid a redundant extcodesize check in addition to the returndatasize check.
    /// @param token The address of the ERC-20 token.
    /// @param to The address of the user to check.
    /// @return amount The token amount.
    function safeBalanceOf(IERC20 token, address to) internal view returns (uint256 amount) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_BALANCE_OF, to));
        require(success && data.length >= 32, "BoringERC20: BalanceOf failed");
        amount = abi.decode(data, (uint256));
    }

    /// @notice Provides a gas-optimized totalSupply to avoid a redundant extcodesize check in addition to the returndatasize check.
    /// @param token The address of the ERC-20 token.
    /// @return totalSupply The token totalSupply.
    function safeTotalSupply(IERC20 token) internal view returns (uint256 totalSupply) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_TOTALSUPPLY));
        require(success && data.length >= 32, "BoringERC20: totalSupply failed");
        totalSupply = abi.decode(data, (uint256));
    }

    /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransfer(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER, to, amount));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed");
    }

    /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param from Transfer tokens from.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed");
    }
}

File 7 of 10 : FixedPointMathLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Arithmetic library with operations for fixed-point numbers.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/FixedPointMathLib.sol)
/// @author Inspired by USM (https://github.com/usmfum/USM/blob/master/contracts/WadMath.sol)
library FixedPointMathLib {
    /*//////////////////////////////////////////////////////////////
                    SIMPLIFIED FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    uint256 internal constant WAD = 1e18; // The scalar of ETH and most ERC20s.

    function mulWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, y, WAD); // Equivalent to (x * y) / WAD rounded down.
    }

    function mulWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, y, WAD); // Equivalent to (x * y) / WAD rounded up.
    }

    function divWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, WAD, y); // Equivalent to (x * WAD) / y rounded down.
    }

    function divWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, WAD, y); // Equivalent to (x * WAD) / y rounded up.
    }

    /*//////////////////////////////////////////////////////////////
                    LOW LEVEL FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function mulDivDown(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // Divide z by the denominator.
            z := div(z, denominator)
        }
    }

    function mulDivUp(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // First, divide z - 1 by the denominator and add 1.
            // We allow z - 1 to underflow if z is 0, because we multiply the
            // end result by 0 if z is zero, ensuring we return 0 if z is zero.
            z := mul(iszero(iszero(z)), add(div(sub(z, 1), denominator), 1))
        }
    }

    function rpow(
        uint256 x,
        uint256 n,
        uint256 scalar
    ) internal pure returns (uint256 z) {
        assembly {
            switch x
            case 0 {
                switch n
                case 0 {
                    // 0 ** 0 = 1
                    z := scalar
                }
                default {
                    // 0 ** n = 0
                    z := 0
                }
            }
            default {
                switch mod(n, 2)
                case 0 {
                    // If n is even, store scalar in z for now.
                    z := scalar
                }
                default {
                    // If n is odd, store x in z for now.
                    z := x
                }

                // Shifting right by 1 is like dividing by 2.
                let half := shr(1, scalar)

                for {
                    // Shift n right by 1 before looping to halve it.
                    n := shr(1, n)
                } n {
                    // Shift n right by 1 each iteration to halve it.
                    n := shr(1, n)
                } {
                    // Revert immediately if x ** 2 would overflow.
                    // Equivalent to iszero(eq(div(xx, x), x)) here.
                    if shr(128, x) {
                        revert(0, 0)
                    }

                    // Store x squared.
                    let xx := mul(x, x)

                    // Round to the nearest number.
                    let xxRound := add(xx, half)

                    // Revert if xx + half overflowed.
                    if lt(xxRound, xx) {
                        revert(0, 0)
                    }

                    // Set x to scaled xxRound.
                    x := div(xxRound, scalar)

                    // If n is even:
                    if mod(n, 2) {
                        // Compute z * x.
                        let zx := mul(z, x)

                        // If z * x overflowed:
                        if iszero(eq(div(zx, x), z)) {
                            // Revert if x is non-zero.
                            if iszero(iszero(x)) {
                                revert(0, 0)
                            }
                        }

                        // Round to the nearest number.
                        let zxRound := add(zx, half)

                        // Revert if zx + half overflowed.
                        if lt(zxRound, zx) {
                            revert(0, 0)
                        }

                        // Return properly scaled zxRound.
                        z := div(zxRound, scalar)
                    }
                }
            }
        }
    }

    /*//////////////////////////////////////////////////////////////
                        GENERAL NUMBER UTILITIES
    //////////////////////////////////////////////////////////////*/

    function sqrt(uint256 x) internal pure returns (uint256 z) {
        assembly {
            // Start off with z at 1.
            z := 1

            // Used below to help find a nearby power of 2.
            let y := x

            // Find the lowest power of 2 that is at least sqrt(x).
            if iszero(lt(y, 0x100000000000000000000000000000000)) {
                y := shr(128, y) // Like dividing by 2 ** 128.
                z := shl(64, z) // Like multiplying by 2 ** 64.
            }
            if iszero(lt(y, 0x10000000000000000)) {
                y := shr(64, y) // Like dividing by 2 ** 64.
                z := shl(32, z) // Like multiplying by 2 ** 32.
            }
            if iszero(lt(y, 0x100000000)) {
                y := shr(32, y) // Like dividing by 2 ** 32.
                z := shl(16, z) // Like multiplying by 2 ** 16.
            }
            if iszero(lt(y, 0x10000)) {
                y := shr(16, y) // Like dividing by 2 ** 16.
                z := shl(8, z) // Like multiplying by 2 ** 8.
            }
            if iszero(lt(y, 0x100)) {
                y := shr(8, y) // Like dividing by 2 ** 8.
                z := shl(4, z) // Like multiplying by 2 ** 4.
            }
            if iszero(lt(y, 0x10)) {
                y := shr(4, y) // Like dividing by 2 ** 4.
                z := shl(2, z) // Like multiplying by 2 ** 2.
            }
            if iszero(lt(y, 0x8)) {
                // Equivalent to 2 ** z.
                z := shl(1, z)
            }

            // Shifting right by 1 is like dividing by 2.
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))

            // Compute a rounded down version of z.
            let zRoundDown := div(x, z)

            // If zRoundDown is smaller, use it.
            if lt(zRoundDown, z) {
                z := zRoundDown
            }
        }
    }
}

File 8 of 10 : IApeCoinStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0 <0.9.0;
pragma experimental ABIEncoderV2;

interface IApeCoinStaking {
    struct PairNft {
        uint128 mainTokenId;
        uint128 bakcTokenId;
    }

    struct PairNftDepositWithAmount {
        uint32 mainTokenId;
        uint32 bakcTokenId;
        uint184 amount;
    }

    struct SingleNft {
        uint32 tokenId;
        uint224 amount;
    }

    struct DashboardStake {
        uint256 poolId;
        uint256 tokenId;
        uint256 deposited;
        uint256 unclaimed;
        uint256 rewards24hr;
        DashboardPair pair;
    }

    struct DashboardPair {
        uint256 mainTokenId;
        uint256 mainTypePoolId;
    }

    struct PoolUI {
        uint256 poolId;
        uint256 stakedAmount;
        TimeRange currentTimeRange;
    }

    struct TimeRange {
        uint48 startTimestampHour;
        uint48 endTimestampHour;
        uint96 rewardsPerHour;
        uint96 capPerPosition;
    }

    struct PairNftWithdrawWithAmount {
        uint32 mainTokenId;
        uint32 bakcTokenId;
        uint184 amount;
        bool isUncommit;
    }

    event ClaimRewards(address indexed user, uint256 amount, address recipient);
    event ClaimRewardsNft(address indexed user, uint256 indexed poolId, uint256 amount, uint256 tokenId);
    event ClaimRewardsPairNft(address indexed user, uint256 amount, uint256 mainTypePoolId, uint256 mainTokenId, uint256 bakcTokenId);
    event Deposit(address indexed user, uint256 amount, address recipient);
    event DepositNft(address indexed user, uint256 indexed poolId, uint256 amount, uint256 tokenId);
    event DepositPairNft(address indexed user, uint256 amount, uint256 mainTypePoolId, uint256 mainTokenId, uint256 bakcTokenId);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    event UpdatePool(uint256 indexed poolId, uint256 lastRewardedBlock, uint256 stakedAmount, uint256 accumulatedRewardsPerShare);
    event Withdraw(address indexed user, uint256 amount, address recipient);
    event WithdrawNft(address indexed user, uint256 indexed poolId, uint256 amount, address recipient, uint256 tokenId);
    event WithdrawPairNft(address indexed user, uint256 amount, uint256 mainTypePoolId, uint256 mainTokenId, uint256 bakcTokenId);

    function addTimeRange(
        uint256 _poolId,
        uint256 _amount,
        uint256 _startTimestamp,
        uint256 _endTimeStamp,
        uint256 _capPerPosition
    ) external;

    function addressPosition(address) external view returns (uint256 stakedAmount, int256 rewardsDebt);

    function apeCoin() external view returns (address);

    function bakcToMain(uint256, uint256) external view returns (uint248 tokenId, bool isPaired);

    function claimApeCoin(address _recipient) external;

    function claimBAKC(PairNft[] memory _baycPairs, PairNft[] memory _maycPairs, address _recipient) external;

    function claimBAYC(uint256[] memory _nfts, address _recipient) external;

    function claimMAYC(uint256[] memory _nfts, address _recipient) external;

    function claimSelfApeCoin() external;

    function claimSelfBAKC(PairNft[] memory _baycPairs, PairNft[] memory _maycPairs) external;

    function claimSelfBAYC(uint256[] memory _nfts) external;

    function claimSelfMAYC(uint256[] memory _nfts) external;

    function depositApeCoin(uint256 _amount, address _recipient) external;

    function depositBAKC(PairNftDepositWithAmount[] memory _baycPairs, PairNftDepositWithAmount[] memory _maycPairs) external;

    function depositBAYC(SingleNft[] memory _nfts) external;

    function depositMAYC(SingleNft[] memory _nfts) external;

    function depositSelfApeCoin(uint256 _amount) external;

    function getAllStakes(address _address) external view returns (DashboardStake[] memory);

    function getApeCoinStake(address _address) external view returns (DashboardStake memory);

    function getBakcStakes(address _address) external view returns (DashboardStake[] memory);

    function getBaycStakes(address _address) external view returns (DashboardStake[] memory);

    function getMaycStakes(address _address) external view returns (DashboardStake[] memory);

    function getPoolsUI() external view returns (PoolUI memory, PoolUI memory, PoolUI memory, PoolUI memory);

    function getSplitStakes(address _address) external view returns (DashboardStake[] memory);

    function getTimeRangeBy(uint256 _poolId, uint256 _index) external view returns (TimeRange memory);

    function mainToBakc(uint256, uint256) external view returns (uint248 tokenId, bool isPaired);

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

    function nftPosition(uint256, uint256) external view returns (uint256 stakedAmount, int256 rewardsDebt);

    function owner() external view returns (address);

    function pendingRewards(uint256 _poolId, address _address, uint256 _tokenId) external view returns (uint256);

    function pools(
        uint256
    )
        external
        view
        returns (uint48 lastRewardedTimestampHour, uint16 lastRewardsRangeIndex, uint96 stakedAmount, uint96 accumulatedRewardsPerShare);

    function removeLastTimeRange(uint256 _poolId) external;

    function renounceOwnership() external;

    function rewardsBy(uint256 _poolId, uint256 _from, uint256 _to) external view returns (uint256, uint256);

    function stakedTotal(address _address) external view returns (uint256);

    function transferOwnership(address newOwner) external;

    function updatePool(uint256 _poolId) external;

    function withdrawApeCoin(uint256 _amount, address _recipient) external;

    function withdrawBAKC(PairNftWithdrawWithAmount[] memory _baycPairs, PairNftWithdrawWithAmount[] memory _maycPairs) external;

    function withdrawBAYC(SingleNft[] memory _nfts, address _recipient) external;

    function withdrawMAYC(SingleNft[] memory _nfts, address _recipient) external;

    function withdrawSelfApeCoin(uint256 _amount) external;

    function withdrawSelfBAYC(SingleNft[] memory _nfts) external;

    function withdrawSelfMAYC(SingleNft[] memory _nfts) external;
}

File 9 of 10 : IERC4626.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "BoringSolidity/interfaces/IERC20.sol";

/// @notice Tokenized Vaults with a single underlying EIP-20 token.
interface IERC4626 {
    /// @notice The address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
    function asset() external view returns (IERC20 assetTokenAddress);

    /// @notice Total amount of the underlying asset that is “managed” by Vault.
    function totalAssets() external view returns (uint256 totalManagedAssets);

    /// @notice 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.
    function convertToShares(uint256 assets) external view returns (uint256 shares);

    /// @notice 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.
    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    /// @notice Maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.
    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    /// @notice Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.
    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    /// @notice Mints shares Vault shares to receiver by depositing exactly assets of underlying tokens.
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    /// @notice Maximum amount of shares that can be minted from the Vault for the receiver, through a mint call.
    function maxMint(address receiver) external view returns (uint256 maxShares);

    /// @notice Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions.
    function previewMint(uint256 shares) external view returns (uint256 assets);

    /// @notice Mints exactly shares Vault shares to receiver by depositing assets of underlying tokens.
    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    /// @notice Maximum amount of the underlying asset that can be withdrawn from the owner balance in the Vault, through a withdraw call.
    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    /// @notice Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block, given current on-chain conditions.
    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    /// @notice Burns shares from owner and sends exactly assets of underlying tokens to receiver.
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external returns (uint256 shares);

    /// @notice Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
    function maxRedeem(address owner) external view returns (uint256 maxShares);

    /// @notice Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block, given current on-chain conditions.
    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    /// @notice Burns exactly shares from owner and sends assets of underlying tokens to receiver.
    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) external returns (uint256 assets);

    event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);
    event Withdraw(address indexed caller, address indexed receiver, address indexed owner, uint256 assets, uint256 shares);
}

File 10 of 10 : ERC4626.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20, ERC20WithSupply} from "BoringSolidity/ERC20.sol";
import {BoringERC20} from "BoringSolidity/libraries/BoringERC20.sol";
import {FixedPointMathLib} from "solmate/utils/FixedPointMathLib.sol";
import "interfaces/IERC4626.sol";

/// @notice Adapted from Solmate ERC4626
/// @notice Minimal ERC4626 tokenized Vault implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/mixins/ERC4626.sol)
contract ERC4626 is IERC4626, ERC20WithSupply {
    using BoringERC20 for ERC20;
    using FixedPointMathLib for uint256;

    error ErrZeroAssets();
    error ErrZeroShares();

    string public name;
    string public symbol;
    ERC20 public _asset;

    function asset() external view returns (IERC20) {
        return _asset;
    }

    function decimals() external view returns (uint8) {
        return _asset.safeDecimals();
    }

    function deposit(uint256 assets, address receiver) public virtual returns (uint256 shares) {
        // Check for rounding error since we round down in previewDeposit.
        if ((shares = previewDeposit(assets)) == 0) {
            revert ErrZeroShares();
        }

        // Need to transfer before minting or ERC777s could reenter.
        _asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);
        emit Deposit(msg.sender, receiver, assets, shares);

        _afterDeposit(assets, shares);
    }

    function mint(uint256 shares, address receiver) public virtual returns (uint256 assets) {
        assets = previewMint(shares); // No need to check for rounding error, previewMint rounds up.

        // Need to transfer before minting or ERC777s could reenter.
        _asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);
        emit Deposit(msg.sender, receiver, assets, shares);

        _afterDeposit(assets, shares);
    }

    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public virtual returns (uint256 shares) {
        shares = previewWithdraw(assets); // No need to check for rounding error, previewWithdraw rounds up.

        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max) {
                allowance[owner][msg.sender] = allowed - shares;
            }
        }

        _beforeWithdraw(assets, shares);
        _burn(owner, shares);
        emit Withdraw(msg.sender, receiver, owner, assets, shares);
        _asset.safeTransfer(receiver, assets);
    }

    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) public virtual returns (uint256 assets) {
        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.
            if (allowed != type(uint256).max) {
                allowance[owner][msg.sender] = allowed - shares;
            }
        }

        // Check for rounding error since we round down in previewRedeem.
        if ((assets = previewRedeem(shares)) == 0) {
            revert ErrZeroAssets();
        }

        _beforeWithdraw(assets, shares);
        _burn(owner, shares);
        emit Withdraw(msg.sender, receiver, owner, assets, shares);
        _asset.transfer(receiver, assets);
    }

    function totalAssets() public view virtual returns (uint256) {
        return _asset.balanceOf(address(this));
    }

    function convertToShares(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply;
        return supply == 0 ? assets : assets.mulDivDown(supply, totalAssets());
    }

    function convertToAssets(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply;
        return supply == 0 ? shares : shares.mulDivDown(totalAssets(), supply);
    }

    function previewDeposit(uint256 assets) public view virtual returns (uint256) {
        return convertToShares(assets);
    }

    function previewMint(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply;
        return supply == 0 ? shares : shares.mulDivUp(totalAssets(), supply);
    }

    function previewWithdraw(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply;
        return supply == 0 ? assets : assets.mulDivUp(supply, totalAssets());
    }

    function previewRedeem(uint256 shares) public view virtual returns (uint256) {
        return convertToAssets(shares);
    }

    function maxDeposit(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxMint(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxWithdraw(address owner) public view virtual returns (uint256) {
        return convertToAssets(balanceOf[owner]);
    }

    function maxRedeem(address owner) public view virtual returns (uint256) {
        return balanceOf[owner];
    }

    function _beforeWithdraw(uint256 assets, uint256 shares) internal virtual {}

    function _afterDeposit(uint256 assets, uint256 shares) internal virtual {}
}

Settings
{
  "remappings": [
    "/=src/",
    "BoringSolidity/=lib/BoringSolidity/contracts/",
    "OpenZeppelin/=lib/openzeppelin-contracts/contracts/",
    "cauldrons/=src/cauldrons/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "interfaces/=src/interfaces/",
    "lenses/=src/lenses/",
    "libraries/=src/libraries/",
    "mocks/=src/mocks/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "oracles/=src/oracles/",
    "periphery/=src/periphery/",
    "solidity-stringutils/=lib/surl/lib/solidity-stringutils/src/",
    "solmate/=lib/solmate/src/",
    "strategies/=src/strategies/",
    "surl/=lib/surl/src/",
    "swappers/=src/swappers/",
    "tokens/=src/tokens/",
    "utils/=utils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"__asset","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"contract IApeCoinStaking","name":"_staking","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ErrInvalidFeePercent","type":"error"},{"inputs":[],"name":"ErrZeroAssets","type":"error"},{"inputs":[],"name":"ErrZeroShares","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feeCollector","type":"address"},{"indexed":false,"internalType":"uint16","name":"feeAmount","type":"uint16"}],"name":"LogFeeParametersChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"userRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fees","type":"uint256"}],"name":"LogHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"LogStrategyExecutorChanged","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_DEPOSIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_asset","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercentBips","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"},{"internalType":"uint16","name":"_feePercentBips","type":"uint16"}],"name":"setFeeParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract IApeCoinStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"renounce","type":"bool"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b50604051620027dc380380620027dc83398101604081905262000034916200027d565b4660a08190526200009890604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152908101829052306060820152600090608001604051602081830303815290604052805190602001209050919050565b608052600780546001600160a01b031916339081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600680546001600160a01b0319166001600160a01b0386161790556004620001048482620003a0565b506005620001138382620003a0565b506001600160a01b0381811660c081905260405163095ea7b360e01b8152600481019190915260001960248201529085169063095ea7b3906044016020604051808303816000875af11580156200016e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019491906200046c565b505050505062000497565b6001600160a01b0381168114620001b557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001e057600080fd5b81516001600160401b0380821115620001fd57620001fd620001b8565b604051601f8301601f19908116603f01168101908282118183101715620002285762000228620001b8565b816040528381526020925086838588010111156200024557600080fd5b600091505b838210156200026957858201830151818301840152908201906200024a565b600093810190920192909252949350505050565b600080600080608085870312156200029457600080fd5b8451620002a1816200019f565b60208601519094506001600160401b0380821115620002bf57600080fd5b620002cd88838901620001ce565b94506040870151915080821115620002e457600080fd5b50620002f387828801620001ce565b925050606085015162000306816200019f565b939692955090935050565b600181811c908216806200032657607f821691505b6020821081036200034757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039b57600081815260208120601f850160051c81016020861015620003765750805b601f850160051c820191505b81811015620003975782815560010162000382565b5050505b505050565b81516001600160401b03811115620003bc57620003bc620001b8565b620003d481620003cd845462000311565b846200034d565b602080601f8311600181146200040c5760008415620003f35750858301515b600019600386901b1c1916600185901b17855562000397565b600085815260208120601f198616915b828110156200043d578886015182559484019460019091019084016200041c565b50858210156200045c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200047f57600080fd5b815180151581146200049057600080fd5b9392505050565b60805160a05160c0516122eb620004f1600039600081816103730152818161062a015281816106c501528181610c6d01528181610d2901528181610e910152611ce001526000611970015260006119a101526122eb6000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80638dd550b21161013b578063ce96cb77116100b8578063e30c39781161007c578063e30c397814610541578063eacbb63f14610554578063ef8b30f714610567578063f70500311461057a578063fcea5e291461058357600080fd5b8063ce96cb77146104b8578063d505accf146104cb578063d905777e146104de578063dd62ed3e14610507578063e1e158a51461053257600080fd5b8063b460af94116100ff578063b460af941461046c578063ba0876521461047f578063c415b95c14610492578063c63d75b61461033e578063c6e6f592146104a557600080fd5b80638dd550b21461040357806394bf804d1461042b57806395d89b411461043e578063a9059cbb14610446578063b3d7f6b91461045957600080fd5b806338d52e0f116101c95780634e71e0c81161018d5780634e71e0c8146103955780636e553f651461039d57806370a08231146103b05780637ecebe00146103d05780638da5cb5b146103f057600080fd5b806338d52e0f14610319578063402d267d1461033e5780634641257d146103535780634cdad5061461035b5780634cf088d91461036e57600080fd5b80630a28a477116102105780630a28a477146102c857806318160ddd146102db57806323b872dd146102e4578063313ce567146102f75780633644e5151461031157600080fd5b806301e1d1141461024d57806306fdde0314610268578063078dfbe71461027d57806307a2d13a14610292578063095ea7b3146102a5575b600080fd5b610255610596565b6040519081526020015b60405180910390f35b610270610787565b60405161025f9190611ea0565b61029061028b366004611f00565b610815565b005b6102556102a0366004611f49565b61095a565b6102b86102b3366004611f62565b610987565b604051901515815260200161025f565b6102556102d6366004611f49565b6109f4565b61025560035481565b6102b86102f2366004611f8c565b610a14565b6102ff610c20565b60405160ff909116815260200161025f565b610255610c3d565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161025f565b61025561034c366004611fc8565b5060001990565b610290610c47565b610255610369366004611f49565b610efb565b6103267f000000000000000000000000000000000000000000000000000000000000000081565b610290610f06565b6102556103ab366004611fe3565b610fc4565b6102556103be366004611fc8565b60006020819052908152604090205481565b6102556103de366004611fc8565b60026020526000908152604090205481565b600754610326906001600160a01b031681565b60085461041890600160a01b900461ffff1681565b60405161ffff909116815260200161025f565b610255610439366004611fe3565b611064565b6102706110e4565b6102b8610454366004611f62565b6110f1565b610255610467366004611f49565b611236565b61025561047a36600461200f565b611255565b61025561048d36600461200f565b611346565b600954610326906001600160a01b031681565b6102556104b3366004611f49565b6114c0565b6102556104c6366004611fc8565b6114e0565b6102906104d936600461205a565b611502565b6102556104ec366004611fc8565b6001600160a01b031660009081526020819052604090205490565b6102556105153660046120c7565b600160209081526000928352604080842090915290825290205481565b610255670de0b6b3a764000081565b600854610326906001600160a01b031681565b6102906105623660046120f1565b611755565b610255610575366004611f49565b611854565b61025561271081565b600654610326906001600160a01b031681565b6006546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610607919061212f565b60405163f567918960e01b81523060048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f567918990602401602060405180830381865afa158015610671573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610695919061212f565b604051632c018f9160e01b8152600060048201819052306024830152604482018190529192506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632c018f9190606401602060405180830381865afa15801561070c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610730919061212f565b6008549091506000906127109061075290600160a01b900461ffff168461215e565b61075c919061217d565b9050808261076a858761219f565b610774919061219f565b61077e91906121b2565b94505050505090565b60048054610794906121c5565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906121c5565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b505050505081565b6007546001600160a01b031633146108745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b8115610938576001600160a01b03831615158061088e5750805b6108d25760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161086b565b6007546040516001600160a01b038086169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0385166001600160a01b031991821617909155600880549091169055505050565b600880546001600160a01b0385166001600160a01b0319909116179055505050565b600354600090801561097e57610979610971610596565b84908361185f565b610980565b825b9392505050565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906109e29086815260200190565b60405180910390a35060015b92915050565b600354600090801561097e5761097981610a0c610596565b85919061187e565b60008115610bdb576001600160a01b03841660009081526020819052604090205482811015610a7e5760405162461bcd60e51b815260206004820152601660248201527545524332303a2062616c616e636520746f6f206c6f7760501b604482015260640161086b565b836001600160a01b0316856001600160a01b031614610bd9576001600160a01b03851660009081526001602090815260408083203384529091529020546000198114610b435783811015610b145760405162461bcd60e51b815260206004820152601860248201527f45524332303a20616c6c6f77616e636520746f6f206c6f770000000000000000604482015260640161086b565b610b1e84826121b2565b6001600160a01b03871660009081526001602090815260408083203384529091529020555b6001600160a01b038516610b925760405162461bcd60e51b815260206004820152601660248201527545524332303a206e6f207a65726f206164647265737360501b604482015260640161086b565b610b9c84836121b2565b6001600160a01b038088166000908152602081905260408082209390935590871681529081208054869290610bd290849061219f565b9091555050505b505b826001600160a01b0316846001600160a01b031660008051602061229683398151915284604051610c0e91815260200190565b60405180910390a35060019392505050565b600654600090610c38906001600160a01b03166118ac565b905090565b6000610c3861196c565b604051632c018f9160e01b815260006004820181905230602483015260448201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632c018f9190606401602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce0919061212f565b90508015610df75760085460009061271090610d0790600160a01b900461ffff168461215e565b610d11919061217d565b6040516317716f3360e11b81523060048201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632ee2de6690602401600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b5050600954600654610daa93506001600160a01b03908116925016836119c3565b7f28218896fcbff8c6f162d03f66b2222ed9b338e602e9447c40fe70ebb286138382610dd683826121b2565b604080519283526020830191909152810183905260600160405180910390a1505b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e64919061212f565b9050670de0b6b3a76400008110610ef75760405163bd5023a960e01b8152600481018290523060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063bd5023a9906044015b600060405180830381600087803b158015610ede57600080fd5b505af1158015610ef2573d6000803e3d6000fd5b505050505b5050565b60006109ee8261095a565b6008546001600160a01b0316338114610f615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161086b565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b039092166001600160a01b0319928316179055600880549091169055565b6000610fcf83611854565b905080600003610ff25760405163857ad50560e01b815260040160405180910390fd5b60065461100a906001600160a01b0316333086611ade565b6110148282611bfa565b60408051848152602081018390526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36109ee8382611cb4565b600061106f83611236565b60065490915061108a906001600160a01b0316333084611ade565b6110948284611bfa565b60408051828152602081018590526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36109ee8184611cb4565b60058054610794906121c5565b6000811515806111095750336001600160a01b038416145b1561120b5733600090815260208190526040902054828110156111675760405162461bcd60e51b815260206004820152601660248201527545524332303a2062616c616e636520746f6f206c6f7760501b604482015260640161086b565b336001600160a01b03851614611209576001600160a01b0384166111c65760405162461bcd60e51b815260206004820152601660248201527545524332303a206e6f207a65726f206164647265737360501b604482015260640161086b565b6111d083826121b2565b33600090815260208190526040808220929092556001600160a01b0386168152908120805485929061120390849061219f565b90915550505b505b6040518281526001600160a01b038416903390600080516020612296833981519152906020016109e2565b600354600090801561097e5761097961124d610596565b84908361187e565b6000611260846109f4565b9050336001600160a01b038316146112d0576001600160a01b038216600090815260016020908152604080832033845290915290205460001981146112ce576112a982826121b2565b6001600160a01b03841660009081526001602090815260408083203384529091529020555b505b6112da8482611cbc565b6112e48282611d17565b60408051858152602081018390526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4600654610980906001600160a01b031684866119c3565b6000336001600160a01b038316146113b6576001600160a01b038216600090815260016020908152604080832033845290915290205460001981146113b45761138f85826121b2565b6001600160a01b03841660009081526001602090815260408083203384529091529020555b505b6113bf84610efb565b9050806000036113e257604051633fa9a1b360e01b815260040160405180910390fd5b6113ec8185611cbc565b6113f68285611d17565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a460065460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611494573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b891906121ff565b509392505050565b600354600090801561097e57610979816114d8610596565b85919061185f565b6001600160a01b0381166000908152602081905260408120546109ee9061095a565b6001600160a01b0387166115585760405162461bcd60e51b815260206004820152601860248201527f45524332303a204f776e65722063616e6e6f7420626520300000000000000000604482015260640161086b565b8342106115985760405162461bcd60e51b815260206004820152600e60248201526d115490cc8c0e88115e1c1a5c995960921b604482015260640161086b565b6001600160a01b03871660008181526002602052604081208054600192611642927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928d928d928d92916115eb8361221c565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e00160405160208183030381529060405280519060200120611de6565b6040805160008152602081018083529290925260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611690573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146116f05760405162461bcd60e51b815260206004820152601860248201527f45524332303a20496e76616c6964205369676e61747572650000000000000000604482015260640161086b565b6001600160a01b038781166000818152600160209081526040808320948b168084529482529182902089905590518881527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6007546001600160a01b031633146117af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086b565b600854612710600160a01b90910461ffff1611156117df57604051620a758b60e71b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0384169081179091556008805461ffff60a01b1916600160a01b61ffff8516908102919091179091556040519081527f455d515e8e219232a341ef0a40cd8dc89e1d97bd83525f5899ea4e340ca5d6fd9060200160405180910390a25050565b60006109ee826114c0565b82820281151584158583048514171661187757600080fd5b0492915050565b82820281151584158583048514171661189657600080fd5b6001826001830304018115150290509392505050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1790529051600091829182916001600160a01b038616916118f29190612235565b600060405180830381855afa9150503d806000811461192d576040519150601f19603f3d011682016040523d82523d6000602084013e611932565b606091505b5091509150818015611945575080516020145b611950576012611964565b808060200190518101906119649190612251565b949350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461461199e57610c3846611e3b565b507f000000000000000000000000000000000000000000000000000000000000000090565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611a1f9190612235565b6000604051808303816000865af19150503d8060008114611a5c576040519150601f19603f3d011682016040523d82523d6000602084013e611a61565b606091505b5091509150818015611a8b575080511580611a8b575080806020019051810190611a8b91906121ff565b611ad75760405162461bcd60e51b815260206004820152601c60248201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604482015260640161086b565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611b429190612235565b6000604051808303816000865af19150503d8060008114611b7f576040519150601f19603f3d011682016040523d82523d6000602084013e611b84565b606091505b5091509150818015611bae575080511580611bae575080806020019051810190611bae91906121ff565b610ef25760405162461bcd60e51b815260206004820181905260248201527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604482015260640161086b565b600081600354611c0a919061219f565b9050600354811015611c4e5760405162461bcd60e51b815260206004820152600d60248201526c4d696e74206f766572666c6f7760981b604482015260640161086b565b60038190556001600160a01b03831660009081526020819052604081208054849290611c7b90849061219f565b90915550506040518281526001600160a01b038416906000906000805160206122968339815191529060200160405180910390a3505050565b610ef7610c47565b611cc4610c47565b60405163e4e8184760e01b8152600481018390523060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4e8184790604401610ec4565b6001600160a01b038216600090815260208190526040902054811115611d6f5760405162461bcd60e51b815260206004820152600d60248201526c084eae4dc40e8dede40daeac6d609b1b604482015260640161086b565b8060036000828254611d8191906121b2565b90915550506001600160a01b03821660009081526020819052604081208054839290611dae9084906121b2565b90915550506040518181526000906001600160a01b038416906000805160206122968339815191529060200160405180910390a35050565b600060405180604001604052806002815260200161190160f01b815250611e0b61196c565b83604051602001611e1e9392919061226e565b604051602081830303815290604052805190602001209050919050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152908101829052306060820152600090608001611e1e565b60005b83811015611e97578181015183820152602001611e7f565b50506000910152565b6020815260008251806020840152611ebf816040850160208701611e7c565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611eea57600080fd5b919050565b8015158114611efd57600080fd5b50565b600080600060608486031215611f1557600080fd5b611f1e84611ed3565b92506020840135611f2e81611eef565b91506040840135611f3e81611eef565b809150509250925092565b600060208284031215611f5b57600080fd5b5035919050565b60008060408385031215611f7557600080fd5b611f7e83611ed3565b946020939093013593505050565b600080600060608486031215611fa157600080fd5b611faa84611ed3565b9250611fb860208501611ed3565b9150604084013590509250925092565b600060208284031215611fda57600080fd5b61098082611ed3565b60008060408385031215611ff657600080fd5b8235915061200660208401611ed3565b90509250929050565b60008060006060848603121561202457600080fd5b8335925061203460208501611ed3565b915061204260408501611ed3565b90509250925092565b60ff81168114611efd57600080fd5b600080600080600080600060e0888a03121561207557600080fd5b61207e88611ed3565b965061208c60208901611ed3565b9550604088013594506060880135935060808801356120aa8161204b565b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156120da57600080fd5b6120e383611ed3565b915061200660208401611ed3565b6000806040838503121561210457600080fd5b61210d83611ed3565b9150602083013561ffff8116811461212457600080fd5b809150509250929050565b60006020828403121561214157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561217857612178612148565b500290565b60008261219a57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156109ee576109ee612148565b818103818111156109ee576109ee612148565b600181811c908216806121d957607f821691505b6020821081036121f957634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561221157600080fd5b815161098081611eef565b60006001820161222e5761222e612148565b5060010190565b60008251612247818460208701611e7c565b9190910192915050565b60006020828403121561226357600080fd5b81516109808161204b565b60008451612280818460208901611e7c565b9190910192835250602082015260400191905056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201d92724ad4832126645911fef623c3dd98a1b90d7dedd9e63faac8849282072a64736f6c634300081000330000000000000000000000004d224452801aced8b2f0aebe155379bb5d594381000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb900000000000000000000000000000000000000000000000000000000000000086d6167696341504500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046d41504500000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80638dd550b21161013b578063ce96cb77116100b8578063e30c39781161007c578063e30c397814610541578063eacbb63f14610554578063ef8b30f714610567578063f70500311461057a578063fcea5e291461058357600080fd5b8063ce96cb77146104b8578063d505accf146104cb578063d905777e146104de578063dd62ed3e14610507578063e1e158a51461053257600080fd5b8063b460af94116100ff578063b460af941461046c578063ba0876521461047f578063c415b95c14610492578063c63d75b61461033e578063c6e6f592146104a557600080fd5b80638dd550b21461040357806394bf804d1461042b57806395d89b411461043e578063a9059cbb14610446578063b3d7f6b91461045957600080fd5b806338d52e0f116101c95780634e71e0c81161018d5780634e71e0c8146103955780636e553f651461039d57806370a08231146103b05780637ecebe00146103d05780638da5cb5b146103f057600080fd5b806338d52e0f14610319578063402d267d1461033e5780634641257d146103535780634cdad5061461035b5780634cf088d91461036e57600080fd5b80630a28a477116102105780630a28a477146102c857806318160ddd146102db57806323b872dd146102e4578063313ce567146102f75780633644e5151461031157600080fd5b806301e1d1141461024d57806306fdde0314610268578063078dfbe71461027d57806307a2d13a14610292578063095ea7b3146102a5575b600080fd5b610255610596565b6040519081526020015b60405180910390f35b610270610787565b60405161025f9190611ea0565b61029061028b366004611f00565b610815565b005b6102556102a0366004611f49565b61095a565b6102b86102b3366004611f62565b610987565b604051901515815260200161025f565b6102556102d6366004611f49565b6109f4565b61025560035481565b6102b86102f2366004611f8c565b610a14565b6102ff610c20565b60405160ff909116815260200161025f565b610255610c3d565b6006546001600160a01b03165b6040516001600160a01b03909116815260200161025f565b61025561034c366004611fc8565b5060001990565b610290610c47565b610255610369366004611f49565b610efb565b6103267f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb981565b610290610f06565b6102556103ab366004611fe3565b610fc4565b6102556103be366004611fc8565b60006020819052908152604090205481565b6102556103de366004611fc8565b60026020526000908152604090205481565b600754610326906001600160a01b031681565b60085461041890600160a01b900461ffff1681565b60405161ffff909116815260200161025f565b610255610439366004611fe3565b611064565b6102706110e4565b6102b8610454366004611f62565b6110f1565b610255610467366004611f49565b611236565b61025561047a36600461200f565b611255565b61025561048d36600461200f565b611346565b600954610326906001600160a01b031681565b6102556104b3366004611f49565b6114c0565b6102556104c6366004611fc8565b6114e0565b6102906104d936600461205a565b611502565b6102556104ec366004611fc8565b6001600160a01b031660009081526020819052604090205490565b6102556105153660046120c7565b600160209081526000928352604080842090915290825290205481565b610255670de0b6b3a764000081565b600854610326906001600160a01b031681565b6102906105623660046120f1565b611755565b610255610575366004611f49565b611854565b61025561271081565b600654610326906001600160a01b031681565b6006546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610607919061212f565b60405163f567918960e01b81523060048201529091506000906001600160a01b037f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb9169063f567918990602401602060405180830381865afa158015610671573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610695919061212f565b604051632c018f9160e01b8152600060048201819052306024830152604482018190529192506001600160a01b037f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb91690632c018f9190606401602060405180830381865afa15801561070c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610730919061212f565b6008549091506000906127109061075290600160a01b900461ffff168461215e565b61075c919061217d565b9050808261076a858761219f565b610774919061219f565b61077e91906121b2565b94505050505090565b60048054610794906121c5565b80601f01602080910402602001604051908101604052809291908181526020018280546107c0906121c5565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b505050505081565b6007546001600160a01b031633146108745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b8115610938576001600160a01b03831615158061088e5750805b6108d25760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640161086b565b6007546040516001600160a01b038086169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0385166001600160a01b031991821617909155600880549091169055505050565b600880546001600160a01b0385166001600160a01b0319909116179055505050565b600354600090801561097e57610979610971610596565b84908361185f565b610980565b825b9392505050565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906109e29086815260200190565b60405180910390a35060015b92915050565b600354600090801561097e5761097981610a0c610596565b85919061187e565b60008115610bdb576001600160a01b03841660009081526020819052604090205482811015610a7e5760405162461bcd60e51b815260206004820152601660248201527545524332303a2062616c616e636520746f6f206c6f7760501b604482015260640161086b565b836001600160a01b0316856001600160a01b031614610bd9576001600160a01b03851660009081526001602090815260408083203384529091529020546000198114610b435783811015610b145760405162461bcd60e51b815260206004820152601860248201527f45524332303a20616c6c6f77616e636520746f6f206c6f770000000000000000604482015260640161086b565b610b1e84826121b2565b6001600160a01b03871660009081526001602090815260408083203384529091529020555b6001600160a01b038516610b925760405162461bcd60e51b815260206004820152601660248201527545524332303a206e6f207a65726f206164647265737360501b604482015260640161086b565b610b9c84836121b2565b6001600160a01b038088166000908152602081905260408082209390935590871681529081208054869290610bd290849061219f565b9091555050505b505b826001600160a01b0316846001600160a01b031660008051602061229683398151915284604051610c0e91815260200190565b60405180910390a35060019392505050565b600654600090610c38906001600160a01b03166118ac565b905090565b6000610c3861196c565b604051632c018f9160e01b815260006004820181905230602483015260448201819052907f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb96001600160a01b031690632c018f9190606401602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce0919061212f565b90508015610df75760085460009061271090610d0790600160a01b900461ffff168461215e565b610d11919061217d565b6040516317716f3360e11b81523060048201529091507f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb96001600160a01b031690632ee2de6690602401600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b5050600954600654610daa93506001600160a01b03908116925016836119c3565b7f28218896fcbff8c6f162d03f66b2222ed9b338e602e9447c40fe70ebb286138382610dd683826121b2565b604080519283526020830191909152810183905260600160405180910390a1505b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610e40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e64919061212f565b9050670de0b6b3a76400008110610ef75760405163bd5023a960e01b8152600481018290523060248201527f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb96001600160a01b03169063bd5023a9906044015b600060405180830381600087803b158015610ede57600080fd5b505af1158015610ef2573d6000803e3d6000fd5b505050505b5050565b60006109ee8261095a565b6008546001600160a01b0316338114610f615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640161086b565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b039092166001600160a01b0319928316179055600880549091169055565b6000610fcf83611854565b905080600003610ff25760405163857ad50560e01b815260040160405180910390fd5b60065461100a906001600160a01b0316333086611ade565b6110148282611bfa565b60408051848152602081018390526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36109ee8382611cb4565b600061106f83611236565b60065490915061108a906001600160a01b0316333084611ade565b6110948284611bfa565b60408051828152602081018590526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36109ee8184611cb4565b60058054610794906121c5565b6000811515806111095750336001600160a01b038416145b1561120b5733600090815260208190526040902054828110156111675760405162461bcd60e51b815260206004820152601660248201527545524332303a2062616c616e636520746f6f206c6f7760501b604482015260640161086b565b336001600160a01b03851614611209576001600160a01b0384166111c65760405162461bcd60e51b815260206004820152601660248201527545524332303a206e6f207a65726f206164647265737360501b604482015260640161086b565b6111d083826121b2565b33600090815260208190526040808220929092556001600160a01b0386168152908120805485929061120390849061219f565b90915550505b505b6040518281526001600160a01b038416903390600080516020612296833981519152906020016109e2565b600354600090801561097e5761097961124d610596565b84908361187e565b6000611260846109f4565b9050336001600160a01b038316146112d0576001600160a01b038216600090815260016020908152604080832033845290915290205460001981146112ce576112a982826121b2565b6001600160a01b03841660009081526001602090815260408083203384529091529020555b505b6112da8482611cbc565b6112e48282611d17565b60408051858152602081018390526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4600654610980906001600160a01b031684866119c3565b6000336001600160a01b038316146113b6576001600160a01b038216600090815260016020908152604080832033845290915290205460001981146113b45761138f85826121b2565b6001600160a01b03841660009081526001602090815260408083203384529091529020555b505b6113bf84610efb565b9050806000036113e257604051633fa9a1b360e01b815260040160405180910390fd5b6113ec8185611cbc565b6113f68285611d17565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a460065460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611494573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b891906121ff565b509392505050565b600354600090801561097e57610979816114d8610596565b85919061185f565b6001600160a01b0381166000908152602081905260408120546109ee9061095a565b6001600160a01b0387166115585760405162461bcd60e51b815260206004820152601860248201527f45524332303a204f776e65722063616e6e6f7420626520300000000000000000604482015260640161086b565b8342106115985760405162461bcd60e51b815260206004820152600e60248201526d115490cc8c0e88115e1c1a5c995960921b604482015260640161086b565b6001600160a01b03871660008181526002602052604081208054600192611642927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928d928d928d92916115eb8361221c565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e00160405160208183030381529060405280519060200120611de6565b6040805160008152602081018083529290925260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611690573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146116f05760405162461bcd60e51b815260206004820152601860248201527f45524332303a20496e76616c6964205369676e61747572650000000000000000604482015260640161086b565b6001600160a01b038781166000818152600160209081526040808320948b168084529482529182902089905590518881527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6007546001600160a01b031633146117af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086b565b600854612710600160a01b90910461ffff1611156117df57604051620a758b60e71b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0384169081179091556008805461ffff60a01b1916600160a01b61ffff8516908102919091179091556040519081527f455d515e8e219232a341ef0a40cd8dc89e1d97bd83525f5899ea4e340ca5d6fd9060200160405180910390a25050565b60006109ee826114c0565b82820281151584158583048514171661187757600080fd5b0492915050565b82820281151584158583048514171661189657600080fd5b6001826001830304018115150290509392505050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1790529051600091829182916001600160a01b038616916118f29190612235565b600060405180830381855afa9150503d806000811461192d576040519150601f19603f3d011682016040523d82523d6000602084013e611932565b606091505b5091509150818015611945575080516020145b611950576012611964565b808060200190518101906119649190612251565b949350505050565b60007f0000000000000000000000000000000000000000000000000000000000000001461461199e57610c3846611e3b565b507f4780805b730c51ab598ddca8851e8da4863c127bf81a4886990a6ba89e4f874190565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611a1f9190612235565b6000604051808303816000865af19150503d8060008114611a5c576040519150601f19603f3d011682016040523d82523d6000602084013e611a61565b606091505b5091509150818015611a8b575080511580611a8b575080806020019051810190611a8b91906121ff565b611ad75760405162461bcd60e51b815260206004820152601c60248201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604482015260640161086b565b5050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611b429190612235565b6000604051808303816000865af19150503d8060008114611b7f576040519150601f19603f3d011682016040523d82523d6000602084013e611b84565b606091505b5091509150818015611bae575080511580611bae575080806020019051810190611bae91906121ff565b610ef25760405162461bcd60e51b815260206004820181905260248201527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604482015260640161086b565b600081600354611c0a919061219f565b9050600354811015611c4e5760405162461bcd60e51b815260206004820152600d60248201526c4d696e74206f766572666c6f7760981b604482015260640161086b565b60038190556001600160a01b03831660009081526020819052604081208054849290611c7b90849061219f565b90915550506040518281526001600160a01b038416906000906000805160206122968339815191529060200160405180910390a3505050565b610ef7610c47565b611cc4610c47565b60405163e4e8184760e01b8152600481018390523060248201527f0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb96001600160a01b03169063e4e8184790604401610ec4565b6001600160a01b038216600090815260208190526040902054811115611d6f5760405162461bcd60e51b815260206004820152600d60248201526c084eae4dc40e8dede40daeac6d609b1b604482015260640161086b565b8060036000828254611d8191906121b2565b90915550506001600160a01b03821660009081526020819052604081208054839290611dae9084906121b2565b90915550506040518181526000906001600160a01b038416906000805160206122968339815191529060200160405180910390a35050565b600060405180604001604052806002815260200161190160f01b815250611e0b61196c565b83604051602001611e1e9392919061226e565b604051602081830303815290604052805190602001209050919050565b604080517f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692186020820152908101829052306060820152600090608001611e1e565b60005b83811015611e97578181015183820152602001611e7f565b50506000910152565b6020815260008251806020840152611ebf816040850160208701611e7c565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611eea57600080fd5b919050565b8015158114611efd57600080fd5b50565b600080600060608486031215611f1557600080fd5b611f1e84611ed3565b92506020840135611f2e81611eef565b91506040840135611f3e81611eef565b809150509250925092565b600060208284031215611f5b57600080fd5b5035919050565b60008060408385031215611f7557600080fd5b611f7e83611ed3565b946020939093013593505050565b600080600060608486031215611fa157600080fd5b611faa84611ed3565b9250611fb860208501611ed3565b9150604084013590509250925092565b600060208284031215611fda57600080fd5b61098082611ed3565b60008060408385031215611ff657600080fd5b8235915061200660208401611ed3565b90509250929050565b60008060006060848603121561202457600080fd5b8335925061203460208501611ed3565b915061204260408501611ed3565b90509250925092565b60ff81168114611efd57600080fd5b600080600080600080600060e0888a03121561207557600080fd5b61207e88611ed3565b965061208c60208901611ed3565b9550604088013594506060880135935060808801356120aa8161204b565b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156120da57600080fd5b6120e383611ed3565b915061200660208401611ed3565b6000806040838503121561210457600080fd5b61210d83611ed3565b9150602083013561ffff8116811461212457600080fd5b809150509250929050565b60006020828403121561214157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561217857612178612148565b500290565b60008261219a57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156109ee576109ee612148565b818103818111156109ee576109ee612148565b600181811c908216806121d957607f821691505b6020821081036121f957634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561221157600080fd5b815161098081611eef565b60006001820161222e5761222e612148565b5060010190565b60008251612247818460208701611e7c565b9190910192915050565b60006020828403121561226357600080fd5b81516109808161204b565b60008451612280818460208901611e7c565b9190910192835250602082015260400191905056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201d92724ad4832126645911fef623c3dd98a1b90d7dedd9e63faac8849282072a64736f6c63430008100033

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

0000000000000000000000004d224452801aced8b2f0aebe155379bb5d594381000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb900000000000000000000000000000000000000000000000000000000000000086d6167696341504500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046d41504500000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __asset (address): 0x4d224452801ACEd8B2F0aebE155379bb5D594381
Arg [1] : _name (string): magicAPE
Arg [2] : _symbol (string): mAPE
Arg [3] : _staking (address): 0x5954aB967Bc958940b7EB73ee84797Dc8a2AFbb9

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d224452801aced8b2f0aebe155379bb5d594381
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000005954ab967bc958940b7eb73ee84797dc8a2afbb9
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 6d61676963415045000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 6d41504500000000000000000000000000000000000000000000000000000000


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  ]

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.