ETH Price: $3,025.53 (-2.08%)

Contract

0xE590233c22E81A79a1768aB8c8597b7a55C52Aba
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Airdrop208008812024-09-21 18:55:59422 days ago1726944959IN
0xE590233c...a55C52Aba
0 ETH0.0046511811.28845069
Claim Airdrop208001452024-09-21 16:28:11422 days ago1726936091IN
0xE590233c...a55C52Aba
0 ETH0.0002882210.14357451
Claim Airdrop207999382024-09-21 15:46:35422 days ago1726933595IN
0xE590233c...a55C52Aba
0 ETH0.007121217.08419577
Claim Airdrop207998972024-09-21 15:38:23422 days ago1726933103IN
0xE590233c...a55C52Aba
0 ETH0.0060290415.27613749
Claim Airdrop207998972024-09-21 15:38:23422 days ago1726933103IN
0xE590233c...a55C52Aba
0 ETH0.0060290415.27613749
Claim Airdrop207998972024-09-21 15:38:23422 days ago1726933103IN
0xE590233c...a55C52Aba
0 ETH0.0063675515.27613749
Claim Airdrop207998962024-09-21 15:38:11422 days ago1726933091IN
0xE590233c...a55C52Aba
0 ETH0.006949816.67299954
Claim Airdrop207998882024-09-21 15:36:35422 days ago1726932995IN
0xE590233c...a55C52Aba
0 ETH0.0065067216.48645591
Claim Airdrop207998882024-09-21 15:36:35422 days ago1726932995IN
0xE590233c...a55C52Aba
0 ETH0.0065044316.48065891
Claim Airdrop207998882024-09-21 15:36:35422 days ago1726932995IN
0xE590233c...a55C52Aba
0 ETH0.0068720416.48645591
Claim Airdrop207998862024-09-21 15:36:11422 days ago1726932971IN
0xE590233c...a55C52Aba
0 ETH0.0073058216.88309597
Claim Airdrop207998852024-09-21 15:35:59422 days ago1726932959IN
0xE590233c...a55C52Aba
0 ETH0.0071347417.11667441
Claim Airdrop207998842024-09-21 15:35:47422 days ago1726932947IN
0xE590233c...a55C52Aba
0 ETH0.0069171716.65301428
Claim Airdrop207998842024-09-21 15:35:47422 days ago1726932947IN
0xE590233c...a55C52Aba
0 ETH0.0065692516.64488347
Claim Airdrop207998842024-09-21 15:35:47422 days ago1726932947IN
0xE590233c...a55C52Aba
0 ETH0.006913816.64488347
Claim Airdrop207998842024-09-21 15:35:47422 days ago1726932947IN
0xE590233c...a55C52Aba
0 ETH0.0073027816.69094347
Claim Airdrop207998812024-09-21 15:35:11422 days ago1726932911IN
0xE590233c...a55C52Aba
0 ETH0.0066159816.76328925
Claim Airdrop207998812024-09-21 15:35:11422 days ago1726932911IN
0xE590233c...a55C52Aba
0 ETH0.0069718716.72593905
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0068907716.58943892
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0065473716.58943892
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0068907716.58943892
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0065473716.58943892
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0065473716.58943892
Claim Airdrop207998552024-09-21 15:29:59422 days ago1726932599IN
0xE590233c...a55C52Aba
0 ETH0.0069149716.58943892
Claim Airdrop207998512024-09-21 15:29:11422 days ago1726932551IN
0xE590233c...a55C52Aba
0 ETH0.0075277318.05090676
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZivoeITO

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "../lib/openzeppelin-contracts/contracts/utils/Context.sol";

interface IERC20Mintable_ITO {
    /// @notice Mints ERC20 token(s) for the provided account, increases totalSupply().
    /// @param  account The address to mint tokens for.
    /// @param  amount  The amount of tokens to mint.
    function mint(address account, uint256 amount) external;
}

interface IZivoeGlobals_ITO {
    /// @notice Returns the address of the ZivoeDAO contract.
    function DAO() external view returns (address);

    /// @notice Returns the address of the ZivoeRewardsVesting ($ZVE) vesting contract.
    function vestZVE() external view returns (address);

    /// @notice Returns the address of the ZivoeYDL contract.
    function YDL() external view returns (address);

    /// @notice Returns the address of the ZivoeTrancheToken ($zJTT) contract.
    function zJTT() external view returns (address);

    /// @notice Returns the address of the ZivoeTrancheToken ($zSTT) contract.
    function zSTT() external view returns (address);

    /// @notice Returns the address of the ZivoeToken contract.
    function ZVE() external view returns (address);

    /// @notice Returns the Zivoe Laboratory address.
    function ZVL() external view returns (address);

    /// @notice Returns the address of the ZivoeTranches contract.
    function ZVT() external view returns (address);

    /// @notice Returns total circulating supply of zSTT and zJTT, accounting for defaults via markdowns.
    /// @return zSTTSupply zSTT.totalSupply() adjusted for defaults.
    /// @return zJTTSupply zJTT.totalSupply() adjusted for defaults.
    function adjustedSupplies() external view returns (uint256 zSTTSupply, uint256 zJTTSupply);

    /// @notice Handles WEI standardization of a given asset amount (i.e. 6 decimal precision => 18 decimal precision).
    /// @param  amount              The amount of a given "asset" to be standardized.
    /// @param  asset               The asset (ERC-20) from which to standardize the amount to WEI.
    /// @return standardizedAmount  The input amount, standardized to 18 decimals.
    function standardize(uint256 amount, address asset) external view returns (uint256 standardizedAmount);
}

interface ITO_IZivoeRewardsVesting {
    /// @notice Determines if account has vesting schedule set or not.
    function vestingScheduleSet(address) external view returns(bool);

    /// @notice Sets the vestingSchedule for an account.
    /// @param  account         The account vesting $ZVE.
    /// @param  daysToCliff     The number of days before vesting is claimable (a.k.a. cliff period).
    /// @param  daysToVest      The number of days for the entire vesting period, from beginning to end.
    /// @param  amountToVest    The amount of tokens being vested.
    /// @param  revokable       If the vested amount can be revoked.
    function createVestingSchedule(
        address account, 
        uint256 daysToCliff, 
        uint256 daysToVest, 
        uint256 amountToVest, 
        bool revokable
    ) external;
}

