ETH Price: $3,157.58 (-7.81%)

Token

aaSTG (aaSTG)
 

Overview

Max Total Supply

4,721,360.819396 aaSTG

Holders

1,394

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Filtered by Token Holder
happymelma.eth
Balance
2,170.678712 aaSTG

Value
$0.00
0x141721F4D7Fd95541396E74266FF272502Ec8899
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WhitelistAuction

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion
File 1 of 9 : WhitelistAuction.sol
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract WhitelistAuction is ERC20, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20Metadata;

    // ============================ Time Variables ====================================

    uint public constant FIRST_AUCTION_DURATION = 2 days;
    uint public constant SECOND_AUCTION_DURATION = 1 days;

    uint public constant VEST_DURATION = 26 weeks;

    uint public constant vestStartTime = 1679155200;

    //
    uint public firstAuctionStartTime;
    uint public firstAuctionEndTime;
    // value be set after the ending of the 1st auction
    uint public secondAuctionEndTime;

    // ============================ Token Meta ====================================
    address immutable public stargateTreasury;
    uint8 immutable public astgDecimals;

    IERC20Metadata immutable public stableCoin;
    IERC20Metadata immutable public stargateToken;

    // ============================ Amount (USD/STG) ====================================
    uint public constant USD_AUCTION_CAP = 5_000_000;
    uint public constant STARGATE_FOR_AUCTION = 20_000_000;

    //whitelisting
    mapping(address => bool) public astgWhitelist;
    mapping(address => bool) public bondingWhitelist;

    //auction amounts
    uint public capStgAuctionAmount;
    uint immutable public astgWhitelistMaxAlloc;
    uint immutable public bondingWhitelistMaxAlloc;
    bool public ownerWithdrawn;

    // value be set after the ending of the 1st auction
    bool public secondAuctionInit;
    uint public secondAuctionAdditionalAllocCap;

    // book keeping
    uint public remainingUsdQuota;
    mapping(address => uint) public redeemedShares;
    //tallying for second auction
    uint public countOfMaxAuction;

    // ============================ Events ====================================
    event FirstAuctioned(address _sender, uint _astgAmount);
    event SecondAuctioned(address _sender, uint _astgAmount);
    event FinalWithdrawal(address _to, uint _remainingUSD, uint _remainingSTG);
    event Redeemed(address _sender, uint _astgAmount, uint _stgAmount);

    // ============================ Constructor ====================================

    constructor(
        address payable _stargateTreasury,
        IERC20Metadata _stargate,
        IERC20Metadata _stableCoin,
        uint _auctionStartTime,
        uint _astgWhitelistMaxAlloc,
        uint _bondingWhitelistMaxAlloc
    )
        ERC20("aaSTG","aaSTG")
    {
        stargateTreasury = _stargateTreasury;

        // tokens
        stargateToken = _stargate;
        stableCoin = _stableCoin;
        astgDecimals = _stableCoin.decimals();
        remainingUsdQuota = USD_AUCTION_CAP * (10 ** _stableCoin.decimals());

        // time variables
        firstAuctionStartTime = _auctionStartTime;
        firstAuctionEndTime = firstAuctionStartTime + FIRST_AUCTION_DURATION;
        // the 2nd auction starts when the 1st ends
        secondAuctionEndTime = firstAuctionEndTime + SECOND_AUCTION_DURATION;

        // set the cap for both roles
        astgWhitelistMaxAlloc = _astgWhitelistMaxAlloc;
        bondingWhitelistMaxAlloc = _bondingWhitelistMaxAlloc;
    }

    // ============================ onlyOwner =======================================

    function addAuctionAddresses(address[] calldata addresses) external onlyOwner {
        uint length = addresses.length;
        uint i;
        while(i < length){
            astgWhitelist[addresses[i]] = true;
            i++;
        }
    }

    function addBondAddresses(address[] calldata addresses) external onlyOwner {
        uint length = addresses.length;
        uint i;
        while(i < length){
            bondingWhitelist[addresses[i]] = true;
            i++;
        }
    }

    function withdrawRemainingStargate(address _to) external onlyOwner {
        require(block.timestamp > secondAuctionEndTime, "Stargate: second auction not finished");
        require(!ownerWithdrawn, "Stargate: owner has withdrawn");

        uint startingCap = STARGATE_FOR_AUCTION * (10 ** stargateToken.decimals());

        uint usdAuctionCap = USD_AUCTION_CAP * (10 ** astgDecimals);
        uint remainingSTG = startingCap * remainingUsdQuota / usdAuctionCap;

        // adjust the capStgAuctionAmount value, the redeem would overflow otherwise
        capStgAuctionAmount = startingCap - remainingSTG;

        stargateToken.safeTransfer(_to, remainingSTG);

        ownerWithdrawn = true;

        emit FinalWithdrawal(_to, remainingUsdQuota, remainingSTG);
    }

    // ============================ Override =======================================

    // this is non-transferable
    function _beforeTokenTransfer(address _from, address, uint) internal virtual override {
        require(_from == address(0), "non-transferable");
    }

    function decimals() public view virtual override returns(uint8) {
        return astgDecimals;
    }

    // ============================ External =======================================

    function enterFirstAuction(uint _requestAmount) external nonReentrant {
        require(_requestAmount > 0, "Stargate: request amount must > 0");
        require(block.timestamp >= firstAuctionStartTime && block.timestamp < firstAuctionEndTime, "Stargate: not in the first auction period");
        require(remainingUsdQuota > 0, "Stargate: auction reaches its cap");

        uint maxExecAmount = this.getFirstAuctionCapAmount(msg.sender);

        uint balance = this.balanceOf(msg.sender);
        require(balance < maxExecAmount, "Stargate: already at max");

        // cap the request amount if too much
        if (balance + _requestAmount >= maxExecAmount) {
            _requestAmount = maxExecAmount - balance;
            // reaches max. increment the counter
            countOfMaxAuction++;
        }

        // execute it
        uint execAmount = _executeAuction(_requestAmount);
        emit FirstAuctioned(msg.sender, execAmount);
    }

    function enterSecondAuction(uint _requestAmount) external nonReentrant {
        // assert the auction is at the 2nd stage
        require(block.timestamp >= firstAuctionEndTime && block.timestamp < secondAuctionEndTime, "Stargate: not in the second auction period");
        require(remainingUsdQuota > 0, "Stargate: auction reaches its cap");

        if (!secondAuctionInit) {
            secondAuctionAdditionalAllocCap = remainingUsdQuota / countOfMaxAuction;
            secondAuctionInit = true;
        }

        uint firstAuctionMaxExecAmount = this.getFirstAuctionCapAmount(msg.sender);
        uint balance = this.balanceOf(msg.sender);
        require(balance >= firstAuctionMaxExecAmount, "Stargate: not eligible for the second auction");

        // compute the execAmount
        uint maxExecAmount = firstAuctionMaxExecAmount + secondAuctionAdditionalAllocCap;
        if (balance + _requestAmount >= maxExecAmount) {
            _requestAmount = maxExecAmount - balance;
        }

        uint execAmount = _executeAuction(_requestAmount);
        emit SecondAuctioned(msg.sender, execAmount);
    }

    function secondAuctionAllocCap() external view returns(uint) {
        if(!secondAuctionInit){
            return remainingUsdQuota / countOfMaxAuction;
        }else{
            return secondAuctionAdditionalAllocCap;
        }
    }

    // whitelist amount > bonding amount.
    function getFirstAuctionCapAmount(address user) public view returns(uint) {
        if (astgWhitelist[user]) return astgWhitelistMaxAlloc;
        if (bondingWhitelist[user]) return bondingWhitelistMaxAlloc;
        revert("Stargate: not a whitelisted address");
    }

    // compute the final amount and execute the transaction
    function _executeAuction(uint _execAmount) internal returns(uint finalExecAmount){
        // exec amount capped at the remaining. even tho it should never hit it.
        if(_execAmount > remainingUsdQuota) {
            finalExecAmount = remainingUsdQuota;
        } else {
            finalExecAmount = _execAmount;
        }

        // execute the txn
        remainingUsdQuota -= finalExecAmount;
        stableCoin.safeTransferFrom(msg.sender, stargateTreasury, finalExecAmount);
        _mint(msg.sender, finalExecAmount);
    }

    function redeem() external nonReentrant {
        require(block.timestamp >= vestStartTime, "Stargate: vesting not started");
        require(capStgAuctionAmount != 0, "Stargate: stargate for vesting not set");

        uint vestSinceStart = block.timestamp - vestStartTime;
        if(vestSinceStart > VEST_DURATION){
            vestSinceStart = VEST_DURATION;
        }

        uint totalRedeemableShares = balanceOf(msg.sender) * vestSinceStart / VEST_DURATION;
        uint redeemed = redeemedShares[msg.sender];
        require(totalRedeemableShares > redeemed, "Stargate: nothing to redeem");

        uint newSharesToRedeem = totalRedeemableShares - redeemed;
        redeemedShares[msg.sender] = redeemed + newSharesToRedeem;

        uint stargateAmount = capStgAuctionAmount * newSharesToRedeem / totalSupply();
        stargateToken.safeTransfer(msg.sender, stargateAmount);

        emit Redeemed(msg.sender, newSharesToRedeem, stargateAmount);
    }

    function redeemable(address _redeemer) external view returns(uint){
        require(block.timestamp >= vestStartTime, "Stargate: vesting not started");
        require(capStgAuctionAmount != 0, "Stargate: stargate for vesting not set");

        uint vestSinceStart = block.timestamp - vestStartTime;
        if(vestSinceStart > VEST_DURATION){
            vestSinceStart = VEST_DURATION;
        }

        uint totalRedeemableShares = balanceOf(_redeemer) * vestSinceStart / VEST_DURATION;
        uint redeemed = redeemedShares[_redeemer];
        require(totalRedeemableShares > redeemed, "Stargate: nothing to redeem");

        uint newSharesToRedeem = totalRedeemableShares - redeemed;

        return capStgAuctionAmount * newSharesToRedeem / totalSupply();
    }
}