interface ITO_IZivoeTranches {
    /// @notice Unlocks the ZivoeTranches contract for distributions, sets initial variables.
    function unlock() external;
}

interface ITO_IZivoeYDL {
    /// @notice Unlocks the ZivoeYDL contract for distributions, initializes values.
    function unlock() external;
}



/// @notice This contract will facilitate the Zivoe ITO ("Initial Tranche Offering").
///         This contract has the following responsibilities:
///          - Permissioned by $zJTT and $zSTT to call mint() when an account deposits.
///          - Escrow $zJTT and $zSTT until the ITO concludes.
///          - Facilitate claiming of $zJTT and $zSTT when the ITO concludes.
///          - Vest $ZVE simulatenously during claiming (based on $pZVE credits).
///          - Migrate deposits to ZivoeDAO after the ITO concludes.
contract ZivoeITO is Context {

    using SafeERC20 for IERC20;
    
    // ---------------------
    //    State Variables
    // ---------------------

    address public immutable GBL;   /// @dev The ZivoeGlobals contract.
    
    address[] public stables;       /// @dev Stablecoin(s) allowed for juniorDeposit() or seniorDeposit().

    uint256 public end;             /// @dev The unix when the ITO ends (airdrop is claimable).
    uint256 public snapshotSTT;     /// @dev Snapshot of senior tranche token supply after migrateDeposits().
    uint256 public snapshotJTT;     /// @dev Snapshot of junior tranche token supply after migrateDeposits().

    bool public migrated;           /// @dev Triggers (true) when ITO concludes and assets migrate to ZivoeDAO.

    mapping(address => bool) public airdropClaimed;         /// @dev Tracks if an account has claimed their airdrop.

    mapping(address => uint256) public juniorCredits;       /// @dev Tracks $pZVE (credits) from juniorDeposit().
    mapping(address => uint256) public seniorCredits;       /// @dev Tracks $pZVE (credits) from seniorDeposit().

    uint256 private constant BIPS = 10000;



    // -----------------
    //    Constructor
    // -----------------

    /// @notice Initializes the ZivoeITO contract.
    /// @param  _GBL     The ZivoeGlobals contract.
    /// @param  _stables Array of stablecoins representing initial stablecoin inputs.
    constructor (address _GBL, address[] memory _stables) {
        GBL = _GBL;
        stables = _stables;
    }



    // ------------
    //    Events
    // ------------

    /// @notice Emitted during claimAirdrop().
    /// @param  account     The account claiming their airdrop.
    /// @param  zSTTClaimed The amount of Zivoe Senior Tranche ($zSTT) tokens received.
    /// @param  zJTTClaimed The amount of Zivoe Junior Tranche ($zJTT) tokens received.
    /// @param  ZVEVested  The amount of Zivoe ($ZVE) tokens received.
    event AirdropClaimed(address indexed account, uint256 zSTTClaimed, uint256 zJTTClaimed, uint256 ZVEVested);

    /// @notice Emitted during migrateDeposits().
    /// @param  DAI     Total amount of DAI migrated from the ITO to ZivoeDAO and ZVL.
    /// @param  FRAX    Total amount of FRAX migrated from the ITO to ZivoeDAO and ZVL.
    /// @param  USDC    Total amount of USDC migrated from the ITO to ZivoeDAO and ZVL.
    /// @param  USDT    Total amount of USDT migrated from the ITO to ZivoeDAO and ZVL.
    event DepositsMigrated(uint256 DAI, uint256 FRAX, uint256 USDC, uint256 USDT);

    /// @notice Emitted during commence().
    /// @param  start   The unix when the ITO starts.
    /// @param  end     The unix when the ITO ends (airdrop is claimable).
    event ITOCommenced(uint256 start, uint256 end);

    /// @notice Emitted during depositJunior().
    /// @param  account         The account depositing stablecoins to junior tranche.
    /// @param  asset           The stablecoin deposited.
    /// @param  amount          The amount of stablecoins deposited.
    /// @param  credits         The amount of credits earned.
    /// @param  trancheTokens   The amount of Zivoe Junior Tranche ($zJTT) tokens minted.
    event JuniorDeposit(
        address indexed account, 
        address indexed asset, 
        uint256 amount, 
        uint256 credits, 
        uint256 trancheTokens
    );

    /// @notice Emitted during depositSenior().
    /// @param  account         The account depositing stablecoins to senior tranche.
    /// @param  asset           The stablecoin deposited.
    /// @param  amount          The amount of stablecoins deposited.
    /// @param  credits         The amount of credits earned.
    /// @param  trancheTokens   The amount of Zivoe Senior Tranche ($zSTT) tokens minted.
    event SeniorDeposit(
        address indexed account, 
        address indexed asset, 
        uint256 amount, 
        uint256 credits, 
        uint256 trancheTokens
    );
    


    // ---------------
    //    Functions
    // ---------------

    /// @notice Checks if stablecoin deposits into the Junior Tranche are open.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset (stablecoin) to deposit.
    /// @return open Will return "true" if the deposits into the Junior Tranche are open.
    function isJuniorOpen(uint256 amount, address asset) public view returns (bool open) {
        uint256 convertedAmount = IZivoeGlobals_ITO(GBL).standardize(amount, asset);
        (uint256 seniorSupp, uint256 juniorSupp) = IZivoeGlobals_ITO(GBL).adjustedSupplies();
        return convertedAmount + juniorSupp <= seniorSupp * 2000 / BIPS;
    }

    /// @notice Claim $zSTT, $zJTT, and begin a vesting schedule for $ZVE.
    /// @dev    This function MUST only be callable after the ITO concludes.
    /// @param  depositor   The address to claim for, generally _msgSender().
    /// @return zSTTClaimed Amount of $zSTT airdropped.
    /// @return zJTTClaimed Amount of $zJTT airdropped.
    /// @return ZVEVested   Amount of $ZVE vested.
    function claimAirdrop(address depositor) external returns (
        uint256 zSTTClaimed, uint256 zJTTClaimed, uint256 ZVEVested
    ) {
        require(end != 0, "ZivoeITO::claimAirdrop() end == 0");
        require(migrated, "ZivoeITO::claimAirdrop() !migrated");
        require(!airdropClaimed[depositor], "ZivoeITO::claimAirdrop() airdropClaimed[depositor]");
        require(
            seniorCredits[depositor] > 0 || juniorCredits[depositor] > 0, 
            "ZivoeITO::claimAirdrop() seniorCredits[depositor] == 0 && juniorCredits[depositor] == 0"
        );

        airdropClaimed[depositor] = true;

        // Temporarily store credit values, decrease them to 0 immediately after.
        uint256 seniorCreditsOwned = seniorCredits[depositor];
        uint256 juniorCreditsOwned = juniorCredits[depositor];

        seniorCredits[depositor] = 0;
        juniorCredits[depositor] = 0;

        // Calculate proportion of $ZVE awarded based on $pZVE credits.
        uint256 upper = seniorCreditsOwned + juniorCreditsOwned;
        uint256 middle = IERC20(IZivoeGlobals_ITO(GBL).ZVE()).totalSupply() / 20;
        uint256 lower = snapshotSTT * 3 + snapshotJTT;

        emit AirdropClaimed(depositor, seniorCreditsOwned / 3, juniorCreditsOwned, upper * middle / lower);

        IERC20(IZivoeGlobals_ITO(GBL).zJTT()).safeTransfer(depositor, juniorCreditsOwned);
        IERC20(IZivoeGlobals_ITO(GBL).zSTT()).safeTransfer(depositor, seniorCreditsOwned / 3);

        if (upper * middle / lower > 0) {
            ITO_IZivoeRewardsVesting(IZivoeGlobals_ITO(GBL).vestZVE()).createVestingSchedule(
                depositor, 0, 360, upper * middle / lower, false
            );
        }
        
        return (seniorCreditsOwned / 3, juniorCreditsOwned, upper * middle / lower);
    }

    /// @notice Deposit stablecoins, mint Zivoe Junior Tranche ($zJTT) tokens and increase airdrop credits.
    /// @dev    This function MUST only be callable during the ITO, and with accepted stablecoins.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset to deposit.
    function depositJunior(uint256 amount, address asset) public {
        require(block.timestamp < end, "ZivoeITO::depositJunior() block.timestamp >= end");
        require(!migrated, "ZivoeITO::depositJunior() migrated");
        require(
            asset == stables[0] || asset == stables[1] || asset == stables[2] || asset == stables[3],
            "ZivoeITO::depositJunior() asset != stables[0-3]"
        );
        require(
            !ITO_IZivoeRewardsVesting(IZivoeGlobals_ITO(GBL).vestZVE()).vestingScheduleSet(_msgSender()),
            "ZivoeITO::depositJunior() ITO_IZivoeRewardsVesting(vestZVE).vestingScheduleSet(_msgSender())"
        );

        require(isJuniorOpen(amount, asset), "ZivoeITO::depositJunior() !isJuniorOpen(amount, asset)");

        address caller = _msgSender();
        uint256 standardizedAmount = IZivoeGlobals_ITO(GBL).standardize(amount, asset);

        juniorCredits[caller] += standardizedAmount;

        emit JuniorDeposit(caller, asset, amount, standardizedAmount, standardizedAmount);

        IERC20(asset).safeTransferFrom(caller, address(this), amount);
        IERC20Mintable_ITO(IZivoeGlobals_ITO(GBL).zJTT()).mint(address(this), standardizedAmount);
    }

    /// @notice Deposit stablecoins, mint Zivoe Senior Tranche ($zSTT) tokens and increase airdrop credits.
    /// @dev    This function MUST only be callable during the ITO, and with accepted stablecoins.
    /// @param  amount The amount to deposit.
    /// @param  asset The asset to deposit.
    function depositSenior(uint256 amount, address asset) public {
        require(block.timestamp < end, "ZivoeITO::depositSenior() block.timestamp >= end");
        require(!migrated, "ZivoeITO::depositSenior() migrated");
        require(
            asset == stables[0] || asset == stables[1] || asset == stables[2] || asset == stables[3],
            "ZivoeITO::depositSenior() asset != stables[0-3]"
        );
        require(
            !ITO_IZivoeRewardsVesting(IZivoeGlobals_ITO(GBL).vestZVE()).vestingScheduleSet(_msgSender()),
            "ZivoeITO::depositSenior() ITO_IZivoeRewardsVesting(vestZVE).vestingScheduleSet(_msgSender())"
        );

        address caller = _msgSender();
        uint256 standardizedAmount = IZivoeGlobals_ITO(GBL).standardize(amount, asset);

        seniorCredits[caller] += standardizedAmount * 3;

        emit SeniorDeposit(caller, asset, amount, standardizedAmount * 3, standardizedAmount);

        IERC20(asset).safeTransferFrom(caller, address(this), amount);
        IERC20Mintable_ITO(IZivoeGlobals_ITO(GBL).zSTT()).mint(address(this), standardizedAmount);
    }

    /// @notice Deposit stablecoins to both tranches simultaneously
    /// @param amountSenior The amount to deposit to senior tranche
    /// @param assetSenior The asset to deposit to senior tranche
    /// @param amountJunior The amount to deposit to senior tranche
    /// @param assetJunior The asset to deposit to senior tranche
    function depositBoth(uint256 amountSenior, address assetSenior, uint256 amountJunior, address assetJunior) external {
        depositSenior(amountSenior, assetSenior);
        depositJunior(amountJunior, assetJunior);
    }

    /// @notice Migrate tokens to ZivoeDAO.
    /// @dev    This function MUST only be callable after the ITO concludes (or earlier at ZVL discretion).
    function migrateDeposits() external {
        require(end != 0, "ZivoeITO::migrateDeposits() end == 0");
        if (_msgSender() != IZivoeGlobals_ITO(GBL).ZVL()) {
            require(block.timestamp > end, "ZivoeITO::migrateDeposits() block.timestamp <= end");
        }
        require(!migrated, "ZivoeITO::migrateDeposits() migrated");
        
        migrated = true;
        snapshotSTT = IERC20(IZivoeGlobals_ITO(GBL).zSTT()).totalSupply();
        snapshotJTT = IERC20(IZivoeGlobals_ITO(GBL).zJTT()).totalSupply();

        emit DepositsMigrated(
            IERC20(stables[0]).balanceOf(address(this)), 
            IERC20(stables[1]).balanceOf(address(this)), 
            IERC20(stables[2]).balanceOf(address(this)), 
            IERC20(stables[3]).balanceOf(address(this))
        );

        for (uint256 i = 0; i < stables.length; i++) {
            IERC20(stables[i]).safeTransfer(IZivoeGlobals_ITO(GBL).DAO(), IERC20(stables[i]).balanceOf(address(this)));
        }

        ITO_IZivoeYDL(IZivoeGlobals_ITO(GBL).YDL()).unlock();
        ITO_IZivoeTranches(IZivoeGlobals_ITO(GBL).ZVT()).unlock();
    }

    /// @notice Starts the ITO.
    /// @dev    Only callable by ZVL.
    function commence() external {
        require(end == 0, "ZivoeITO::commence() end !== 0");
        require(
            _msgSender() == IZivoeGlobals_ITO(GBL).ZVL(), 
            "ZivoeITO::commence() _msgSender() != IZivoeGlobals_ITO(GBL).ZVL()"
        );
        emit ITOCommenced(block.timestamp, block.timestamp + 30 days);
        end = block.timestamp + 30 days;
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

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

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

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_GBL","type":"address"},{"internalType":"address[]","name":"_stables","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"zSTTClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"zJTTClaimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ZVEVested","type":"uint256"}],"name":"AirdropClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"DAI","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"FRAX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"USDC","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"USDT","type":"uint256"}],"name":"DepositsMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"}],"name":"ITOCommenced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"credits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"trancheTokens","type":"uint256"}],"name":"JuniorDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"credits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"trancheTokens","type":"uint256"}],"name":"SeniorDeposit","type":"event"},{"inputs":[],"name":"GBL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"airdropClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"depositor","type":"address"}],"name":"claimAirdrop","outputs":[{"internalType":"uint256","name":"zSTTClaimed","type":"uint256"},{"internalType":"uint256","name":"zJTTClaimed","type":"uint256"},{"internalType":"uint256","name":"ZVEVested","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commence","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountSenior","type":"uint256"},{"internalType":"address","name":"assetSenior","type":"address"},{"internalType":"uint256","name":"amountJunior","type":"uint256"},{"internalType":"address","name":"assetJunior","type":"address"}],"name":"depositBoth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"depositJunior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"depositSenior","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"asset","type":"address"}],"name":"isJuniorOpen","outputs":[{"internalType":"bool","name":"open","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"juniorCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrateDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"seniorCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshotJTT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"snapshotSTT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stables","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b506040516200288d3803806200288d833981016040819052620000349162000113565b6001600160a01b0382166080528051620000569060009060208401906200005f565b505050620001fc565b828054828255906000526020600020908101928215620000b7579160200282015b82811115620000b757825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000080565b50620000c5929150620000c9565b5090565b5b80821115620000c55760008155600101620000ca565b80516001600160a01b0381168114620000f857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200012757600080fd5b6200013283620000e0565b602084810151919350906001600160401b03808211156200015257600080fd5b818601915086601f8301126200016757600080fd5b8151818111156200017c576200017c620000fd565b8060051b604051601f19603f83011681018181108582111715620001a457620001a4620000fd565b604052918252848201925083810185019189831115620001c357600080fd5b938501935b82851015620001ec57620001dc85620000e0565b84529385019392850192620001c8565b8096505050505050509250929050565b6080516125f06200029d6000396000818161010f0152818161024f015281816102e30152818161062c015281816107a301528181610844015281816108bf01528181610c0801528181610e0b01528181610f1d015281816111fc0152818161138a015281816114a60152818161157c01528181611705015281816117db01528181611b4f01528181611ca001528181611d740152611e9401526125f06000f3fe608060405234801561001057600080fd5b50600436106100d05760003560e01c806327af3c2e146100d55780632c678c64146100fd5780633ce8d4321461010a578063482f67ac1461013e578063643aadb71461016c57806365f8c6c51461017f5780638097be04146101a15780638a2ba9d2146101b6578063a067a0f2146101c9578063a9c2181b146101dc578063bdc82d8a146101e4578063c146a8ac146101ed578063d1b6dd30146101f6578063dbd76cd914610219578063efbe1c1c14610221578063ff896ba11461022a575b600080fd5b6100e86100e3366004612309565b61024a565b60405190151581526020015b60405180910390f35b6004546100e89060ff1681565b6101317f000000000000000000000000000000000000000000000000000000000000000081565b6040516100f49190612339565b61015e61014c36600461234d565b60066020526000908152604090205481565b6040519081526020016100f4565b61013161017a366004612371565b610398565b61019261018d36600461234d565b6103c2565b6040516100f49392919061238a565b6101b46101af366004612309565b610a0e565b005b6101b46101c4366004612309565b611002565b6101b46101d73660046123a0565b611502565b6101b461151c565b61015e60025481565b61015e60035481565b6100e861020436600461234d565b60056020526000908152604090205460ff1681565b6101b4611e42565b61015e60015481565b61015e61023836600461234d565b60076020526000908152604090205481565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663dc3c1da585856040518363ffffffff1660e01b815260040161029b9291906123ea565b602060405180830381865afa1580156102b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102dc9190612401565b90506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa15801561033e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610362919061241a565b9092509050612710610376836107d0612454565b610380919061246b565b61038a828561248d565b111593505050505b92915050565b600081815481106103a857600080fd5b6000918252602090912001546001600160a01b0316905081565b60008060006001546000036104285760405162461bcd60e51b815260206004820152602160248201527f5a69766f6549544f3a3a636c61696d41697264726f70282920656e64203d3d206044820152600360fc1b60648201526084015b60405180910390fd5b60045460ff166104855760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a636c61696d41697264726f70282920216d6967726174604482015261195960f21b606482015260840161041f565b6001600160a01b03841660009081526005602052604090205460ff16156105095760405162461bcd60e51b815260206004820152603260248201527f5a69766f6549544f3a3a636c61696d41697264726f7028292061697264726f70604482015271436c61696d65645b6465706f7369746f725d60701b606482015260840161041f565b6001600160a01b03841660009081526007602052604090205415158061054657506001600160a01b03841660009081526006602052604090205415155b6105d85760405162461bcd60e51b815260206004820152605760248201527f5a69766f6549544f3a3a636c61696d41697264726f7028292073656e696f724360448201527f7265646974735b6465706f7369746f725d203d3d2030202626206a756e696f726064820152760437265646974735b6465706f7369746f725d203d3d203604c1b608482015260a40161041f565b6001600160a01b0384166000908152600560209081526040808320805460ff1916600117905560078252808320805460069093529083208054918490558390559091610624828461248d565b9050600060147f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610688573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ac91906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d9190612401565b610717919061246b565b90506000600354600254600361072d9190612454565b610737919061248d565b90506001600160a01b0389167ffedf0b5680f1b4c33012be9dc9002760386b67e06ee715d4e62ded585fb312ee61076f60038861246b565b868461077b8789612454565b610785919061246b565b6040516107949392919061238a565b60405180910390a261083389857f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906124a0565b6001600160a01b03169190611ffc565b6108a08961084260038861246b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b6000816108ad8486612454565b6108b7919061246b565b11156109db577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f91906124a0565b6001600160a01b0316630f19734f8a60006101688561095e888a612454565b610968919061246b565b6040516001600160e01b031960e087901b1681526001600160a01b0390941660048501526024840192909252604483015260648201526000608482015260a401600060405180830381600087803b1580156109c257600080fd5b505af11580156109d6573d6000803e3d6000fd5b505050505b6109e660038661246b565b84826109f28587612454565b6109fc919061246b565b97509750975050505050509193909250565b6001544210610a785760405162461bcd60e51b815260206004820152603060248201527f5a69766f6549544f3a3a6465706f7369744a756e696f72282920626c6f636b2e60448201526f1d1a5b595cdd185b5c080f8f48195b9960821b606482015260840161041f565b60045460ff1615610ad65760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a6465706f7369744a756e696f722829206d6967726174604482015261195960f21b606482015260840161041f565b60008081548110610ae957610ae96124bd565b6000918252602090912001546001600160a01b0382811691161480610b3857506000600181548110610b1d57610b1d6124bd565b6000918252602090912001546001600160a01b038281169116145b80610b6d57506000600281548110610b5257610b526124bd565b6000918252602090912001546001600160a01b038281169116145b80610ba257506000600381548110610b8757610b876124bd565b6000918252602090912001546001600160a01b038281169116145b610c065760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6549544f3a3a6465706f7369744a756e696f7228292061737365742060448201526e213d20737461626c65735b302d335d60881b606482015260840161041f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8891906124a0565b6001600160a01b0316634678a988336040518263ffffffff1660e01b8152600401610cb39190612339565b602060405180830381865afa158015610cd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf491906124d3565b15610d7a5760405162461bcd60e51b815260206004820152605c60248201527f5a69766f6549544f3a3a6465706f7369744a756e696f7228292049544f5f495a604482015260008051602061259b83398151915260648201527b696e675363686564756c65536574285f6d736753656e64657228292960201b608482015260a40161041f565b610d84828261024a565b610def5760405162461bcd60e51b815260206004820152603660248201527f5a69766f6549544f3a3a6465706f7369744a756e696f722829202169734a756e604482015275696f724f70656e28616d6f756e742c2061737365742960501b606482015260840161041f565b60405163dc3c1da560e01b815233906000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dc3c1da590610e4290879087906004016123ea565b602060405180830381865afa158015610e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e839190612401565b6001600160a01b038316600090815260066020526040812080549293508392909190610eb090849061248d565b92505081905550826001600160a01b0316826001600160a01b03167f6c52275fad84119b5dfe46d82cd74fbdbb5664009f4cde769c628977e4cf5225868485604051610efe9392919061238a565b60405180910390a3610f1b6001600160a01b038416833087612057565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9d91906124a0565b6001600160a01b03166340c10f1930836040518363ffffffff1660e01b8152600401610fca9291906124f5565b600060405180830381600087803b158015610fe457600080fd5b505af1158015610ff8573d6000803e3d6000fd5b5050505050505050565b600154421061106c5760405162461bcd60e51b815260206004820152603060248201527f5a69766f6549544f3a3a6465706f73697453656e696f72282920626c6f636b2e60448201526f1d1a5b595cdd185b5c080f8f48195b9960821b606482015260840161041f565b60045460ff16156110ca5760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a6465706f73697453656e696f722829206d6967726174604482015261195960f21b606482015260840161041f565b600080815481106110dd576110dd6124bd565b6000918252602090912001546001600160a01b038281169116148061112c57506000600181548110611111576111116124bd565b6000918252602090912001546001600160a01b038281169116145b8061116157506000600281548110611146576111466124bd565b6000918252602090912001546001600160a01b038281169116145b806111965750600060038154811061117b5761117b6124bd565b6000918252602090912001546001600160a01b038281169116145b6111fa5760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6549544f3a3a6465706f73697453656e696f7228292061737365742060448201526e213d20737461626c65735b302d335d60881b606482015260840161041f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611258573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127c91906124a0565b6001600160a01b0316634678a988336040518263ffffffff1660e01b81526004016112a79190612339565b602060405180830381865afa1580156112c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e891906124d3565b1561136e5760405162461bcd60e51b815260206004820152605c60248201527f5a69766f6549544f3a3a6465706f73697453656e696f7228292049544f5f495a604482015260008051602061259b83398151915260648201527b696e675363686564756c65536574285f6d736753656e64657228292960201b608482015260a40161041f565b60405163dc3c1da560e01b815233906000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063dc3c1da5906113c190879087906004016123ea565b602060405180830381865afa1580156113de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114029190612401565b905061140f816003612454565b6001600160a01b0383166000908152600760205260408120805490919061143790849061248d565b90915550506001600160a01b038084169083167f2d888b2edfcd05d527c440642c72ce96181e9551df85078df0e501801efca17386611477856003612454565b856040516114879392919061238a565b60405180910390a36114a46001600160a01b038416833087612057565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f79573d6000803e3d6000fd5b61150c8484611002565b6115168282610a0e565b50505050565b60015460000361157a5760405162461bcd60e51b8152602060048201526024808201527f5a69766f6549544f3a3a6d6967726174654465706f73697473282920656e642060448201526303d3d20360e41b606482015260840161041f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb91906124a0565b6001600160a01b0316336001600160a01b03161461167f57600154421161167f5760405162461bcd60e51b815260206004820152603260248201527f5a69766f6549544f3a3a6d6967726174654465706f73697473282920626c6f636044820152711acb9d1a5b595cdd185b5c080f0f48195b9960721b606482015260840161041f565b60045460ff16156116de5760405162461bcd60e51b8152602060048201526024808201527f5a69766f6549544f3a3a6d6967726174654465706f736974732829206d696772604482015263185d195960e21b606482015260840161041f565b6004805460ff1916600117815560408051630c5f4f7b60e41b815290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169263c5f4f7b0928082019260209290918290030181865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177291906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d39190612401565b6002819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185b91906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611898573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bc9190612401565b6003819055507f7e12ec6e3cb4b1968f710d8b1b28e1226ace53ef2fcf769d666f9bc27d39a246600080815481106118f6576118f66124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a082319061192f903090600401612339565b602060405180830381865afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190612401565b6000600181548110611984576119846124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a08231906119bd903090600401612339565b602060405180830381865afa1580156119da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fe9190612401565b6000600281548110611a1257611a126124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611a4b903090600401612339565b602060405180830381865afa158015611a68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8c9190612401565b6000600381548110611aa057611aa06124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611ad9903090600401612339565b602060405180830381865afa158015611af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1a9190612401565b60408051948552602085019390935291830152606082015260800160405180910390a160005b600054811015611c9d57611c8b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bcf91906124a0565b60008381548110611be257611be26124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611c1b903090600401612339565b602060405180830381865afa158015611c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5c9190612401565b60008481548110611c6f57611c6f6124bd565b6000918252602090912001546001600160a01b03169190611ffc565b80611c958161250e565b915050611b40565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2091906124a0565b6001600160a01b031663a69df4b56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611d5a57600080fd5b505af1158015611d6e573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638aa256526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df491906124a0565b6001600160a01b031663a69df4b56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611e2e57600080fd5b505af1158015611516573d6000803e3d6000fd5b60015415611e925760405162461bcd60e51b815260206004820152601e60248201527f5a69766f6549544f3a3a636f6d6d656e6365282920656e6420213d3d20300000604482015260640161041f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1391906124a0565b6001600160a01b0316336001600160a01b031614611fa35760405162461bcd60e51b815260206004820152604160248201527f5a69766f6549544f3a3a636f6d6d656e63652829205f6d736753656e6465722860448201527f2920213d20495a69766f65476c6f62616c735f49544f2847424c292e5a564c286064820152602960f81b608482015260a40161041f565b7fed1dfe8c6af64744c7e7cb3345a74798a138f5930e1fe0553e71fa4bdd97068742611fd28162278d0061248d565b6040805192835260208301919091520160405180910390a1611ff74262278d0061248d565b600155565b6120528363a9059cbb60e01b848460405160240161201b9291906124f5565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261208f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526115169085906323b872dd60e01b9060840161201b565b60006120e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121619092919063ffffffff16565b805190915015612052578080602001905181019061210291906124d3565b6120525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161041f565b60606121708484600085612178565b949350505050565b6060824710156121d95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161041f565b600080866001600160a01b031685876040516121f5919061254b565b60006040518083038185875af1925050503d8060008114612232576040519150601f19603f3d011682016040523d82523d6000602084013e612237565b606091505b509150915061224887838387612253565b979650505050505050565b606083156122c25782516000036122bb576001600160a01b0385163b6122bb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161041f565b5081612170565b61217083838151156122d75781518083602001fd5b8060405162461bcd60e51b815260040161041f9190612567565b6001600160a01b038116811461230657600080fd5b50565b6000806040838503121561231c57600080fd5b82359150602083013561232e816122f1565b809150509250929050565b6001600160a01b0391909116815260200190565b60006020828403121561235f57600080fd5b813561236a816122f1565b9392505050565b60006020828403121561238357600080fd5b5035919050565b9283526020830191909152604082015260600190565b600080600080608085870312156123b657600080fd5b8435935060208501356123c8816122f1565b92506040850135915060608501356123df816122f1565b939692955090935050565b9182526001600160a01b0316602082015260400190565b60006020828403121561241357600080fd5b5051919050565b6000806040838503121561242d57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176103925761039261243e565b60008261248857634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103925761039261243e565b6000602082840312156124b257600080fd5b815161236a816122f1565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156124e557600080fd5b8151801515811461236a57600080fd5b6001600160a01b03929092168252602082015260400190565b6000600182016125205761252061243e565b5060010190565b60005b8381101561254257818101518382015260200161252a565b50506000910152565b6000825161255d818460208701612527565b9190910192915050565b6020815260008251806020840152612586816040850160208701612527565b601f01601f1916919091016040019291505056fe69766f655265776172647356657374696e6728766573745a5645292e76657374a26469706673582212201a0b1427fc5baea233fe2bc3dcbdac8fd1fdd0505608a4f871bc8d09869497d064736f6c63430008110033000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000853d955acef822db058eb8505911ed77f175b99e000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d05760003560e01c806327af3c2e146100d55780632c678c64146100fd5780633ce8d4321461010a578063482f67ac1461013e578063643aadb71461016c57806365f8c6c51461017f5780638097be04146101a15780638a2ba9d2146101b6578063a067a0f2146101c9578063a9c2181b146101dc578063bdc82d8a146101e4578063c146a8ac146101ed578063d1b6dd30146101f6578063dbd76cd914610219578063efbe1c1c14610221578063ff896ba11461022a575b600080fd5b6100e86100e3366004612309565b61024a565b60405190151581526020015b60405180910390f35b6004546100e89060ff1681565b6101317f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da6681565b6040516100f49190612339565b61015e61014c36600461234d565b60066020526000908152604090205481565b6040519081526020016100f4565b61013161017a366004612371565b610398565b61019261018d36600461234d565b6103c2565b6040516100f49392919061238a565b6101b46101af366004612309565b610a0e565b005b6101b46101c4366004612309565b611002565b6101b46101d73660046123a0565b611502565b6101b461151c565b61015e60025481565b61015e60035481565b6100e861020436600461234d565b60056020526000908152604090205460ff1681565b6101b4611e42565b61015e60015481565b61015e61023836600461234d565b60076020526000908152604090205481565b6000807f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663dc3c1da585856040518363ffffffff1660e01b815260040161029b9291906123ea565b602060405180830381865afa1580156102b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102dc9190612401565b90506000807f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316635351d09b6040518163ffffffff1660e01b81526004016040805180830381865afa15801561033e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610362919061241a565b9092509050612710610376836107d0612454565b610380919061246b565b61038a828561248d565b111593505050505b92915050565b600081815481106103a857600080fd5b6000918252602090912001546001600160a01b0316905081565b60008060006001546000036104285760405162461bcd60e51b815260206004820152602160248201527f5a69766f6549544f3a3a636c61696d41697264726f70282920656e64203d3d206044820152600360fc1b60648201526084015b60405180910390fd5b60045460ff166104855760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a636c61696d41697264726f70282920216d6967726174604482015261195960f21b606482015260840161041f565b6001600160a01b03841660009081526005602052604090205460ff16156105095760405162461bcd60e51b815260206004820152603260248201527f5a69766f6549544f3a3a636c61696d41697264726f7028292061697264726f70604482015271436c61696d65645b6465706f7369746f725d60701b606482015260840161041f565b6001600160a01b03841660009081526007602052604090205415158061054657506001600160a01b03841660009081526006602052604090205415155b6105d85760405162461bcd60e51b815260206004820152605760248201527f5a69766f6549544f3a3a636c61696d41697264726f7028292073656e696f724360448201527f7265646974735b6465706f7369746f725d203d3d2030202626206a756e696f726064820152760437265646974735b6465706f7369746f725d203d3d203604c1b608482015260a40161041f565b6001600160a01b0384166000908152600560209081526040808320805460ff1916600117905560078252808320805460069093529083208054918490558390559091610624828461248d565b9050600060147f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639af6c40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610688573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ac91906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d9190612401565b610717919061246b565b90506000600354600254600361072d9190612454565b610737919061248d565b90506001600160a01b0389167ffedf0b5680f1b4c33012be9dc9002760386b67e06ee715d4e62ded585fb312ee61076f60038861246b565b868461077b8789612454565b610785919061246b565b6040516107949392919061238a565b60405180910390a261083389857f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082391906124a0565b6001600160a01b03169190611ffc565b6108a08961084260038861246b565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ff573d6000803e3d6000fd5b6000816108ad8486612454565b6108b7919061246b565b11156109db577f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093f91906124a0565b6001600160a01b0316630f19734f8a60006101688561095e888a612454565b610968919061246b565b6040516001600160e01b031960e087901b1681526001600160a01b0390941660048501526024840192909252604483015260648201526000608482015260a401600060405180830381600087803b1580156109c257600080fd5b505af11580156109d6573d6000803e3d6000fd5b505050505b6109e660038661246b565b84826109f28587612454565b6109fc919061246b565b97509750975050505050509193909250565b6001544210610a785760405162461bcd60e51b815260206004820152603060248201527f5a69766f6549544f3a3a6465706f7369744a756e696f72282920626c6f636b2e60448201526f1d1a5b595cdd185b5c080f8f48195b9960821b606482015260840161041f565b60045460ff1615610ad65760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a6465706f7369744a756e696f722829206d6967726174604482015261195960f21b606482015260840161041f565b60008081548110610ae957610ae96124bd565b6000918252602090912001546001600160a01b0382811691161480610b3857506000600181548110610b1d57610b1d6124bd565b6000918252602090912001546001600160a01b038281169116145b80610b6d57506000600281548110610b5257610b526124bd565b6000918252602090912001546001600160a01b038281169116145b80610ba257506000600381548110610b8757610b876124bd565b6000918252602090912001546001600160a01b038281169116145b610c065760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6549544f3a3a6465706f7369744a756e696f7228292061737365742060448201526e213d20737461626c65735b302d335d60881b606482015260840161041f565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8891906124a0565b6001600160a01b0316634678a988336040518263ffffffff1660e01b8152600401610cb39190612339565b602060405180830381865afa158015610cd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf491906124d3565b15610d7a5760405162461bcd60e51b815260206004820152605c60248201527f5a69766f6549544f3a3a6465706f7369744a756e696f7228292049544f5f495a604482015260008051602061259b83398151915260648201527b696e675363686564756c65536574285f6d736753656e64657228292960201b608482015260a40161041f565b610d84828261024a565b610def5760405162461bcd60e51b815260206004820152603660248201527f5a69766f6549544f3a3a6465706f7369744a756e696f722829202169734a756e604482015275696f724f70656e28616d6f756e742c2061737365742960501b606482015260840161041f565b60405163dc3c1da560e01b815233906000906001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dc3c1da590610e4290879087906004016123ea565b602060405180830381865afa158015610e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e839190612401565b6001600160a01b038316600090815260066020526040812080549293508392909190610eb090849061248d565b92505081905550826001600160a01b0316826001600160a01b03167f6c52275fad84119b5dfe46d82cd74fbdbb5664009f4cde769c628977e4cf5225868485604051610efe9392919061238a565b60405180910390a3610f1b6001600160a01b038416833087612057565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9d91906124a0565b6001600160a01b03166340c10f1930836040518363ffffffff1660e01b8152600401610fca9291906124f5565b600060405180830381600087803b158015610fe457600080fd5b505af1158015610ff8573d6000803e3d6000fd5b5050505050505050565b600154421061106c5760405162461bcd60e51b815260206004820152603060248201527f5a69766f6549544f3a3a6465706f73697453656e696f72282920626c6f636b2e60448201526f1d1a5b595cdd185b5c080f8f48195b9960821b606482015260840161041f565b60045460ff16156110ca5760405162461bcd60e51b815260206004820152602260248201527f5a69766f6549544f3a3a6465706f73697453656e696f722829206d6967726174604482015261195960f21b606482015260840161041f565b600080815481106110dd576110dd6124bd565b6000918252602090912001546001600160a01b038281169116148061112c57506000600181548110611111576111116124bd565b6000918252602090912001546001600160a01b038281169116145b8061116157506000600281548110611146576111466124bd565b6000918252602090912001546001600160a01b038281169116145b806111965750600060038154811061117b5761117b6124bd565b6000918252602090912001546001600160a01b038281169116145b6111fa5760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6549544f3a3a6465706f73697453656e696f7228292061737365742060448201526e213d20737461626c65735b302d335d60881b606482015260840161041f565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663201d620a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611258573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127c91906124a0565b6001600160a01b0316634678a988336040518263ffffffff1660e01b81526004016112a79190612339565b602060405180830381865afa1580156112c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e891906124d3565b1561136e5760405162461bcd60e51b815260206004820152605c60248201527f5a69766f6549544f3a3a6465706f73697453656e696f7228292049544f5f495a604482015260008051602061259b83398151915260648201527b696e675363686564756c65536574285f6d736753656e64657228292960201b608482015260a40161041f565b60405163dc3c1da560e01b815233906000906001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169063dc3c1da5906113c190879087906004016123ea565b602060405180830381865afa1580156113de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114029190612401565b905061140f816003612454565b6001600160a01b0383166000908152600760205260408120805490919061143790849061248d565b90915550506001600160a01b038084169083167f2d888b2edfcd05d527c440642c72ce96181e9551df85078df0e501801efca17386611477856003612454565b856040516114879392919061238a565b60405180910390a36114a46001600160a01b038416833087612057565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b031663c5f4f7b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f79573d6000803e3d6000fd5b61150c8484611002565b6115168282610a0e565b50505050565b60015460000361157a5760405162461bcd60e51b8152602060048201526024808201527f5a69766f6549544f3a3a6d6967726174654465706f73697473282920656e642060448201526303d3d20360e41b606482015260840161041f565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fb91906124a0565b6001600160a01b0316336001600160a01b03161461167f57600154421161167f5760405162461bcd60e51b815260206004820152603260248201527f5a69766f6549544f3a3a6d6967726174654465706f73697473282920626c6f636044820152711acb9d1a5b595cdd185b5c080f0f48195b9960721b606482015260840161041f565b60045460ff16156116de5760405162461bcd60e51b8152602060048201526024808201527f5a69766f6549544f3a3a6d6967726174654465706f736974732829206d696772604482015263185d195960e21b606482015260840161041f565b6004805460ff1916600117815560408051630c5f4f7b60e41b815290516001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66169263c5f4f7b0928082019260209290918290030181865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177291906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d39190612401565b6002819055507f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316639699177c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185b91906124a0565b6001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611898573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bc9190612401565b6003819055507f7e12ec6e3cb4b1968f710d8b1b28e1226ace53ef2fcf769d666f9bc27d39a246600080815481106118f6576118f66124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a082319061192f903090600401612339565b602060405180830381865afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119709190612401565b6000600181548110611984576119846124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a08231906119bd903090600401612339565b602060405180830381865afa1580156119da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fe9190612401565b6000600281548110611a1257611a126124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611a4b903090600401612339565b602060405180830381865afa158015611a68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8c9190612401565b6000600381548110611aa057611aa06124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611ad9903090600401612339565b602060405180830381865afa158015611af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1a9190612401565b60408051948552602085019390935291830152606082015260800160405180910390a160005b600054811015611c9d57611c8b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166398fabd3a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bcf91906124a0565b60008381548110611be257611be26124bd565b6000918252602090912001546040516370a0823160e01b81526001600160a01b03909116906370a0823190611c1b903090600401612339565b602060405180830381865afa158015611c38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5c9190612401565b60008481548110611c6f57611c6f6124bd565b6000918252602090912001546001600160a01b03169190611ffc565b80611c958161250e565b915050611b40565b507f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b03166372d6724a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2091906124a0565b6001600160a01b031663a69df4b56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611d5a57600080fd5b505af1158015611d6e573d6000803e3d6000fd5b505050507f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316638aa256526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df491906124a0565b6001600160a01b031663a69df4b56040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611e2e57600080fd5b505af1158015611516573d6000803e3d6000fd5b60015415611e925760405162461bcd60e51b815260206004820152601e60248201527f5a69766f6549544f3a3a636f6d6d656e6365282920656e6420213d3d20300000604482015260640161041f565b7f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da666001600160a01b0316620960456040518163ffffffff1660e01b8152600401602060405180830381865afa158015611eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1391906124a0565b6001600160a01b0316336001600160a01b031614611fa35760405162461bcd60e51b815260206004820152604160248201527f5a69766f6549544f3a3a636f6d6d656e63652829205f6d736753656e6465722860448201527f2920213d20495a69766f65476c6f62616c735f49544f2847424c292e5a564c286064820152602960f81b608482015260a40161041f565b7fed1dfe8c6af64744c7e7cb3345a74798a138f5930e1fe0553e71fa4bdd97068742611fd28162278d0061248d565b6040805192835260208301919091520160405180910390a1611ff74262278d0061248d565b600155565b6120528363a9059cbb60e01b848460405160240161201b9291906124f5565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261208f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526115169085906323b872dd60e01b9060840161201b565b60006120e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121619092919063ffffffff16565b805190915015612052578080602001905181019061210291906124d3565b6120525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161041f565b60606121708484600085612178565b949350505050565b6060824710156121d95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161041f565b600080866001600160a01b031685876040516121f5919061254b565b60006040518083038185875af1925050503d8060008114612232576040519150601f19603f3d011682016040523d82523d6000602084013e612237565b606091505b509150915061224887838387612253565b979650505050505050565b606083156122c25782516000036122bb576001600160a01b0385163b6122bb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161041f565b5081612170565b61217083838151156122d75781518083602001fd5b8060405162461bcd60e51b815260040161041f9190612567565b6001600160a01b038116811461230657600080fd5b50565b6000806040838503121561231c57600080fd5b82359150602083013561232e816122f1565b809150509250929050565b6001600160a01b0391909116815260200190565b60006020828403121561235f57600080fd5b813561236a816122f1565b9392505050565b60006020828403121561238357600080fd5b5035919050565b9283526020830191909152604082015260600190565b600080600080608085870312156123b657600080fd5b8435935060208501356123c8816122f1565b92506040850135915060608501356123df816122f1565b939692955090935050565b9182526001600160a01b0316602082015260400190565b60006020828403121561241357600080fd5b5051919050565b6000806040838503121561242d57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176103925761039261243e565b60008261248857634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156103925761039261243e565b6000602082840312156124b257600080fd5b815161236a816122f1565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156124e557600080fd5b8151801515811461236a57600080fd5b6001600160a01b03929092168252602082015260400190565b6000600182016125205761252061243e565b5060010190565b60005b8381101561254257818101518382015260200161252a565b50506000910152565b6000825161255d818460208701612527565b9190910192915050565b6020815260008251806020840152612586816040850160208701612527565b601f01601f1916919091016040019291505056fe69766f655265776172647356657374696e6728766573745a5645292e76657374a26469706673582212201a0b1427fc5baea233fe2bc3dcbdac8fd1fdd0505608a4f871bc8d09869497d064736f6c63430008110033

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

000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000853d955acef822db058eb8505911ed77f175b99e000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7

-----Decoded View---------------
Arg [0] : _GBL (address): 0xEa537eB0bBcC7783bDF7c595bF9371984583dA66
Arg [1] : _stables (address[]): 0x6B175474E89094C44Da98b954EedeAC495271d0F,0x853d955aCEf822Db058eb8505911ED77F175b99e,0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,0xdAC17F958D2ee523a2206206994597C13D831ec7

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [4] : 000000000000000000000000853d955acef822db058eb8505911ed77f175b99e
Arg [5] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [6] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.