File 2 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 9 : IERC20Metadata.sol
// 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);
}

File 4 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 8 of 9 : Context.sol
// 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;
    }
}

File 9 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_stargateTreasury","type":"address"},{"internalType":"contract IERC20Metadata","name":"_stargate","type":"address"},{"internalType":"contract IERC20Metadata","name":"_stableCoin","type":"address"},{"internalType":"uint256","name":"_auctionStartTime","type":"uint256"},{"internalType":"uint256","name":"_astgWhitelistMaxAlloc","type":"uint256"},{"internalType":"uint256","name":"_bondingWhitelistMaxAlloc","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_remainingUSD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_remainingSTG","type":"uint256"}],"name":"FinalWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_astgAmount","type":"uint256"}],"name":"FirstAuctioned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_astgAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stgAmount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_astgAmount","type":"uint256"}],"name":"SecondAuctioned","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"},{"inputs":[],"name":"FIRST_AUCTION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECOND_AUCTION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STARGATE_FOR_AUCTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USD_AUCTION_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VEST_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addAuctionAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addBondAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","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":"astgDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"astgWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"astgWhitelistMaxAlloc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bondingWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondingWhitelistMaxAlloc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capStgAuctionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"countOfMaxAuction","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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requestAmount","type":"uint256"}],"name":"enterFirstAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requestAmount","type":"uint256"}],"name":"enterSecondAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"firstAuctionEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstAuctionStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getFirstAuctionCapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_redeemer","type":"address"}],"name":"redeemable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"redeemedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingUsdQuota","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondAuctionAdditionalAllocCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondAuctionAllocCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondAuctionEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondAuctionInit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stableCoin","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawRemainingStargate","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b50604051620033723803806200337283398101604081905262000035916200032d565b604080518082018252600580825264616153544760d81b602080840182815285518087019096529285528401528151919291620000759160039162000287565b5080516200008b90600490602084019062000287565b505050620000a8620000a26200023160201b60201c565b62000235565b60016006556001600160601b0319606087811b821660805286811b821660e05285901b1660c0526040805163313ce56760e01b815290516001600160a01b0386169163313ce567916004808301926020929190829003018186803b1580156200011057600080fd5b505afa15801562000125573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014b91906200039c565b60ff1660a08160ff1660f81b81525050836001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200019557600080fd5b505afa158015620001aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001d091906200039c565b620001dd90600a6200042a565b620001ec90624c4b40620004eb565b600f556007839055620002036202a30084620003c6565b600881905562000218906201518090620003c6565b6009556101009190915261012052506200057992505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000295906200050d565b90600052602060002090601f016020900481019282620002b9576000855562000304565b82601f10620002d457805160ff191683800117855562000304565b8280016001018555821562000304579182015b8281111562000304578251825591602001919060010190620002e7565b506200031292915062000316565b5090565b5b8082111562000312576000815560010162000317565b60008060008060008060c0878903121562000346578182fd5b8651620003538162000560565b6020880151909650620003668162000560565b6040880151909550620003798162000560565b80945050606087015192506080870151915060a087015190509295509295509295565b600060208284031215620003ae578081fd5b815160ff81168114620003bf578182fd5b9392505050565b60008219821115620003dc57620003dc6200054a565b500190565b600181815b80851115620004225781600019048211156200040657620004066200054a565b808516156200041457918102915b93841c9390800290620003e6565b509250929050565b6000620003bf60ff8416836000826200044657506001620004e5565b816200045557506000620004e5565b81600181146200046e5760028114620004795762000499565b6001915050620004e5565b60ff8411156200048d576200048d6200054a565b50506001821b620004e5565b5060208310610133831016604e8410600b8410161715620004be575081810a620004e5565b620004ca8383620003e1565b8060001904821115620004e157620004e16200054a565b0290505b92915050565b60008160001904831182151516156200050857620005086200054a565b500290565b600181811c908216806200052257607f821691505b602082108114156200054457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146200057657600080fd5b50565b60805160601c60a05160f81c60c05160601c60e05160601c6101005161012051612d5e62000614600039600081816104a7015261159e015260008181610425015261154901526000818161070e01528181611862015281816119fc0152611b330152600081816105d201526122bd015260008181610385015281816103cd0152611aba0152600081816104f101526122e00152612d5e6000f3fe608060405234801561001057600080fd5b50600436106103155760003560e01c806395d7f96c116101a7578063be040fb0116100ee578063d83e697511610097578063f17898f711610071578063f17898f714610709578063f2fde38b14610730578063f4a387cd1461074357600080fd5b8063d83e6975146106a7578063dd62ed3e146106ba578063e0931deb1461070057600080fd5b8063ce7a9d84116100c8578063ce7a9d8414610689578063cf329ace14610692578063d26b7cbd1461069d57600080fd5b8063be040fb01461066b578063c20615ed14610673578063c7e8d7281461068057600080fd5b8063a457c2d711610150578063a9059cbb1161012a578063a9059cbb14610625578063aa883c4e14610638578063af22bd701461064b57600080fd5b8063a457c2d7146105ff578063a616ec4a14610612578063a8b57cc81461061c57600080fd5b806398cd0c6d1161018157806398cd0c6d146105ba578063992642e5146105cd5780639f920a12146105f457600080fd5b806395d7f96c1461057c57806395d89b411461058f57806397f87b541461059757600080fd5b80635f48820a1161026b5780637f4b9a00116102145780638da5cb5b116101ee5780638da5cb5b146105425780638f41202a1461056057806395381e561461057357600080fd5b80637f4b9a00146104c9578063807d1378146104ec5780638940e2f31461053857600080fd5b806370a082311161024557806370a0823114610462578063715018a61461049857806371ffd4f4146104a257600080fd5b80635f48820a146104475780636909df3d1461044f5780636e6941c51461045857600080fd5b80632df9f102116102cd5780634372e048116102a75780634372e04814610404578063484267a41461040d578063506b0d171461042057600080fd5b80632df9f102146103b9578063313ce567146103cb57806339509351146103f157600080fd5b806318160ddd116102fe57806318160ddd1461035b57806323b872dd1461036d57806328554c1b1461038057600080fd5b806306fdde031461031a578063095ea7b314610338575b600080fd5b610322610756565b60405161032f9190612a20565b60405180910390f35b61034b6103463660046128fa565b6107e8565b604051901515815260200161032f565b6002545b60405190815260200161032f565b61034b61037b3660046128bf565b6107ff565b6103a77f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161032f565b600d5461034b90610100900460ff1681565b7f00000000000000000000000000000000000000000000000000000000000000006103a7565b61034b6103ff3660046128fa565b6108d2565b61035f60075481565b61035f61041b366004612873565b61091b565b61035f7f000000000000000000000000000000000000000000000000000000000000000081565b61035f610b01565b61035f600f5481565b61035f62eff10081565b61035f610470366004612873565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6104a0610b2f565b005b61035f7f000000000000000000000000000000000000000000000000000000000000000081565b61034b6104d7366004612873565b600a6020526000908152604090205460ff1681565b6105137f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161032f565b61035f6202a30081565b60055473ffffffffffffffffffffffffffffffffffffffff16610513565b6104a061056e3660046129b3565b610ba2565b61035f60095481565b6104a061058a366004612923565b610f58565b61032261108a565b61034b6105a5366004612873565b600b6020526000908152604090205460ff1681565b6104a06105c83660046129b3565b611099565b6105137f000000000000000000000000000000000000000000000000000000000000000081565b61035f6301312d0081565b61034b61060d3660046128fa565b61144d565b61035f624c4b4081565b61035f60085481565b61034b6106333660046128fa565b61150b565b61035f610646366004612873565b611518565b61035f610659366004612873565b60106020526000908152604090205481565b6104a0611630565b600d5461034b9060ff1681565b61035f600e5481565b61035f60115481565b61035f636415e00081565b61035f6201518081565b6104a06106b5366004612873565b6118c7565b61035f6106c836600461288d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61035f600c5481565b6105137f000000000000000000000000000000000000000000000000000000000000000081565b6104a061073e366004612873565b611be5565b6104a0610751366004612923565b611ce1565b60606003805461076590612c6c565b80601f016020809104026020016040519081016040528092919081815260200182805461079190612c6c565b80156107de5780601f106107b3576101008083540402835291602001916107de565b820191906000526020600020905b8154815290600101906020018083116107c157829003601f168201915b5050505050905090565b60006107f5338484611e0d565b5060015b92915050565b600061080c848484611f8c565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156108b85760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108c58533858403611e0d565b60019150505b9392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916107f5918590610916908690612a71565b611e0d565b6000636415e0004210156109715760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a2076657374696e67206e6f74207374617274656400000060448201526064016108af565b600c546109e65760405162461bcd60e51b815260206004820152602660248201527f53746172676174653a20737461726761746520666f722076657374696e67206e60448201527f6f7420736574000000000000000000000000000000000000000000000000000060648201526084016108af565b60006109f6636415e00042612c29565b905062eff100811115610a09575062eff1005b600062eff10082610a3c8673ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610a469190612bec565b610a509190612a89565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260106020526040902054909150808211610ac85760405162461bcd60e51b815260206004820152601b60248201527f53746172676174653a206e6f7468696e6720746f2072656465656d000000000060448201526064016108af565b6000610ad48284612c29565b9050610adf60025490565b81600c54610aed9190612bec565b610af79190612a89565b9695505050505050565b600d54600090610100900460ff16610b2857601154600f54610b239190612a89565b905090565b50600e5490565b60055473ffffffffffffffffffffffffffffffffffffffff163314610b965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b610ba060006121fc565b565b60026006541415610bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b60026006556008544210801590610c0d575060095442105b610c7f5760405162461bcd60e51b815260206004820152602a60248201527f53746172676174653a206e6f7420696e20746865207365636f6e64206175637460448201527f696f6e20706572696f640000000000000000000000000000000000000000000060648201526084016108af565b6000600f5411610cf75760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a2061756374696f6e20726561636865732069747320636160448201527f700000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b600d54610100900460ff16610d4657601154600f54610d169190612a89565b600e55600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6040517faa883c4e000000000000000000000000000000000000000000000000000000008152336004820152600090309063aa883c4e9060240160206040518083038186803b158015610d9857600080fd5b505afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd091906129cb565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290915060009030906370a082319060240160206040518083038186803b158015610e2557600080fd5b505afa158015610e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5d91906129cb565b905081811015610ed55760405162461bcd60e51b815260206004820152602d60248201527f53746172676174653a206e6f7420656c696769626c6520666f7220746865207360448201527f65636f6e642061756374696f6e0000000000000000000000000000000000000060648201526084016108af565b6000600e5483610ee59190612a71565b905080610ef28584612a71565b10610f0457610f018282612c29565b93505b6000610f0f85612273565b60408051338152602081018390529192507f94cbf68a03aaec7a647f7b08f33a1ab782c0b9e6b3e1d58da301cdd02087b33b91015b60405180910390a150506001600655505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fbf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b8060005b81811015611084576001600a600086868581811061100a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061101f9190612873565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061107c81612cc0565b915050610fc3565b50505050565b60606004805461076590612c6c565b600260065414156110ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600655806111645760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a207265717565737420616d6f756e74206d757374203e2060448201527f300000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6007544210158015611177575060085442105b6111e95760405162461bcd60e51b815260206004820152602960248201527f53746172676174653a206e6f7420696e2074686520666972737420617563746960448201527f6f6e20706572696f64000000000000000000000000000000000000000000000060648201526084016108af565b6000600f54116112615760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a2061756374696f6e20726561636865732069747320636160448201527f700000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6040517faa883c4e000000000000000000000000000000000000000000000000000000008152336004820152600090309063aa883c4e9060240160206040518083038186803b1580156112b357600080fd5b505afa1580156112c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112eb91906129cb565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290915060009030906370a082319060240160206040518083038186803b15801561134057600080fd5b505afa158015611354573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137891906129cb565b90508181106113c95760405162461bcd60e51b815260206004820152601860248201527f53746172676174653a20616c7265616479206174206d6178000000000000000060448201526064016108af565b816113d48483612a71565b106113fb576113e38183612c29565b6011805491945060006113f583612cc0565b91905055505b600061140684612273565b60408051338152602081018390529192507fbd1bc686344ace0f7f050908ed9bf0166ee7d0864549131434f974bd37db8716910160405180910390a1505060016006555050565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054828110156114f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108af565b6115013385858403611e0d565b5060019392505050565b60006107f5338484611f8c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205460ff161561156d57507f0000000000000000000000000000000000000000000000000000000000000000919050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604090205460ff16156115c257507f0000000000000000000000000000000000000000000000000000000000000000919050565b60405162461bcd60e51b815260206004820152602360248201527f53746172676174653a206e6f7420612077686974656c6973746564206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108af565b600260065414156116835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600655636415e0004210156116dc5760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a2076657374696e67206e6f74207374617274656400000060448201526064016108af565b600c546117515760405162461bcd60e51b815260206004820152602660248201527f53746172676174653a20737461726761746520666f722076657374696e67206e60448201527f6f7420736574000000000000000000000000000000000000000000000000000060648201526084016108af565b6000611761636415e00042612c29565b905062eff100811115611774575062eff1005b3360009081526020819052604081205462eff10090611794908490612bec565b61179e9190612a89565b336000908152601060205260409020549091508082116118005760405162461bcd60e51b815260206004820152601b60248201527f53746172676174653a206e6f7468696e6720746f2072656465656d000000000060448201526064016108af565b600061180c8284612c29565b90506118188183612a71565b3360009081526010602052604081209190915560025482600c5461183c9190612bec565b6118469190612a89565b905061188973ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383612314565b60408051338152602081018490529081018290527ff3a670cd3af7d64b488926880889d08a8585a138ff455227af6737339a1ec26290606001610f44565b60055473ffffffffffffffffffffffffffffffffffffffff16331461192e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b60095442116119a55760405162461bcd60e51b815260206004820152602560248201527f53746172676174653a207365636f6e642061756374696f6e206e6f742066696e60448201527f697368656400000000000000000000000000000000000000000000000000000060648201526084016108af565b600d5460ff16156119f85760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a206f776e6572206861732077697468647261776e00000060448201526064016108af565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a6057600080fd5b505afa158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9891906129e3565b611aa390600a612b23565b611ab1906301312d00612bec565b90506000611ae07f0000000000000000000000000000000000000000000000000000000000000000600a612b23565b611aed90624c4b40612bec565b9050600081600f5484611b009190612bec565b611b0a9190612a89565b9050611b168184612c29565b600c55611b5a73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168583612314565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600f546040805173ffffffffffffffffffffffffffffffffffffffff87168152602081019290925281018290527fa01e6732621306ece5d4a5401736695b24b9181f23ec1241eb207816f0f5e4c99060600160405180910390a150505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314611c4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b73ffffffffffffffffffffffffffffffffffffffff8116611cd55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108af565b611cde816121fc565b50565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b8060005b81811015611084576001600b6000868685818110611d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611da89190612873565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580611e0581612cc0565b915050611d4c565b73ffffffffffffffffffffffffffffffffffffffff8316611e955760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff8216611f1e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166120155760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff821661209e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6120a98383836123ed565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156121455760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612189908490612a71565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516121ef91815260200190565b60405180910390a3611084565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600f548211156122885750600f5461228b565b50805b80600f600082825461229d9190612c29565b90915550612305905073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000084612451565b61230f33826124af565b919050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526123e89084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526125c1565b505050565b73ffffffffffffffffffffffffffffffffffffffff8316156123e85760405162461bcd60e51b815260206004820152601060248201527f6e6f6e2d7472616e7366657261626c650000000000000000000000000000000060448201526064016108af565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110849085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612366565b73ffffffffffffffffffffffffffffffffffffffff82166125125760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108af565b61251e600083836123ed565b80600260008282546125309190612a71565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260408120805483929061256a908490612a71565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000612623826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126b39092919063ffffffff16565b8051909150156123e857808060200190518101906126419190612993565b6123e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108af565b60606126c284846000856126ca565b949350505050565b6060824710156127425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108af565b843b6127905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108af565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516127b99190612a04565b60006040518083038185875af1925050503d80600081146127f6576040519150601f19603f3d011682016040523d82523d6000602084013e6127fb565b606091505b509150915061280b828286612816565b979650505050505050565b606083156128255750816108cb565b8251156128355782518084602001fd5b8160405162461bcd60e51b81526004016108af9190612a20565b803573ffffffffffffffffffffffffffffffffffffffff8116811461230f57600080fd5b600060208284031215612884578081fd5b6108cb8261284f565b6000806040838503121561289f578081fd5b6128a88361284f565b91506128b66020840161284f565b90509250929050565b6000806000606084860312156128d3578081fd5b6128dc8461284f565b92506128ea6020850161284f565b9150604084013590509250925092565b6000806040838503121561290c578182fd5b6129158361284f565b946020939093013593505050565b60008060208385031215612935578182fd5b823567ffffffffffffffff8082111561294c578384fd5b818501915085601f83011261295f578384fd5b81358181111561296d578485fd5b8660208260051b8501011115612981578485fd5b60209290920196919550909350505050565b6000602082840312156129a4578081fd5b815180151581146108cb578182fd5b6000602082840312156129c4578081fd5b5035919050565b6000602082840312156129dc578081fd5b5051919050565b6000602082840312156129f4578081fd5b815160ff811681146108cb578182fd5b60008251612a16818460208701612c40565b9190910192915050565b6020815260008251806020840152612a3f816040850160208701612c40565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115612a8457612a84612cf9565b500190565b600082612abd577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b600181815b80851115612b1b57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115612b0157612b01612cf9565b80851615612b0e57918102915b93841c9390800290612ac7565b509250929050565b60006108cb60ff841683600082612b3c575060016107f9565b81612b49575060006107f9565b8160018114612b5f5760028114612b6957612b85565b60019150506107f9565b60ff841115612b7a57612b7a612cf9565b50506001821b6107f9565b5060208310610133831016604e8410600b8410161715612ba8575081810a6107f9565b612bb28383612ac2565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115612be457612be4612cf9565b029392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c2457612c24612cf9565b500290565b600082821015612c3b57612c3b612cf9565b500390565b60005b83811015612c5b578181015183820152602001612c43565b838111156110845750506000910152565b600181811c90821680612c8057607f821691505b60208210811415612cba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612cf257612cf2612cf9565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea264697066735822122027fcb9f7b9e1a26335bc278c4ef138d25a6ce833d97f643bd80ce62f92af6efd64736f6c6343000804003300000000000000000000000065bb797c2b9830d891d87288f029ed8dacc19705000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000062447e80000000000000000000000000000000000000000000000000000000011602ce9000000000000000000000000000000000000000000000000000000000458f01c0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103155760003560e01c806395d7f96c116101a7578063be040fb0116100ee578063d83e697511610097578063f17898f711610071578063f17898f714610709578063f2fde38b14610730578063f4a387cd1461074357600080fd5b8063d83e6975146106a7578063dd62ed3e146106ba578063e0931deb1461070057600080fd5b8063ce7a9d84116100c8578063ce7a9d8414610689578063cf329ace14610692578063d26b7cbd1461069d57600080fd5b8063be040fb01461066b578063c20615ed14610673578063c7e8d7281461068057600080fd5b8063a457c2d711610150578063a9059cbb1161012a578063a9059cbb14610625578063aa883c4e14610638578063af22bd701461064b57600080fd5b8063a457c2d7146105ff578063a616ec4a14610612578063a8b57cc81461061c57600080fd5b806398cd0c6d1161018157806398cd0c6d146105ba578063992642e5146105cd5780639f920a12146105f457600080fd5b806395d7f96c1461057c57806395d89b411461058f57806397f87b541461059757600080fd5b80635f48820a1161026b5780637f4b9a00116102145780638da5cb5b116101ee5780638da5cb5b146105425780638f41202a1461056057806395381e561461057357600080fd5b80637f4b9a00146104c9578063807d1378146104ec5780638940e2f31461053857600080fd5b806370a082311161024557806370a0823114610462578063715018a61461049857806371ffd4f4146104a257600080fd5b80635f48820a146104475780636909df3d1461044f5780636e6941c51461045857600080fd5b80632df9f102116102cd5780634372e048116102a75780634372e04814610404578063484267a41461040d578063506b0d171461042057600080fd5b80632df9f102146103b9578063313ce567146103cb57806339509351146103f157600080fd5b806318160ddd116102fe57806318160ddd1461035b57806323b872dd1461036d57806328554c1b1461038057600080fd5b806306fdde031461031a578063095ea7b314610338575b600080fd5b610322610756565b60405161032f9190612a20565b60405180910390f35b61034b6103463660046128fa565b6107e8565b604051901515815260200161032f565b6002545b60405190815260200161032f565b61034b61037b3660046128bf565b6107ff565b6103a77f000000000000000000000000000000000000000000000000000000000000000681565b60405160ff909116815260200161032f565b600d5461034b90610100900460ff1681565b7f00000000000000000000000000000000000000000000000000000000000000066103a7565b61034b6103ff3660046128fa565b6108d2565b61035f60075481565b61035f61041b366004612873565b61091b565b61035f7f000000000000000000000000000000000000000000000000000000011602ce9081565b61035f610b01565b61035f600f5481565b61035f62eff10081565b61035f610470366004612873565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6104a0610b2f565b005b61035f7f00000000000000000000000000000000000000000000000000000000458f01c081565b61034b6104d7366004612873565b600a6020526000908152604090205460ff1681565b6105137f00000000000000000000000065bb797c2b9830d891d87288f029ed8dacc1970581565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161032f565b61035f6202a30081565b60055473ffffffffffffffffffffffffffffffffffffffff16610513565b6104a061056e3660046129b3565b610ba2565b61035f60095481565b6104a061058a366004612923565b610f58565b61032261108a565b61034b6105a5366004612873565b600b6020526000908152604090205460ff1681565b6104a06105c83660046129b3565b611099565b6105137f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b61035f6301312d0081565b61034b61060d3660046128fa565b61144d565b61035f624c4b4081565b61035f60085481565b61034b6106333660046128fa565b61150b565b61035f610646366004612873565b611518565b61035f610659366004612873565b60106020526000908152604090205481565b6104a0611630565b600d5461034b9060ff1681565b61035f600e5481565b61035f60115481565b61035f636415e00081565b61035f6201518081565b6104a06106b5366004612873565b6118c7565b61035f6106c836600461288d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61035f600c5481565b6105137f000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd681565b6104a061073e366004612873565b611be5565b6104a0610751366004612923565b611ce1565b60606003805461076590612c6c565b80601f016020809104026020016040519081016040528092919081815260200182805461079190612c6c565b80156107de5780601f106107b3576101008083540402835291602001916107de565b820191906000526020600020905b8154815290600101906020018083116107c157829003601f168201915b5050505050905090565b60006107f5338484611e0d565b5060015b92915050565b600061080c848484611f8c565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156108b85760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6108c58533858403611e0d565b60019150505b9392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490916107f5918590610916908690612a71565b611e0d565b6000636415e0004210156109715760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a2076657374696e67206e6f74207374617274656400000060448201526064016108af565b600c546109e65760405162461bcd60e51b815260206004820152602660248201527f53746172676174653a20737461726761746520666f722076657374696e67206e60448201527f6f7420736574000000000000000000000000000000000000000000000000000060648201526084016108af565b60006109f6636415e00042612c29565b905062eff100811115610a09575062eff1005b600062eff10082610a3c8673ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b610a469190612bec565b610a509190612a89565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260106020526040902054909150808211610ac85760405162461bcd60e51b815260206004820152601b60248201527f53746172676174653a206e6f7468696e6720746f2072656465656d000000000060448201526064016108af565b6000610ad48284612c29565b9050610adf60025490565b81600c54610aed9190612bec565b610af79190612a89565b9695505050505050565b600d54600090610100900460ff16610b2857601154600f54610b239190612a89565b905090565b50600e5490565b60055473ffffffffffffffffffffffffffffffffffffffff163314610b965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b610ba060006121fc565b565b60026006541415610bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b60026006556008544210801590610c0d575060095442105b610c7f5760405162461bcd60e51b815260206004820152602a60248201527f53746172676174653a206e6f7420696e20746865207365636f6e64206175637460448201527f696f6e20706572696f640000000000000000000000000000000000000000000060648201526084016108af565b6000600f5411610cf75760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a2061756374696f6e20726561636865732069747320636160448201527f700000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b600d54610100900460ff16610d4657601154600f54610d169190612a89565b600e55600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6040517faa883c4e000000000000000000000000000000000000000000000000000000008152336004820152600090309063aa883c4e9060240160206040518083038186803b158015610d9857600080fd5b505afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd091906129cb565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290915060009030906370a082319060240160206040518083038186803b158015610e2557600080fd5b505afa158015610e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5d91906129cb565b905081811015610ed55760405162461bcd60e51b815260206004820152602d60248201527f53746172676174653a206e6f7420656c696769626c6520666f7220746865207360448201527f65636f6e642061756374696f6e0000000000000000000000000000000000000060648201526084016108af565b6000600e5483610ee59190612a71565b905080610ef28584612a71565b10610f0457610f018282612c29565b93505b6000610f0f85612273565b60408051338152602081018390529192507f94cbf68a03aaec7a647f7b08f33a1ab782c0b9e6b3e1d58da301cdd02087b33b91015b60405180910390a150506001600655505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fbf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b8060005b81811015611084576001600a600086868581811061100a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061101f9190612873565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061107c81612cc0565b915050610fc3565b50505050565b60606004805461076590612c6c565b600260065414156110ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600655806111645760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a207265717565737420616d6f756e74206d757374203e2060448201527f300000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6007544210158015611177575060085442105b6111e95760405162461bcd60e51b815260206004820152602960248201527f53746172676174653a206e6f7420696e2074686520666972737420617563746960448201527f6f6e20706572696f64000000000000000000000000000000000000000000000060648201526084016108af565b6000600f54116112615760405162461bcd60e51b815260206004820152602160248201527f53746172676174653a2061756374696f6e20726561636865732069747320636160448201527f700000000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6040517faa883c4e000000000000000000000000000000000000000000000000000000008152336004820152600090309063aa883c4e9060240160206040518083038186803b1580156112b357600080fd5b505afa1580156112c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112eb91906129cb565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290915060009030906370a082319060240160206040518083038186803b15801561134057600080fd5b505afa158015611354573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137891906129cb565b90508181106113c95760405162461bcd60e51b815260206004820152601860248201527f53746172676174653a20616c7265616479206174206d6178000000000000000060448201526064016108af565b816113d48483612a71565b106113fb576113e38183612c29565b6011805491945060006113f583612cc0565b91905055505b600061140684612273565b60408051338152602081018390529192507fbd1bc686344ace0f7f050908ed9bf0166ee7d0864549131434f974bd37db8716910160405180910390a1505060016006555050565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff86168452909152812054828110156114f45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108af565b6115013385858403611e0d565b5060019392505050565b60006107f5338484611f8c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602052604081205460ff161561156d57507f000000000000000000000000000000000000000000000000000000011602ce90919050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604090205460ff16156115c257507f00000000000000000000000000000000000000000000000000000000458f01c0919050565b60405162461bcd60e51b815260206004820152602360248201527f53746172676174653a206e6f7420612077686974656c6973746564206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108af565b600260065414156116835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600655636415e0004210156116dc5760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a2076657374696e67206e6f74207374617274656400000060448201526064016108af565b600c546117515760405162461bcd60e51b815260206004820152602660248201527f53746172676174653a20737461726761746520666f722076657374696e67206e60448201527f6f7420736574000000000000000000000000000000000000000000000000000060648201526084016108af565b6000611761636415e00042612c29565b905062eff100811115611774575062eff1005b3360009081526020819052604081205462eff10090611794908490612bec565b61179e9190612a89565b336000908152601060205260409020549091508082116118005760405162461bcd60e51b815260206004820152601b60248201527f53746172676174653a206e6f7468696e6720746f2072656465656d000000000060448201526064016108af565b600061180c8284612c29565b90506118188183612a71565b3360009081526010602052604081209190915560025482600c5461183c9190612bec565b6118469190612a89565b905061188973ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6163383612314565b60408051338152602081018490529081018290527ff3a670cd3af7d64b488926880889d08a8585a138ff455227af6737339a1ec26290606001610f44565b60055473ffffffffffffffffffffffffffffffffffffffff16331461192e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b60095442116119a55760405162461bcd60e51b815260206004820152602560248201527f53746172676174653a207365636f6e642061756374696f6e206e6f742066696e60448201527f697368656400000000000000000000000000000000000000000000000000000060648201526084016108af565b600d5460ff16156119f85760405162461bcd60e51b815260206004820152601d60248201527f53746172676174653a206f776e6572206861732077697468647261776e00000060448201526064016108af565b60007f000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a6057600080fd5b505afa158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9891906129e3565b611aa390600a612b23565b611ab1906301312d00612bec565b90506000611ae07f0000000000000000000000000000000000000000000000000000000000000006600a612b23565b611aed90624c4b40612bec565b9050600081600f5484611b009190612bec565b611b0a9190612a89565b9050611b168184612c29565b600c55611b5a73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6168583612314565b600d80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600f546040805173ffffffffffffffffffffffffffffffffffffffff87168152602081019290925281018290527fa01e6732621306ece5d4a5401736695b24b9181f23ec1241eb207816f0f5e4c99060600160405180910390a150505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314611c4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b73ffffffffffffffffffffffffffffffffffffffff8116611cd55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108af565b611cde816121fc565b50565b60055473ffffffffffffffffffffffffffffffffffffffff163314611d485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108af565b8060005b81811015611084576001600b6000868685818110611d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611da89190612873565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905580611e0581612cc0565b915050611d4c565b73ffffffffffffffffffffffffffffffffffffffff8316611e955760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff8216611f1e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166120155760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff821661209e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108af565b6120a98383836123ed565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156121455760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108af565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612189908490612a71565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516121ef91815260200190565b60405180910390a3611084565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600f548211156122885750600f5461228b565b50805b80600f600082825461229d9190612c29565b90915550612305905073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816337f00000000000000000000000065bb797c2b9830d891d87288f029ed8dacc1970584612451565b61230f33826124af565b919050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526123e89084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526125c1565b505050565b73ffffffffffffffffffffffffffffffffffffffff8316156123e85760405162461bcd60e51b815260206004820152601060248201527f6e6f6e2d7472616e7366657261626c650000000000000000000000000000000060448201526064016108af565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526110849085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612366565b73ffffffffffffffffffffffffffffffffffffffff82166125125760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108af565b61251e600083836123ed565b80600260008282546125309190612a71565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260408120805483929061256a908490612a71565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000612623826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126b39092919063ffffffff16565b8051909150156123e857808060200190518101906126419190612993565b6123e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108af565b60606126c284846000856126ca565b949350505050565b6060824710156127425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108af565b843b6127905760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108af565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516127b99190612a04565b60006040518083038185875af1925050503d80600081146127f6576040519150601f19603f3d011682016040523d82523d6000602084013e6127fb565b606091505b509150915061280b828286612816565b979650505050505050565b606083156128255750816108cb565b8251156128355782518084602001fd5b8160405162461bcd60e51b81526004016108af9190612a20565b803573ffffffffffffffffffffffffffffffffffffffff8116811461230f57600080fd5b600060208284031215612884578081fd5b6108cb8261284f565b6000806040838503121561289f578081fd5b6128a88361284f565b91506128b66020840161284f565b90509250929050565b6000806000606084860312156128d3578081fd5b6128dc8461284f565b92506128ea6020850161284f565b9150604084013590509250925092565b6000806040838503121561290c578182fd5b6129158361284f565b946020939093013593505050565b60008060208385031215612935578182fd5b823567ffffffffffffffff8082111561294c578384fd5b818501915085601f83011261295f578384fd5b81358181111561296d578485fd5b8660208260051b8501011115612981578485fd5b60209290920196919550909350505050565b6000602082840312156129a4578081fd5b815180151581146108cb578182fd5b6000602082840312156129c4578081fd5b5035919050565b6000602082840312156129dc578081fd5b5051919050565b6000602082840312156129f4578081fd5b815160ff811681146108cb578182fd5b60008251612a16818460208701612c40565b9190910192915050565b6020815260008251806020840152612a3f816040850160208701612c40565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008219821115612a8457612a84612cf9565b500190565b600082612abd577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b600181815b80851115612b1b57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115612b0157612b01612cf9565b80851615612b0e57918102915b93841c9390800290612ac7565b509250929050565b60006108cb60ff841683600082612b3c575060016107f9565b81612b49575060006107f9565b8160018114612b5f5760028114612b6957612b85565b60019150506107f9565b60ff841115612b7a57612b7a612cf9565b50506001821b6107f9565b5060208310610133831016604e8410600b8410161715612ba8575081810a6107f9565b612bb28383612ac2565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115612be457612be4612cf9565b029392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c2457612c24612cf9565b500290565b600082821015612c3b57612c3b612cf9565b500390565b60005b83811015612c5b578181015183820152602001612c43565b838111156110845750506000910152565b600181811c90821680612c8057607f821691505b60208210811415612cba577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612cf257612cf2612cf9565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea264697066735822122027fcb9f7b9e1a26335bc278c4ef138d25a6ce833d97f643bd80ce62f92af6efd64736f6c63430008040033

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

00000000000000000000000065bb797c2b9830d891d87288f029ed8dacc19705000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000062447e80000000000000000000000000000000000000000000000000000000011602ce9000000000000000000000000000000000000000000000000000000000458f01c0

-----Decoded View---------------
Arg [0] : _stargateTreasury (address): 0x65bb797c2B9830d891D87288F029ed8dACc19705
Arg [1] : _stargate (address): 0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6
Arg [2] : _stableCoin (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : _auctionStartTime (uint256): 1648656000
Arg [4] : _astgWhitelistMaxAlloc (uint256): 4664250000
Arg [5] : _bondingWhitelistMaxAlloc (uint256): 1167000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000065bb797c2b9830d891d87288f029ed8dacc19705
Arg [1] : 000000000000000000000000af5191b0de278c7286d6c7cc6ab6bb8a73ba2cd6
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 0000000000000000000000000000000000000000000000000000000062447e80
Arg [4] : 000000000000000000000000000000000000000000000000000000011602ce90
Arg [5] : 00000000000000000000000000000000000000000000000000000000458f01c0


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.