ETH Price: $3,887.41 (-0.66%)

Token

Curve sETH Pool yVault (yvCurve-sETH)
 

Overview

Max Total Supply

33.836611993014790441 yvCurve-sETH

Holders

111 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 yvCurve-sETH

Value
$0.00
0x8e2134931f45a6d9113b90eab841b1a4060c3d6e
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:
Vyper_contract

Compiler Version
vyper:0.2.8

Optimization Enabled:
N/A

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Vyper language format)

# @version 0.2.8
"""
@title Yearn Token Vault
@license GNU AGPLv3
@author yearn.finance
@notice
    Yearn Token Vault. Holds an underlying token, and allows users to interact
    with the Yearn ecosystem through Strategies connected to the Vault.
    Vaults are not limited to a single Strategy, they can have as many Strategies
    as can be designed (however the withdrawal queue is capped at 20.)

    Deposited funds are moved into the most impactful strategy that has not
    already reached its limit for assets under management, regardless of which
    Strategy a user's funds end up in, they receive their portion of yields
    generated across all Strategies.

    When a user withdraws, if there are no funds sitting undeployed in the
    Vault, the Vault withdraws funds from Strategies in the order of least
    impact. (Funds are taken from the Strategy that will disturb everyone's
    gains the least, then the next least, etc.) In order to achieve this, the
    withdrawal queue's order must be properly set and managed by the community
    (through governance).

    Vault Strategies are parameterized to pursue the highest risk-adjusted yield.

    There is an "Emergency Shutdown" mode. When the Vault is put into emergency
    shutdown, assets will be recalled from the Strategies as quickly as is
    practical (given on-chain conditions), minimizing loss. Deposits are
    halted, new Strategies may not be added, and each Strategy exits with the
    minimum possible damage to position, while opening up deposits to be
    withdrawn by users. There are no restrictions on withdrawals above what is
    expected under Normal Operation.

    For further details, please refer to the specification:
    https://github.com/iearn-finance/yearn-vaults/blob/master/SPECIFICATION.md
"""

API_VERSION: constant(String[28]) = "0.3.2"

from vyper.interfaces import ERC20

implements: ERC20


interface DetailedERC20:
    def name() -> String[42]: view
    def symbol() -> String[20]: view
    def decimals() -> uint256: view


interface Strategy:
    def want() -> address: view
    def vault() -> address: view
    def isActive() -> bool: view
    def estimatedTotalAssets() -> uint256: view
    def withdraw(_amount: uint256) -> uint256: nonpayable
    def migrate(_newStrategy: address): nonpayable


interface GuestList:
    def authorized(guest: address, amount: uint256) -> bool: view


event Transfer:
    sender: indexed(address)
    receiver: indexed(address)
    value: uint256


event Approval:
    owner: indexed(address)
    spender: indexed(address)
    value: uint256


name: public(String[64])
symbol: public(String[32])
decimals: public(uint256)

balanceOf: public(HashMap[address, uint256])
allowance: public(HashMap[address, HashMap[address, uint256]])
totalSupply: public(uint256)

token: public(ERC20)
governance: public(address)
management: public(address)
guardian: public(address)
pendingGovernance: address
guestList: public(GuestList)

struct StrategyParams:
    performanceFee: uint256  # Strategist's fee (basis points)
    activation: uint256  # Activation block.timestamp
    debtRatio: uint256  # Maximum borrow amount (in BPS of total assets)
    minDebtPerHarvest: uint256  # Lower limit on the increase of debt since last harvest
    maxDebtPerHarvest: uint256  # Upper limit on the increase of debt since last harvest
    lastReport: uint256  # block.timestamp of the last time a report occured
    totalDebt: uint256  # Total outstanding debt that Strategy has
    totalGain: uint256  # Total returns that Strategy has realized for Vault
    totalLoss: uint256  # Total losses that Strategy has realized for Vault


event StrategyAdded:
    strategy: indexed(address)
    debtRatio: uint256  # Maximum borrow amount (in BPS of total assets)
    minDebtPerHarvest: uint256  # Lower limit on the increase of debt since last harvest
    maxDebtPerHarvest: uint256  # Upper limit on the increase of debt since last harvest
    performanceFee: uint256  # Strategist's fee (basis points)


event StrategyReported:
    strategy: indexed(address)
    gain: uint256
    loss: uint256
    debtPaid: uint256
    totalGain: uint256
    totalLoss: uint256
    totalDebt: uint256
    debtAdded: uint256
    debtRatio: uint256


event UpdateGovernance:
    governance: address # New active governance


event UpdateManagement:
    management: address # New active manager


event UpdateGuestList:
    guestList: address # Vault guest list address


event UpdateRewards:
    rewards: address # New active rewards recipient


event UpdateDepositLimit:
    depositLimit: uint256 # New active deposit limit


event UpdatePerformanceFee:
    performanceFee: uint256 # New active performance fee


event UpdateManagementFee:
    managementFee: uint256 # New active management fee


event UpdateGuardian:
    guardian: address # Address of the active guardian


event EmergencyShutdown:
    active: bool # New emergency shutdown state (if false, normal operation enabled)


event UpdateWithdrawalQueue:
    queue: address[MAXIMUM_STRATEGIES] # New active withdrawal queue


event StrategyUpdateDebtRatio:
    strategy: indexed(address) # Address of the strategy for the debt ratio adjustment
    debtRatio: uint256 # The new debt limit for the strategy (in BPS of total assets)


event StrategyUpdateMinDebtPerHarvest:
    strategy: indexed(address) # Address of the strategy for the rate limit adjustment
    minDebtPerHarvest: uint256  # Lower limit on the increase of debt since last harvest


event StrategyUpdateMaxDebtPerHarvest:
    strategy: indexed(address) # Address of the strategy for the rate limit adjustment
    maxDebtPerHarvest: uint256  # Upper limit on the increase of debt since last harvest


event StrategyUpdatePerformanceFee:
    strategy: indexed(address) # Address of the strategy for the performance fee adjustment
    performanceFee: uint256 # The new performance fee for the strategy


event StrategyMigrated:
    oldVersion: indexed(address) # Old version of the strategy to be migrated
    newVersion: indexed(address) # New version of the strategy


event StrategyRevoked:
    strategy: indexed(address) # Address of the strategy that is revoked


event StrategyRemovedFromQueue:
    strategy: indexed(address) # Address of the strategy that is removed from the withdrawal queue


event StrategyAddedToQueue:
    strategy: indexed(address) # Address of the strategy that is added to the withdrawal queue



# NOTE: Track the total for overhead targeting purposes
strategies: public(HashMap[address, StrategyParams])
MAXIMUM_STRATEGIES: constant(uint256) = 20
DEGREDATION_COEFFICIENT: constant(uint256) = 10 ** 18

# Ordering that `withdraw` uses to determine which strategies to pull funds from
# NOTE: Does *NOT* have to match the ordering of all the current strategies that
#       exist, but it is recommended that it does or else withdrawal depth is
#       limited to only those inside the queue.
# NOTE: Ordering is determined by governance, and should be balanced according
#       to risk, slippage, and/or volatility. Can also be ordered to increase the
#       withdrawal speed of a particular Strategy.
# NOTE: The first time a ZERO_ADDRESS is encountered, it stops withdrawing
withdrawalQueue: public(address[MAXIMUM_STRATEGIES])

emergencyShutdown: public(bool)

depositLimit: public(uint256)  # Limit for totalAssets the Vault can hold
debtRatio: public(uint256)  # Debt ratio for the Vault across all strategies (in BPS, <= 10k)
totalDebt: public(uint256)  # Amount of tokens that all strategies have borrowed
lastReport: public(uint256)  # block.timestamp of last report
activation: public(uint256)  # block.timestamp of contract deployment
lockedProfit: public(uint256) # how much profit is locked and cant be withdrawn

lockedProfitDegration: public(uint256) # rate per block of degration. DEGREDATION_COEFFICIENT is 100% per block
rewards: public(address)  # Rewards contract where Governance fees are sent to
# Governance Fee for management of Vault (given to `rewards`)
managementFee: public(uint256)
# Governance Fee for performance of Vault (given to `rewards`)
performanceFee: public(uint256)
MAX_BPS: constant(uint256) = 10_000  # 100%, or 10k basis points
SECS_PER_YEAR: constant(uint256) = 31_557_600  # 365.25 days
# `nonces` track `permit` approvals with signature.
nonces: public(HashMap[address, uint256])
DOMAIN_SEPARATOR: public(bytes32)
DOMAIN_TYPE_HASH: constant(bytes32) = keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)')
PERMIT_TYPE_HASH: constant(bytes32) = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")


@external
def initialize(
    token: address,
    governance: address,
    rewards: address,
    nameOverride: String[64],
    symbolOverride: String[32],
    guardian: address = msg.sender,
):
    """
    @notice
        Initializes the Vault, this is called only once, when the contract is
        deployed.
        The performance fee is set to 10% of yield, per Strategy.
        The management fee is set to 2%, per year.
        The initial deposit limit is set to 0 (deposits disabled); it must be
        updated after initialization.
    @dev
        If `nameOverride` is not specified, the name will be 'yearn'
        combined with the name of `token`.

        If `symbolOverride` is not specified, the symbol will be 'y'
        combined with the symbol of `token`.
    @param token The token that may be deposited into this Vault.
    @param governance The address authorized for governance interactions.
    @param rewards The address to distribute rewards to.
    @param nameOverride Specify a custom Vault name. Leave empty for default choice.
    @param symbolOverride Specify a custom Vault symbol name. Leave empty for default choice.
    @param guardian The address authorized for guardian interactions. Defaults to caller.
    """
    assert self.activation == 0  # dev: no devops199
    self.token = ERC20(token)
    if nameOverride == "":
        self.name = concat(DetailedERC20(token).symbol(), " yVault")
    else:
        self.name = nameOverride
    if symbolOverride == "":
        self.symbol = concat("yv", DetailedERC20(token).symbol())
    else:
        self.symbol = symbolOverride
    self.decimals = DetailedERC20(token).decimals()
    self.governance = governance
    log UpdateGovernance(governance)
    self.management = governance
    log UpdateManagement(governance)
    self.rewards = rewards
    log UpdateRewards(rewards)
    self.guardian = guardian
    log UpdateGuardian(guardian)
    self.performanceFee = 1000  # 10% of yield (per Strategy)
    log UpdatePerformanceFee(convert(1000, uint256))
    self.managementFee = 200  # 2% per year
    log UpdateManagementFee(convert(200, uint256))
    self.lastReport = block.timestamp
    self.activation = block.timestamp
    self.lockedProfitDegration = convert(DEGREDATION_COEFFICIENT * 46 /10 ** 6 , uint256) # 6 hours in blocks
    # EIP-712
    self.DOMAIN_SEPARATOR = keccak256(
        concat(
            DOMAIN_TYPE_HASH,
            keccak256(convert("Yearn Vault", Bytes[11])),
            keccak256(convert(API_VERSION, Bytes[28])),
            convert(chain.id, bytes32),
            convert(self, bytes32)
        )
    )


@pure
@external
def apiVersion() -> String[28]:
    """
    @notice
        Used to track the deployed version of this contract. In practice you
        can use this version number to compare with Yearn's GitHub and
        determine which version of the source matches this deployed contract.
    @dev
        All strategies must have an `apiVersion()` that matches the Vault's
        `API_VERSION`.
    @return API_VERSION which holds the current version of this contract.
    """
    return API_VERSION


@external
def setName(name: String[42]):
    """
    @notice
        Used to change the value of `name`.

        This may only be called by governance.
    @param name The new name to use.
    """
    assert msg.sender == self.governance
    self.name = name


@external
def setSymbol(symbol: String[20]):
    """
    @notice
        Used to change the value of `symbol`.

        This may only be called by governance.
    @param symbol The new symbol to use.
    """
    assert msg.sender == self.governance
    self.symbol = symbol


# 2-phase commit for a change in governance
@external
def setGovernance(governance: address):
    """
    @notice
        Nominate a new address to use as governance.

        The change does not go into effect immediately. This function sets a
        pending change, and the governance address is not updated until
        the proposed governance address has accepted the responsibility.

        This may only be called by the current governance address.
    @param governance The address requested to take over Vault governance.
    """
    assert msg.sender == self.governance
    self.pendingGovernance = governance


@external
def acceptGovernance():
    """
    @notice
        Once a new governance address has been proposed using setGovernance(),
        this function may be called by the proposed address to accept the
        responsibility of taking over governance for this contract.

        This may only be called by the proposed governance address.
    @dev
        setGovernance() should be called by the existing governance address,
        prior to calling this function.
    """
    assert msg.sender == self.pendingGovernance
    self.governance = msg.sender
    log UpdateGovernance(msg.sender)


@external
def setManagement(management: address):
    """
    @notice
        Changes the management address.
        Management is able to make some investment decisions adjusting parameters.

        This may only be called by governance.
    @param management The address to use for managing.
    """
    assert msg.sender == self.governance
    self.management = management
    log UpdateManagement(management)


@external
def setGuestList(guestList: address):
    """
    @notice
        Used to set or change `guestList`. A guest list is another contract
        that dictates who is allowed to participate in a Vault (and transfer
        shares).

        This may only be called by governance.
    @param guestList The address of the `GuestList` contract to use.
    """
    assert msg.sender == self.governance
    self.guestList = GuestList(guestList)
    log UpdateGuestList(guestList)


@external
def setRewards(rewards: address):
    """
    @notice
        Changes the rewards address. Any distributed rewards
        will cease flowing to the old address and begin flowing
        to this address once the change is in effect.

        This will not change any Strategy reports in progress, only
        new reports made after this change goes into effect.

        This may only be called by governance.
    @param rewards The address to use for collecting rewards.
    """
    assert msg.sender == self.governance
    self.rewards = rewards
    log UpdateRewards(rewards)

@external
def setLockedProfitDegration(degration: uint256):
    """
    @notice
        Changes the locked profit degration. 
    @param degration The rate of degration in percent per second scaled to 1e18.
    """
    assert msg.sender == self.governance
    assert degration >= 0 and degration <= DEGREDATION_COEFFICIENT
    self.lockedProfitDegration = degration

@external
def setDepositLimit(limit: uint256):
    """
    @notice
        Changes the maximum amount of tokens that can be deposited in this Vault.

        Note, this is not how much may be deposited by a single depositor,
        but the maximum amount that may be deposited across all depositors.

        This may only be called by governance.
    @param limit The new deposit limit to use.
    """
    assert msg.sender == self.governance
    self.depositLimit = limit
    log UpdateDepositLimit(limit)


@external
def setPerformanceFee(fee: uint256):
    """
    @notice
        Used to change the value of `performanceFee`.

        Should set this value below the maximum strategist performance fee.

        This may only be called by governance.
    @param fee The new performance fee to use.
    """
    assert msg.sender == self.governance
    assert fee <= MAX_BPS
    self.performanceFee = fee
    log UpdatePerformanceFee(fee)


@external
def setManagementFee(fee: uint256):
    """
    @notice
        Used to change the value of `managementFee`.

        This may only be called by governance.
    @param fee The new management fee to use.
    """
    assert msg.sender == self.governance
    assert fee <= MAX_BPS
    self.managementFee = fee
    log UpdateManagementFee(fee)


@external
def setGuardian(guardian: address):
    """
    @notice
        Used to change the address of `guardian`.

        This may only be called by governance or the existing guardian.
    @param guardian The new guardian address to use.
    """
    assert msg.sender in [self.guardian, self.governance]
    self.guardian = guardian
    log UpdateGuardian(guardian)


@external
def setEmergencyShutdown(active: bool):
    """
    @notice
        Activates or deactivates Vault mode where all Strategies go into full
        withdrawal.

        During Emergency Shutdown:
        1. No Users may deposit into the Vault (but may withdraw as usual.)
        2. Governance may not add new Strategies.
        3. Each Strategy must pay back their debt as quickly as reasonable to
            minimally affect their position.
        4. Only Governance may undo Emergency Shutdown.

        See contract level note for further details.

        This may only be called by governance or the guardian.
    @param active
        If true, the Vault goes into Emergency Shutdown. If false, the Vault
        goes back into Normal Operation.
    """
    if active:
        assert msg.sender in [self.guardian, self.governance]
    else:
        assert msg.sender == self.governance
    self.emergencyShutdown = active
    log EmergencyShutdown(active)


@external
def setWithdrawalQueue(queue: address[MAXIMUM_STRATEGIES]):
    """
    @notice
        Updates the withdrawalQueue to match the addresses and order specified
        by `queue`.

        There can be fewer strategies than the maximum, as well as fewer than
        the total number of strategies active in the vault. `withdrawalQueue`
        will be updated in a gas-efficient manner, assuming the input is well-
        ordered with 0x0 only at the end.

        This may only be called by governance or management.
    @dev
        This is order sensitive, specify the addresses in the order in which
        funds should be withdrawn (so `queue`[0] is the first Strategy withdrawn
        from, `queue`[1] is the second, etc.)

        This means that the least impactful Strategy (the Strategy that will have
        its core positions impacted the least by having funds removed) should be
        at `queue`[0], then the next least impactful at `queue`[1], and so on.
    @param queue
        The array of addresses to use as the new withdrawal queue. This is
        order sensitive.
    """
    assert msg.sender in [self.management, self.governance]
    # HACK: Temporary until Vyper adds support for Dynamic arrays
    for i in range(MAXIMUM_STRATEGIES):
        if queue[i] == ZERO_ADDRESS and self.withdrawalQueue[i] == ZERO_ADDRESS:
            break
        assert self.strategies[queue[i]].activation > 0
        self.withdrawalQueue[i] = queue[i]
    log UpdateWithdrawalQueue(queue)


@internal
def erc20_safe_transfer(token: address, receiver: address, amount: uint256):
    # Used only to send tokens that are not the type managed by this Vault.
    # HACK: Used to handle non-compliant tokens like USDT
    response: Bytes[32] = raw_call(
        token,
        concat(
            method_id("transfer(address,uint256)"),
            convert(receiver, bytes32),
            convert(amount, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) > 0:
        assert convert(response, bool), "Transfer failed!"


@internal
def erc20_safe_transferFrom(token: address, sender: address, receiver: address, amount: uint256):
    # Used only to send tokens that are not the type managed by this Vault.
    # HACK: Used to handle non-compliant tokens like USDT
    response: Bytes[32] = raw_call(
        token,
        concat(
            method_id("transferFrom(address,address,uint256)"),
            convert(sender, bytes32),
            convert(receiver, bytes32),
            convert(amount, bytes32),
        ),
        max_outsize=32,
    )
    if len(response) > 0:
        assert convert(response, bool), "Transfer failed!"


@internal
def _transfer(sender: address, receiver: address, amount: uint256):
    # See note on `transfer()`.

    # Protect people from accidentally sending their shares to bad places
    assert not (receiver in [self, ZERO_ADDRESS])
    self.balanceOf[sender] -= amount
    self.balanceOf[receiver] += amount
    log Transfer(sender, receiver, amount)


@external
def transfer(receiver: address, amount: uint256) -> bool:
    """
    @notice
        Transfers shares from the caller's address to `receiver`. This function
        will always return true, unless the user is attempting to transfer
        shares to this contract's address, or to 0x0.
    @param receiver
        The address shares are being transferred to. Must not be this contract's
        address, must not be 0x0.
    @param amount The quantity of shares to transfer.
    @return
        True if transfer is sent to an address other than this contract's or
        0x0, otherwise the transaction will fail.
    """
    self._transfer(msg.sender, receiver, amount)
    return True


@external
def transferFrom(sender: address, receiver: address, amount: uint256) -> bool:
    """
    @notice
        Transfers `amount` shares from `sender` to `receiver`. This operation will
        always return true, unless the user is attempting to transfer shares
        to this contract's address, or to 0x0.

        Unless the caller has given this contract unlimited approval,
        transfering shares will decrement the caller's `allowance` by `amount`.
    @param sender The address shares are being transferred from.
    @param receiver
        The address shares are being transferred to. Must not be this contract's
        address, must not be 0x0.
    @param amount The quantity of shares to transfer.
    @return
        True if transfer is sent to an address other than this contract's or
        0x0, otherwise the transaction will fail.
    """
    # Unlimited approval (saves an SSTORE)
    if (self.allowance[sender][msg.sender] < MAX_UINT256):
        allowance: uint256 = self.allowance[sender][msg.sender] - amount
        self.allowance[sender][msg.sender] = allowance
        # NOTE: Allows log filters to have a full accounting of allowance changes
        log Approval(sender, msg.sender, allowance)
    self._transfer(sender, receiver, amount)
    return True


@external
def approve(spender: address, amount: uint256) -> bool:
    """
    @dev Approve the passed address to spend the specified amount of tokens on behalf of
         `msg.sender`. 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. See https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    @param spender The address which will spend the funds.
    @param amount The amount of tokens to be spent.
    """
    self.allowance[msg.sender][spender] = amount
    log Approval(msg.sender, spender, amount)
    return True


@external
def increaseAllowance(spender: address, amount: uint256) -> bool:
    """
    @dev Increase the allowance of the passed address to spend the total amount of tokens
         on behalf of msg.sender. This method mitigates the risk that someone may use both
         the old and the new allowance by unfortunate transaction ordering.
         See https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    @param spender The address which will spend the funds.
    @param amount The amount of tokens to increase the allowance by.
    """
    self.allowance[msg.sender][spender] += amount
    log Approval(msg.sender, spender, self.allowance[msg.sender][spender])
    return True


@external
def decreaseAllowance(spender: address, amount: uint256) -> bool:
    """
    @dev Decrease the allowance of the passed address to spend the total amount of tokens
         on behalf of msg.sender. This method mitigates the risk that someone may use both
         the old and the new allowance by unfortunate transaction ordering.
         See https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    @param spender The address which will spend the funds.
    @param amount The amount of tokens to decrease the allowance by.
    """
    self.allowance[msg.sender][spender] -= amount
    log Approval(msg.sender, spender, self.allowance[msg.sender][spender])
    return True


@external
def permit(owner: address, spender: address, amount: uint256, expiry: uint256, signature: Bytes[65]) -> bool:
    """
    @notice
        Approves spender by owner's signature to expend owner's tokens.
        See https://eips.ethereum.org/EIPS/eip-2612.

    @param owner The address which is a source of funds and has signed the Permit.
    @param spender The address which is allowed to spend the funds.
    @param amount The amount of tokens to be spent.
    @param expiry The timestamp after which the Permit is no longer valid.
    @param signature A valid secp256k1 signature of Permit by owner encoded as r, s, v.
    @return True, if transaction completes successfully
    """
    assert owner != ZERO_ADDRESS  # dev: invalid owner
    assert expiry == 0 or expiry >= block.timestamp  # dev: permit expired
    nonce: uint256 = self.nonces[owner]
    digest: bytes32 = keccak256(
        concat(
            b'\x19\x01',
            self.DOMAIN_SEPARATOR,
            keccak256(
                concat(
                    PERMIT_TYPE_HASH,
                    convert(owner, bytes32),
                    convert(spender, bytes32),
                    convert(amount, bytes32),
                    convert(nonce, bytes32),
                    convert(expiry, bytes32),
                )
            )
        )
    )
    # NOTE: signature is packed as r, s, v
    r: uint256 = convert(slice(signature, 0, 32), uint256)
    s: uint256 = convert(slice(signature, 32, 32), uint256)
    v: uint256 = convert(slice(signature, 64, 1), uint256)
    assert ecrecover(digest, v, r, s) == owner  # dev: invalid signature
    self.allowance[owner][spender] = amount
    self.nonces[owner] = nonce + 1
    log Approval(owner, spender, amount)
    return True


@view
@internal
def _totalAssets() -> uint256:
    # See note on `totalAssets()`.
    return self.token.balanceOf(self) + self.totalDebt


@view
@external
def totalAssets() -> uint256:
    """
    @notice
        Returns the total quantity of all assets under control of this
        Vault, whether they're loaned out to a Strategy, or currently held in
        the Vault.
    @return The total assets under control of this Vault.
    """
    return self._totalAssets()


@internal
def _issueSharesForAmount(to: address, amount: uint256) -> uint256:
    # Issues `amount` Vault shares to `to`.
    # Shares must be issued prior to taking on new collateral, or
    # calculation will be wrong. This means that only *trusted* tokens
    # (with no capability for exploitative behavior) can be used.
    shares: uint256 = 0
    # HACK: Saves 2 SLOADs (~4000 gas)
    totalSupply: uint256 = self.totalSupply
    if totalSupply > 0:
        # Mint amount of shares based on what the Vault is managing overall
        # NOTE: if sqrt(token.totalSupply()) > 1e39, this could potentially revert
        shares = amount * totalSupply / self._totalAssets()
    else:
        # No existing shares, so mint 1:1
        shares = amount

    # Mint new shares
    self.totalSupply = totalSupply + shares
    self.balanceOf[to] += shares
    log Transfer(ZERO_ADDRESS, to, shares)

    return shares


@external
@nonreentrant("withdraw")
def deposit(_amount: uint256 = MAX_UINT256, recipient: address = msg.sender) -> uint256:
    """
    @notice
        Deposits `_amount` `token`, issuing shares to `recipient`. If the
        Vault is in Emergency Shutdown, deposits will not be accepted and this
        call will fail.
    @dev
        Measuring quantity of shares to issues is based on the total
        outstanding debt that this contract has ("expected value") instead
        of the total balance sheet it has ("estimated value") has important
        security considerations, and is done intentionally. If this value were
        measured against external systems, it could be purposely manipulated by
        an attacker to withdraw more assets than they otherwise should be able
        to claim by redeeming their shares.

        On deposit, this means that shares are issued against the total amount
        that the deposited capital can be given in service of the debt that
        Strategies assume. If that number were to be lower than the "expected
        value" at some future point, depositing shares via this method could
        entitle the depositor to *less* than the deposited value once the
        "realized value" is updated from further reports by the Strategies
        to the Vaults.

        Care should be taken by integrators to account for this discrepancy,
        by using the view-only methods of this contract (both off-chain and
        on-chain) to determine if depositing into the Vault is a "good idea".
    @param _amount The quantity of tokens to deposit, defaults to all.
    @param recipient
        The address to issue the shares in this Vault to. Defaults to the
        caller's address.
    @return The issued Vault shares.
    """
    assert not self.emergencyShutdown  # Deposits are locked out

    amount: uint256 = _amount

    # If _amount not specified, transfer the full token balance,
    # up to deposit limit
    if amount == MAX_UINT256:
        amount = min(
            self.depositLimit - self._totalAssets(),
            self.token.balanceOf(msg.sender),
        )
    else:
        # Ensure deposit limit is respected
        assert self._totalAssets() + amount <= self.depositLimit

    # Ensure we are depositing something
    assert amount > 0

    # Ensure deposit is permitted by guest list
    if self.guestList.address != ZERO_ADDRESS:
        assert self.guestList.authorized(msg.sender, amount)

    # Issue new shares (needs to be done before taking deposit to be accurate)
    # Shares are issued to recipient (may be different from msg.sender)
    # See @dev note, above.
    shares: uint256 = self._issueSharesForAmount(recipient, amount)

    # Tokens are transferred from msg.sender (may be different from _recipient)
    self.erc20_safe_transferFrom(self.token.address, msg.sender, self, amount)

    return shares  # Just in case someone wants them


@view
@internal
def _shareValue(shares: uint256) -> uint256:
    # Determines the current value of `shares`.
        # NOTE: if sqrt(Vault.totalAssets()) >>> 1e39, this could potentially revert
    lockedFundsRatio: uint256 = (block.timestamp - self.lastReport) * self.lockedProfitDegration
    freeFunds: uint256 = self._totalAssets()

    if(lockedFundsRatio < DEGREDATION_COEFFICIENT):
        freeFunds -= (self.lockedProfit - (lockedFundsRatio * self.lockedProfit / DEGREDATION_COEFFICIENT))
    # NOTE: using 1e3 for extra precision here, when decimals is low
    return ((10 ** 3 * (shares * freeFunds)) / self.totalSupply) / 10 ** 3

    
@view
@internal
def _sharesForAmount(amount: uint256) -> uint256:
    # Determines how many shares `amount` of token would receive.
    # See dev note on `deposit`.
    if self._totalAssets() > 0:
        # NOTE: if sqrt(token.totalSupply()) > 1e37, this could potentially revert
        return ((10 ** 3 * (amount * self.totalSupply)) / self._totalAssets()) / 10 ** 3
    else:
        return 0


@view
@external
def maxAvailableShares() -> uint256:
    """
    @notice
        Determines the maximum quantity of shares this Vault can facilitate a
        withdrawal for, factoring in assets currently residing in the Vault,
        as well as those deployed to strategies on the Vault's balance sheet.
    @dev
        Regarding how shares are calculated, see dev note on `deposit`.

        If you want to calculated the maximum a user could withdraw up to,
        you want to use this function.

        Note that the amount provided by this function is the theoretical
        maximum possible from withdrawing, the real amount depends on the
        realized losses incurred during withdrawal.
    @return The total quantity of shares this Vault can provide.
    """
    shares: uint256 = self._sharesForAmount(self.token.balanceOf(self))

    for strategy in self.withdrawalQueue:
        if strategy == ZERO_ADDRESS:
            break
        shares += self._sharesForAmount(self.strategies[strategy].totalDebt)

    return shares


@external
@nonreentrant("withdraw")
def withdraw(
    maxShares: uint256 = MAX_UINT256,
    recipient: address = msg.sender,
    maxLoss: uint256 = 1,  # 0.01% [BPS]
) -> uint256:
    """
    @notice
        Withdraws the calling account's tokens from this Vault, redeeming
        amount `_shares` for an appropriate amount of tokens.

        See note on `setWithdrawalQueue` for further details of withdrawal
        ordering and behavior.
    @dev
        Measuring the value of shares is based on the total outstanding debt
        that this contract has ("expected value") instead of the total balance
        sheet it has ("estimated value") has important security considerations,
        and is done intentionally. If this value were measured against external
        systems, it could be purposely manipulated by an attacker to withdraw
        more assets than they otherwise should be able to claim by redeeming
        their shares.

        On withdrawal, this means that shares are redeemed against the total
        amount that the deposited capital had "realized" since the point it
        was deposited, up until the point it was withdrawn. If that number
        were to be higher than the "expected value" at some future point,
        withdrawing shares via this method could entitle the depositor to
        *more* than the expected value once the "realized value" is updated
        from further reports by the Strategies to the Vaults.

        Under exceptional scenarios, this could cause earlier withdrawals to
        earn "more" of the underlying assets than Users might otherwise be
        entitled to, if the Vault's estimated value were otherwise measured
        through external means, accounting for whatever exceptional scenarios
        exist for the Vault (that aren't covered by the Vault's own design.)
    @param maxShares
        How many shares to try and redeem for tokens, defaults to all.
    @param recipient
        The address to issue the shares in this Vault to. Defaults to the
        caller's address.
    @param maxLoss
        The maximum acceptable loss to sustain on withdrawal. Defaults to 0.01%.
    @return The quantity of tokens redeemed for `_shares`.
    """
    shares: uint256 = maxShares  # May reduce this number below

    # If _shares not specified, transfer full share balance
    if shares == MAX_UINT256:
        shares = self.balanceOf[msg.sender]

    # Limit to only the shares they own
    assert shares <= self.balanceOf[msg.sender]

    # See @dev note, above.
    value: uint256 = self._shareValue(shares)

    totalLoss: uint256 = 0
    if value > self.token.balanceOf(self):
        # We need to go get some from our strategies in the withdrawal queue
        # NOTE: This performs forced withdrawals from each Strategy. During
        #       forced withdrawal, a Strategy may realize a loss. That loss
        #       is reported back to the Vault, and the will affect the amount
        #       of tokens that the withdrawer receives for their shares. They
        #       can optionally specify the maximum acceptable loss (in BPS)
        #       to prevent excessive losses on their withdrawals (which may
        #       happen in certain edge cases where Strategies realize a loss)
        for strategy in self.withdrawalQueue:
            if strategy == ZERO_ADDRESS:
                break  # We've exhausted the queue

            vault_balance: uint256 = self.token.balanceOf(self)
            if value <= vault_balance:
                break  # We're done withdrawing

            amountNeeded: uint256 = value - vault_balance

            # NOTE: Don't withdraw more than the debt so that Strategy can still
            #       continue to work based on the profits it has
            # NOTE: This means that user will lose out on any profits that each
            #       Strategy in the queue would return on next harvest, benefiting others
            amountNeeded = min(amountNeeded, self.strategies[strategy].totalDebt)
            if amountNeeded == 0:
                continue  # Nothing to withdraw from this Strategy, try the next one

            # Force withdraw amount from each Strategy in the order set by governance
            loss: uint256 = Strategy(strategy).withdraw(amountNeeded)
            withdrawn: uint256 = self.token.balanceOf(self) - vault_balance

            # NOTE: Withdrawer incurs any losses from liquidation
            if loss > 0:
                value -= loss
                totalLoss += loss
                self.strategies[strategy].totalLoss += loss

            # Reduce the Strategy's debt by the amount withdrawn ("realized returns")
            # NOTE: This doesn't add to returns as it's not earned by "normal means"
            self.strategies[strategy].totalDebt -= withdrawn + loss
            self.totalDebt -= withdrawn + loss

    # NOTE: We have withdrawn everything possible out of the withdrawal queue
    #       but we still don't have enough to fully pay them back, so adjust
    #       to the total amount we've freed up through forced withdrawals
    vault_balance: uint256 = self.token.balanceOf(self)
    if value > vault_balance:
        value = vault_balance
        # NOTE: Burn # of shares that corresponds to what Vault has on-hand,
        #       including the losses that were incurred above during withdrawals
        shares = self._sharesForAmount(value + totalLoss)

    # NOTE: This loss protection is put in place to revert if losses from
    #       withdrawing are more than what is considered acceptable.
    assert totalLoss <= maxLoss * (value + totalLoss) / MAX_BPS

    # Burn shares (full value of what is being withdrawn)
    self.totalSupply -= shares
    self.balanceOf[msg.sender] -= shares
    log Transfer(msg.sender, ZERO_ADDRESS, shares)

    # Withdraw remaining balance to _recipient (may be different to msg.sender) (minus fee)
    self.erc20_safe_transfer(self.token.address, recipient, value)

    return value


@view
@external
def pricePerShare() -> uint256:
    """
    @notice Gives the price for a single Vault share.
    @dev See dev note on `withdraw`.
    @return The value of a single share.
    """
    if self.totalSupply == 0:
        return 10 ** self.decimals  # price of 1:1
    else:
        return self._shareValue(10 ** self.decimals)


@internal
def _organizeWithdrawalQueue():
    # Reorganize `withdrawalQueue` based on premise that if there is an
    # empty value between two actual values, then the empty value should be
    # replaced by the later value.
    # NOTE: Relative ordering of non-zero values is maintained.
    offset: uint256 = 0
    for idx in range(MAXIMUM_STRATEGIES):
        strategy: address = self.withdrawalQueue[idx]
        if strategy == ZERO_ADDRESS:
            offset += 1  # how many values we need to shift, always `<= idx`
        elif offset > 0:
            self.withdrawalQueue[idx - offset] = strategy
            self.withdrawalQueue[idx] = ZERO_ADDRESS


@external
def addStrategy(
    strategy: address,
    debtRatio: uint256,
    minDebtPerHarvest: uint256,
    maxDebtPerHarvest: uint256,
    performanceFee: uint256,
):
    """
    @notice
        Add a Strategy to the Vault.

        This may only be called by governance.
    @dev
        The Strategy will be appended to `withdrawalQueue`, call
        `setWithdrawalQueue` to change the order.
    @param strategy The address of the Strategy to add.
    @param debtRatio
        The share of the total assets in the `vault that the `strategy` has access to.
    @param minDebtPerHarvest
        Lower limit on the increase of debt since last harvest
    @param maxDebtPerHarvest
        Upper limit on the increase of debt since last harvest
    @param performanceFee
        The fee the strategist will receive based on this Vault's performance.
    """
    # Check if queue is full
    assert self.withdrawalQueue[MAXIMUM_STRATEGIES - 1] == ZERO_ADDRESS

    # Check calling conditions
    assert not self.emergencyShutdown
    assert msg.sender == self.governance

    # Check strategy configuration
    assert strategy != ZERO_ADDRESS
    assert self.strategies[strategy].activation == 0
    assert self == Strategy(strategy).vault()
    assert self.token.address == Strategy(strategy).want()

    # Check strategy parameters
    assert self.debtRatio + debtRatio <= MAX_BPS
    assert minDebtPerHarvest <= maxDebtPerHarvest
    assert performanceFee <= MAX_BPS - self.performanceFee

    # Add strategy to approved strategies
    self.strategies[strategy] = StrategyParams({
        performanceFee: performanceFee,
        activation: block.timestamp,
        debtRatio: debtRatio,
        minDebtPerHarvest: minDebtPerHarvest,
        maxDebtPerHarvest: maxDebtPerHarvest,
        lastReport: block.timestamp,
        totalDebt: 0,
        totalGain: 0,
        totalLoss: 0,
    })
    log StrategyAdded(strategy, debtRatio, minDebtPerHarvest, maxDebtPerHarvest, performanceFee)

    # Update Vault parameters
    self.debtRatio += debtRatio

    # Add strategy to the end of the withdrawal queue
    self.withdrawalQueue[MAXIMUM_STRATEGIES - 1] = strategy
    self._organizeWithdrawalQueue()


@external
def updateStrategyDebtRatio(
    strategy: address,
    debtRatio: uint256,
):
    """
    @notice
        Change the quantity of assets `strategy` may manage.

        This may be called by governance or management.
    @param strategy The Strategy to update.
    @param debtRatio The quantity of assets `strategy` may now manage.
    """
    assert msg.sender in [self.management, self.governance]
    assert self.strategies[strategy].activation > 0
    self.debtRatio -= self.strategies[strategy].debtRatio
    self.strategies[strategy].debtRatio = debtRatio
    self.debtRatio += debtRatio
    assert self.debtRatio <= MAX_BPS
    log StrategyUpdateDebtRatio(strategy, debtRatio)


@external
def updateStrategyMinDebtPerHarvest(
    strategy: address,
    minDebtPerHarvest: uint256,
):
    """
    @notice
        Change the quantity assets per block this Vault may deposit to or
        withdraw from `strategy`.

        This may only be called by governance or management.
    @param strategy The Strategy to update.
    @param minDebtPerHarvest
        Lower limit on the increase of debt since last harvest
    """
    assert msg.sender in [self.management, self.governance]
    assert self.strategies[strategy].activation > 0
    assert self.strategies[strategy].maxDebtPerHarvest >= minDebtPerHarvest
    self.strategies[strategy].minDebtPerHarvest = minDebtPerHarvest
    log StrategyUpdateMinDebtPerHarvest(strategy, minDebtPerHarvest)


@external
def updateStrategyMaxDebtPerHarvest(
    strategy: address,
    maxDebtPerHarvest: uint256,
):
    """
    @notice
        Change the quantity assets per block this Vault may deposit to or
        withdraw from `strategy`.

        This may only be called by governance or management.
    @param strategy The Strategy to update.
    @param maxDebtPerHarvest
        Upper limit on the increase of debt since last harvest
    """
    assert msg.sender in [self.management, self.governance]
    assert self.strategies[strategy].activation > 0
    assert self.strategies[strategy].minDebtPerHarvest <= maxDebtPerHarvest
    self.strategies[strategy].maxDebtPerHarvest = maxDebtPerHarvest
    log StrategyUpdateMaxDebtPerHarvest(strategy, maxDebtPerHarvest)


@external
def updateStrategyPerformanceFee(
    strategy: address,
    performanceFee: uint256,
):
    """
    @notice
        Change the fee the strategist will receive based on this Vault's
        performance.

        This may only be called by governance.
    @param strategy The Strategy to update.
    @param performanceFee The new fee the strategist will receive.
    """
    assert msg.sender == self.governance
    assert performanceFee <= MAX_BPS - self.performanceFee
    assert self.strategies[strategy].activation > 0
    self.strategies[strategy].performanceFee = performanceFee
    log StrategyUpdatePerformanceFee(strategy, performanceFee)


@internal
def _revokeStrategy(strategy: address):
    self.debtRatio -= self.strategies[strategy].debtRatio
    self.strategies[strategy].debtRatio = 0
    log StrategyRevoked(strategy)


@external
def migrateStrategy(oldVersion: address, newVersion: address):
    """
    @notice
        Migrates a Strategy, including all assets from `oldVersion` to
        `newVersion`.

        This may only be called by governance.
    @dev
        Strategy must successfully migrate all capital and positions to new
        Strategy, or else this will upset the balance of the Vault.

        The new Strategy should be "empty" e.g. have no prior commitments to
        this Vault, otherwise it could have issues.
    @param oldVersion The existing Strategy to migrate from.
    @param newVersion The new Strategy to migrate to.
    """
    assert msg.sender == self.governance
    assert newVersion != ZERO_ADDRESS
    assert self.strategies[oldVersion].activation > 0
    assert self.strategies[newVersion].activation == 0

    strategy: StrategyParams = self.strategies[oldVersion]

    self._revokeStrategy(oldVersion)
    # _revokeStrategy will lower the debtRatio
    self.debtRatio += strategy.debtRatio
    # Debt is migrated to new strategy
    self.strategies[oldVersion].totalDebt = 0

    self.strategies[newVersion] = StrategyParams({
        performanceFee: strategy.performanceFee,
        # NOTE: use last report for activation time, so E[R] calc works
        activation: strategy.lastReport,
        debtRatio: strategy.debtRatio,
        minDebtPerHarvest: strategy.minDebtPerHarvest,
        maxDebtPerHarvest: strategy.maxDebtPerHarvest,
        lastReport: strategy.lastReport,
        totalDebt: strategy.totalDebt,
        totalGain: 0,
        totalLoss: 0,
    })

    Strategy(oldVersion).migrate(newVersion)
    log StrategyMigrated(oldVersion, newVersion)

    for idx in range(MAXIMUM_STRATEGIES):
        if self.withdrawalQueue[idx] == oldVersion:
            self.withdrawalQueue[idx] = newVersion
            return  # Don't need to reorder anything because we swapped


@external
def revokeStrategy(strategy: address = msg.sender):
    """
    @notice
        Revoke a Strategy, setting its debt limit to 0 and preventing any
        future deposits.

        This function should only be used in the scenario where the Strategy is
        being retired but no migration of the positions are possible, or in the
        extreme scenario that the Strategy needs to be put into "Emergency Exit"
        mode in order for it to exit as quickly as possible. The latter scenario
        could be for any reason that is considered "critical" that the Strategy
        exits its position as fast as possible, such as a sudden change in market
        conditions leading to losses, or an imminent failure in an external
        dependency.

        This may only be called by governance, the guardian, or the Strategy
        itself. Note that a Strategy will only revoke itself during emergency
        shutdown.
    @param strategy The Strategy to revoke.
    """
    assert msg.sender in [strategy, self.governance, self.guardian]
    self._revokeStrategy(strategy)


@external
def addStrategyToQueue(strategy: address):
    """
    @notice
        Adds `strategy` to `withdrawalQueue`.

        This may only be called by governance or management.
    @dev
        The Strategy will be appended to `withdrawalQueue`, call
        `setWithdrawalQueue` to change the order.
    @param strategy The Strategy to add.
    """
    assert msg.sender in [self.management, self.governance]
    # Must be a current Strategy
    assert self.strategies[strategy].activation > 0
    # Check if queue is full
    assert self.withdrawalQueue[MAXIMUM_STRATEGIES - 1] == ZERO_ADDRESS
    # Can't already be in the queue
    for s in self.withdrawalQueue:
        if strategy == ZERO_ADDRESS:
            break
        assert s != strategy
    self.withdrawalQueue[MAXIMUM_STRATEGIES - 1] = strategy
    self._organizeWithdrawalQueue()
    log StrategyAddedToQueue(strategy)


@external
def removeStrategyFromQueue(strategy: address):
    """
    @notice
        Remove `strategy` from `withdrawalQueue`.

        This may only be called by governance or management.
    @dev
        We don't do this with revokeStrategy because it should still
        be possible to withdraw from the Strategy if it's unwinding.
    @param strategy The Strategy to remove.
    """
    assert msg.sender in [self.management, self.governance]
    for idx in range(MAXIMUM_STRATEGIES):
        if self.withdrawalQueue[idx] == strategy:
            self.withdrawalQueue[idx] = ZERO_ADDRESS
            self._organizeWithdrawalQueue()
            log StrategyRemovedFromQueue(strategy)
            return  # We found the right location and cleared it
    raise  # We didn't find the Strategy in the queue


@view
@internal
def _debtOutstanding(strategy: address) -> uint256:
    # See note on `debtOutstanding()`.
    strategy_debtLimit: uint256 = self.strategies[strategy].debtRatio * self._totalAssets() / MAX_BPS
    strategy_totalDebt: uint256 = self.strategies[strategy].totalDebt

    if self.emergencyShutdown:
        return strategy_totalDebt
    elif strategy_totalDebt <= strategy_debtLimit:
        return 0
    else:
        return strategy_totalDebt - strategy_debtLimit


@view
@external
def debtOutstanding(strategy: address = msg.sender) -> uint256:
    """
    @notice
        Determines if `strategy` is past its debt limit and if any tokens
        should be withdrawn to the Vault.
    @param strategy The Strategy to check. Defaults to the caller.
    @return The quantity of tokens to withdraw.
    """
    return self._debtOutstanding(strategy)


@view
@internal
def _creditAvailable(strategy: address) -> uint256:
    # See note on `creditAvailable()`.
    if self.emergencyShutdown:
        return 0

    vault_totalAssets: uint256 = self._totalAssets()
    vault_debtLimit: uint256 = self.debtRatio * vault_totalAssets / MAX_BPS
    vault_totalDebt: uint256 = self.totalDebt
    strategy_debtLimit: uint256 = self.strategies[strategy].debtRatio * vault_totalAssets / MAX_BPS
    strategy_totalDebt: uint256 = self.strategies[strategy].totalDebt
    strategy_minDebtPerHarvest: uint256 = self.strategies[strategy].minDebtPerHarvest
    strategy_maxDebtPerHarvest: uint256 = self.strategies[strategy].maxDebtPerHarvest

    # Exhausted credit line
    if strategy_debtLimit <= strategy_totalDebt or vault_debtLimit <= vault_totalDebt:
        return 0

    # Start with debt limit left for the Strategy
    available: uint256 = strategy_debtLimit - strategy_totalDebt

    # Adjust by the global debt limit left
    available = min(available, vault_debtLimit - vault_totalDebt)

    # Can only borrow up to what the contract has in reserve
    # NOTE: Running near 100% is discouraged
    available = min(available, self.token.balanceOf(self))

    # Adjust by min and max borrow limits (per harvest)
    # NOTE: min increase can be used to ensure that if a strategy has a minimum
    #       amount of capital needed to purchase a position, it's not given capital
    #       it can't make use of yet.
    # NOTE: max increase is used to make sure each harvest isn't bigger than what
    #       is authorized. This combined with adjusting min and max periods in
    #       `BaseStrategy` can be used to effect a "rate limit" on capital increase.
    if available < strategy_minDebtPerHarvest:
        return 0
    else:
        return min(available, strategy_maxDebtPerHarvest)

@view
@external
def creditAvailable(strategy: address = msg.sender) -> uint256:
    """
    @notice
        Amount of tokens in Vault a Strategy has access to as a credit line.

        This will check the Strategy's debt limit, as well as the tokens
        available in the Vault, and determine the maximum amount of tokens
        (if any) the Strategy may draw on.

        In the rare case the Vault is in emergency shutdown this will return 0.
    @param strategy The Strategy to check. Defaults to caller.
    @return The quantity of tokens available for the Strategy to draw on.
    """
    return self._creditAvailable(strategy)


@view
@internal
def _expectedReturn(strategy: address) -> uint256:
    # See note on `expectedReturn()`.
    strategy_lastReport: uint256 = self.strategies[strategy].lastReport
    timeSinceLastHarvest: uint256 = block.timestamp - strategy_lastReport
    totalHarvestTime: uint256 = strategy_lastReport - self.strategies[strategy].activation

    # NOTE: If either `timeSinceLastHarvest` or `totalHarvestTime` is 0, we can short-circuit to `0`
    if timeSinceLastHarvest > 0 and totalHarvestTime > 0 and Strategy(strategy).isActive():
        # NOTE: Unlikely to throw unless strategy accumalates >1e68 returns
        # NOTE: Calculate average over period of time where harvests have occured in the past
        return (self.strategies[strategy].totalGain * timeSinceLastHarvest) / totalHarvestTime
    else:
        return 0  # Covers the scenario when block.timestamp == activation


@view
@external
def availableDepositLimit() -> uint256:
    if self.depositLimit > self._totalAssets():
        return self.depositLimit - self._totalAssets()
    else:
        return 0


@view
@external
def expectedReturn(strategy: address = msg.sender) -> uint256:
    """
    @notice
        Provide an accurate expected value for the return this `strategy`
        would provide to the Vault the next time `report()` is called
        (since the last time it was called).
    @param strategy The Strategy to determine the expected return for. Defaults to caller.
    @return
        The anticipated amount `strategy` should make on its investment
        since its last report.
    """
    return self._expectedReturn(strategy)


@internal
def _reportLoss(strategy: address, loss: uint256):
    # Loss can only be up the amount of debt issued to strategy
    totalDebt: uint256 = self.strategies[strategy].totalDebt
    assert totalDebt >= loss
    self.strategies[strategy].totalLoss += loss
    self.strategies[strategy].totalDebt = totalDebt - loss
    self.totalDebt -= loss

    # Also, make sure we reduce our trust with the strategy by the same amount
    debtRatio: uint256 = self.strategies[strategy].debtRatio
    ratio_change: uint256 = min(loss * MAX_BPS / self._totalAssets(), debtRatio)
    self.strategies[strategy].debtRatio -= ratio_change 
    self.debtRatio -= ratio_change

@internal
def _assessFees(strategy: address, gain: uint256):
    # Issue new shares to cover fees
    # NOTE: In effect, this reduces overall share price by the combined fee
    # NOTE: may throw if Vault.totalAssets() > 1e64, or not called for more than a year
    governance_fee: uint256 = (
        (self.totalDebt * (block.timestamp - self.lastReport) * self.managementFee)
        / MAX_BPS
        / SECS_PER_YEAR
    )
    strategist_fee: uint256 = 0  # Only applies in certain conditions

    # NOTE: Applies if Strategy is not shutting down, or it is but all debt paid off
    # NOTE: No fee is taken when a Strategy is unwinding it's position, until all debt is paid
    if gain > 0:
        # NOTE: Unlikely to throw unless strategy reports >1e72 harvest profit
        strategist_fee = (
            gain * self.strategies[strategy].performanceFee
        ) / MAX_BPS
        # NOTE: Unlikely to throw unless strategy reports >1e72 harvest profit
        governance_fee += gain * self.performanceFee / MAX_BPS

    # NOTE: This must be called prior to taking new collateral,
    #       or the calculation will be wrong!
    # NOTE: This must be done at the same time, to ensure the relative
    #       ratio of governance_fee : strategist_fee is kept intact
    total_fee: uint256 = governance_fee + strategist_fee
    if total_fee > 0:  # NOTE: If mgmt fee is 0% and no gains were realized, skip
        reward: uint256 = self._issueSharesForAmount(self, total_fee)

        # Send the rewards out as new shares in this Vault
        if strategist_fee > 0:  # NOTE: Guard against DIV/0 fault
            # NOTE: Unlikely to throw unless sqrt(reward) >>> 1e39
            strategist_reward: uint256 = (strategist_fee * reward) / total_fee
            self._transfer(self, strategy, strategist_reward)
            # NOTE: Strategy distributes rewards at the end of harvest()
        # NOTE: Governance earns any dust leftover from flooring math above
        if self.balanceOf[self] > 0:
            self._transfer(self, self.rewards, self.balanceOf[self])


@external
def report(gain: uint256, loss: uint256, _debtPayment: uint256) -> uint256:
    """
    @notice
        Reports the amount of assets the calling Strategy has free (usually in
        terms of ROI).

        The performance fee is determined here, off of the strategy's profits
        (if any), and sent to governance.

        The strategist's fee is also determined here (off of profits), to be
        handled according to the strategist on the next harvest.

        This may only be called by a Strategy managed by this Vault.
    @dev
        For approved strategies, this is the most efficient behavior.
        The Strategy reports back what it has free, then Vault "decides"
        whether to take some back or give it more. Note that the most it can
        take is `gain + _debtPayment`, and the most it can give is all of the
        remaining reserves. Anything outside of those bounds is abnormal behavior.

        All approved strategies must have increased diligence around
        calling this function, as abnormal behavior could become catastrophic.
    @param gain
        Amount Strategy has realized as a gain on it's investment since its
        last report, and is free to be given back to Vault as earnings
    @param loss
        Amount Strategy has realized as a loss on it's investment since its
        last report, and should be accounted for on the Vault's balance sheet
    @param _debtPayment
        Amount Strategy has made available to cover outstanding debt
    @return Amount of debt outstanding (if totalDebt > debtLimit or emergency shutdown).
    """

    # Only approved strategies can call this function
    assert self.strategies[msg.sender].activation > 0
    # No lying about total available to withdraw!
    assert self.token.balanceOf(msg.sender) >= gain + _debtPayment

    # We have a loss to report, do it before the rest of the calculations
    if loss > 0:
        self._reportLoss(msg.sender, loss)

    # Assess both management fee and performance fee, and issue both as shares of the vault
    self._assessFees(msg.sender, gain)

    # Returns are always "realized gains"
    self.strategies[msg.sender].totalGain += gain

    # Outstanding debt the Strategy wants to take back from the Vault (if any)
    # NOTE: debtOutstanding <= StrategyParams.totalDebt
    debt: uint256 = self._debtOutstanding(msg.sender)
    debtPayment: uint256 = min(_debtPayment, debt)

    if debtPayment > 0:
        self.strategies[msg.sender].totalDebt -= debtPayment
        self.totalDebt -= debtPayment
        debt -= debtPayment
        # NOTE: `debt` is being tracked for later

    # Compute the line of credit the Vault is able to offer the Strategy (if any)
    credit: uint256 = self._creditAvailable(msg.sender)

    # Update the actual debt based on the full credit we are extending to the Strategy
    # or the returns if we are taking funds back
    # NOTE: credit + self.strategies[msg.sender].totalDebt is always < self.debtLimit
    # NOTE: At least one of `credit` or `debt` is always 0 (both can be 0)
    if credit > 0:
        self.strategies[msg.sender].totalDebt += credit
        self.totalDebt += credit

    # Give/take balance to Strategy, based on the difference between the reported gains
    # (if any), the debt payment (if any), the credit increase we are offering (if any),
    # and the debt needed to be paid off (if any)
    # NOTE: This is just used to adjust the balance of tokens between the Strategy and
    #       the Vault based on the Strategy's debt limit (as well as the Vault's).
    totalAvail: uint256 = gain + debtPayment
    if totalAvail < credit:  # credit surplus, give to Strategy
        self.erc20_safe_transfer(self.token.address, msg.sender, credit - totalAvail)
    elif totalAvail > credit:  # credit deficit, take from Strategy
        self.erc20_safe_transferFrom(self.token.address, msg.sender, self, totalAvail - credit)
    # else, don't do anything because it is balanced

    # Update reporting time
    self.strategies[msg.sender].lastReport = block.timestamp
    self.lastReport = block.timestamp
    self.lockedProfit = gain # profit is locked and gradually released per block

    log StrategyReported(
        msg.sender,
        gain,
        loss,
        debtPayment,
        self.strategies[msg.sender].totalGain,
        self.strategies[msg.sender].totalLoss,
        self.strategies[msg.sender].totalDebt,
        credit,
        self.strategies[msg.sender].debtRatio,
    )

    if self.strategies[msg.sender].debtRatio == 0 or self.emergencyShutdown:
        # Take every last penny the Strategy has (Emergency Exit/revokeStrategy)
        # NOTE: This is different than `debt` in order to extract *all* of the returns
        return Strategy(msg.sender).estimatedTotalAssets()
    else:
        # Otherwise, just return what we have as debt outstanding
        return debt


@external
def sweep(token: address, amount: uint256 = MAX_UINT256):
    """
    @notice
        Removes tokens from this Vault that are not the type of token managed
        by this Vault. This may be used in case of accidentally sending the
        wrong kind of token to this Vault.

        Tokens will be sent to `governance`.

        This will fail if an attempt is made to sweep the tokens that this
        Vault manages.

        This may only be called by governance.
    @param token The token to transfer out of this vault.
    @param amount The quantity or tokenId to transfer out.
    """
    assert msg.sender == self.governance
    # Can't be used to steal what this Vault is protecting
    assert token != self.token.address
    value: uint256 = amount
    if value == MAX_UINT256:
        value = ERC20(token).balanceOf(self)
    self.erc20_safe_transfer(token, self.governance, value)

Contract Security Audit

Contract ABI

[{"name":"Transfer","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"address","name":"receiver","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"spender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyAdded","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"debtRatio","indexed":false},{"type":"uint256","name":"minDebtPerHarvest","indexed":false},{"type":"uint256","name":"maxDebtPerHarvest","indexed":false},{"type":"uint256","name":"performanceFee","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyReported","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"gain","indexed":false},{"type":"uint256","name":"loss","indexed":false},{"type":"uint256","name":"debtPaid","indexed":false},{"type":"uint256","name":"totalGain","indexed":false},{"type":"uint256","name":"totalLoss","indexed":false},{"type":"uint256","name":"totalDebt","indexed":false},{"type":"uint256","name":"debtAdded","indexed":false},{"type":"uint256","name":"debtRatio","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateGovernance","inputs":[{"type":"address","name":"governance","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateManagement","inputs":[{"type":"address","name":"management","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateGuestList","inputs":[{"type":"address","name":"guestList","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateRewards","inputs":[{"type":"address","name":"rewards","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateDepositLimit","inputs":[{"type":"uint256","name":"depositLimit","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdatePerformanceFee","inputs":[{"type":"uint256","name":"performanceFee","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateManagementFee","inputs":[{"type":"uint256","name":"managementFee","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateGuardian","inputs":[{"type":"address","name":"guardian","indexed":false}],"anonymous":false,"type":"event"},{"name":"EmergencyShutdown","inputs":[{"type":"bool","name":"active","indexed":false}],"anonymous":false,"type":"event"},{"name":"UpdateWithdrawalQueue","inputs":[{"type":"address[20]","name":"queue","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyUpdateDebtRatio","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"debtRatio","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyUpdateMinDebtPerHarvest","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"minDebtPerHarvest","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyUpdateMaxDebtPerHarvest","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"maxDebtPerHarvest","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyUpdatePerformanceFee","inputs":[{"type":"address","name":"strategy","indexed":true},{"type":"uint256","name":"performanceFee","indexed":false}],"anonymous":false,"type":"event"},{"name":"StrategyMigrated","inputs":[{"type":"address","name":"oldVersion","indexed":true},{"type":"address","name":"newVersion","indexed":true}],"anonymous":false,"type":"event"},{"name":"StrategyRevoked","inputs":[{"type":"address","name":"strategy","indexed":true}],"anonymous":false,"type":"event"},{"name":"StrategyRemovedFromQueue","inputs":[{"type":"address","name":"strategy","indexed":true}],"anonymous":false,"type":"event"},{"name":"StrategyAddedToQueue","inputs":[{"type":"address","name":"strategy","indexed":true}],"anonymous":false,"type":"event"},{"name":"initialize","outputs":[],"inputs":[{"type":"address","name":"token"},{"type":"address","name":"governance"},{"type":"address","name":"rewards"},{"type":"string","name":"nameOverride"},{"type":"string","name":"symbolOverride"}],"stateMutability":"nonpayable","type":"function"},{"name":"initialize","outputs":[],"inputs":[{"type":"address","name":"token"},{"type":"address","name":"governance"},{"type":"address","name":"rewards"},{"type":"string","name":"nameOverride"},{"type":"string","name":"symbolOverride"},{"type":"address","name":"guardian"}],"stateMutability":"nonpayable","type":"function"},{"name":"apiVersion","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"pure","type":"function","gas":4519},{"name":"setName","outputs":[],"inputs":[{"type":"string","name":"name"}],"stateMutability":"nonpayable","type":"function","gas":107017},{"name":"setSymbol","outputs":[],"inputs":[{"type":"string","name":"symbol"}],"stateMutability":"nonpayable","type":"function","gas":71867},{"name":"setGovernance","outputs":[],"inputs":[{"type":"address","name":"governance"}],"stateMutability":"nonpayable","type":"function","gas":36338},{"name":"acceptGovernance","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function","gas":37610},{"name":"setManagement","outputs":[],"inputs":[{"type":"address","name":"management"}],"stateMutability":"nonpayable","type":"function","gas":37748},{"name":"setGuestList","outputs":[],"inputs":[{"type":"address","name":"guestList"}],"stateMutability":"nonpayable","type":"function","gas":37778},{"name":"setRewards","outputs":[],"inputs":[{"type":"address","name":"rewards"}],"stateMutability":"nonpayable","type":"function","gas":37808},{"name":"setLockedProfitDegration","outputs":[],"inputs":[{"type":"uint256","name":"degration"}],"stateMutability":"nonpayable","type":"function","gas":36516},{"name":"setDepositLimit","outputs":[],"inputs":[{"type":"uint256","name":"limit"}],"stateMutability":"nonpayable","type":"function","gas":37768},{"name":"setPerformanceFee","outputs":[],"inputs":[{"type":"uint256","name":"fee"}],"stateMutability":"nonpayable","type":"function","gas":37902},{"name":"setManagementFee","outputs":[],"inputs":[{"type":"uint256","name":"fee"}],"stateMutability":"nonpayable","type":"function","gas":37932},{"name":"setGuardian","outputs":[],"inputs":[{"type":"address","name":"guardian"}],"stateMutability":"nonpayable","type":"function","gas":39176},{"name":"setEmergencyShutdown","outputs":[],"inputs":[{"type":"bool","name":"active"}],"stateMutability":"nonpayable","type":"function","gas":39247},{"name":"setWithdrawalQueue","outputs":[],"inputs":[{"type":"address[20]","name":"queue"}],"stateMutability":"nonpayable","type":"function","gas":763923},{"name":"transfer","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"receiver"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function","gas":76913},{"name":"transferFrom","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"sender"},{"type":"address","name":"receiver"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function","gas":116676},{"name":"approve","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"spender"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function","gas":38334},{"name":"increaseAllowance","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"spender"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function","gas":40375},{"name":"decreaseAllowance","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"spender"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function","gas":40399},{"name":"permit","outputs":[{"type":"bool","name":""}],"inputs":[{"type":"address","name":"owner"},{"type":"address","name":"spender"},{"type":"uint256","name":"amount"},{"type":"uint256","name":"expiry"},{"type":"bytes","name":"signature"}],"stateMutability":"nonpayable","type":"function","gas":81327},{"name":"totalAssets","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":4303},{"name":"deposit","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"nonpayable","type":"function"},{"name":"deposit","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_amount"}],"stateMutability":"nonpayable","type":"function"},{"name":"deposit","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"_amount"},{"type":"address","name":"recipient"}],"stateMutability":"nonpayable","type":"function"},{"name":"maxAvailableShares","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":379843},{"name":"withdraw","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"nonpayable","type":"function"},{"name":"withdraw","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"maxShares"}],"stateMutability":"nonpayable","type":"function"},{"name":"withdraw","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"maxShares"},{"type":"address","name":"recipient"}],"stateMutability":"nonpayable","type":"function"},{"name":"withdraw","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"maxShares"},{"type":"address","name":"recipient"},{"type":"uint256","name":"maxLoss"}],"stateMutability":"nonpayable","type":"function"},{"name":"pricePerShare","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":17509},{"name":"addStrategy","outputs":[],"inputs":[{"type":"address","name":"strategy"},{"type":"uint256","name":"debtRatio"},{"type":"uint256","name":"minDebtPerHarvest"},{"type":"uint256","name":"maxDebtPerHarvest"},{"type":"uint256","name":"performanceFee"}],"stateMutability":"nonpayable","type":"function","gas":1486241},{"name":"updateStrategyDebtRatio","outputs":[],"inputs":[{"type":"address","name":"strategy"},{"type":"uint256","name":"debtRatio"}],"stateMutability":"nonpayable","type":"function","gas":115406},{"name":"updateStrategyMinDebtPerHarvest","outputs":[],"inputs":[{"type":"address","name":"strategy"},{"type":"uint256","name":"minDebtPerHarvest"}],"stateMutability":"nonpayable","type":"function","gas":42654},{"name":"updateStrategyMaxDebtPerHarvest","outputs":[],"inputs":[{"type":"address","name":"strategy"},{"type":"uint256","name":"maxDebtPerHarvest"}],"stateMutability":"nonpayable","type":"function","gas":42684},{"name":"updateStrategyPerformanceFee","outputs":[],"inputs":[{"type":"address","name":"strategy"},{"type":"uint256","name":"performanceFee"}],"stateMutability":"nonpayable","type":"function","gas":41464},{"name":"migrateStrategy","outputs":[],"inputs":[{"type":"address","name":"oldVersion"},{"type":"address","name":"newVersion"}],"stateMutability":"nonpayable","type":"function","gas":1141973},{"name":"revokeStrategy","outputs":[],"inputs":[],"stateMutability":"nonpayable","type":"function"},{"name":"revokeStrategy","outputs":[],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"nonpayable","type":"function"},{"name":"addStrategyToQueue","outputs":[],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"nonpayable","type":"function","gas":1197130},{"name":"removeStrategyFromQueue","outputs":[],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"nonpayable","type":"function","gas":23093586},{"name":"debtOutstanding","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function"},{"name":"debtOutstanding","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"view","type":"function"},{"name":"creditAvailable","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function"},{"name":"creditAvailable","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"view","type":"function"},{"name":"availableDepositLimit","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":10108},{"name":"expectedReturn","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function"},{"name":"expectedReturn","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"strategy"}],"stateMutability":"view","type":"function"},{"name":"report","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"uint256","name":"gain"},{"type":"uint256","name":"loss"},{"type":"uint256","name":"_debtPayment"}],"stateMutability":"nonpayable","type":"function","gas":1009335},{"name":"sweep","outputs":[],"inputs":[{"type":"address","name":"token"}],"stateMutability":"nonpayable","type":"function"},{"name":"sweep","outputs":[],"inputs":[{"type":"address","name":"token"},{"type":"uint256","name":"amount"}],"stateMutability":"nonpayable","type":"function"},{"name":"name","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":9143},{"name":"symbol","outputs":[{"type":"string","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":8196},{"name":"decimals","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2801},{"name":"balanceOf","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":3046},{"name":"allowance","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"},{"type":"address","name":"arg1"}],"stateMutability":"view","type":"function","gas":3291},{"name":"totalSupply","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2891},{"name":"token","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2921},{"name":"governance","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2951},{"name":"management","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":2981},{"name":"guardian","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3011},{"name":"guestList","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3041},{"name":"strategies","outputs":[{"type":"uint256","name":"performanceFee"},{"type":"uint256","name":"activation"},{"type":"uint256","name":"debtRatio"},{"type":"uint256","name":"minDebtPerHarvest"},{"type":"uint256","name":"maxDebtPerHarvest"},{"type":"uint256","name":"lastReport"},{"type":"uint256","name":"totalDebt"},{"type":"uint256","name":"totalGain"},{"type":"uint256","name":"totalLoss"}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":11394},{"name":"withdrawalQueue","outputs":[{"type":"address","name":""}],"inputs":[{"type":"uint256","name":"arg0"}],"stateMutability":"view","type":"function","gas":3210},{"name":"emergencyShutdown","outputs":[{"type":"bool","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3131},{"name":"depositLimit","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3161},{"name":"debtRatio","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3191},{"name":"totalDebt","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3221},{"name":"lastReport","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3251},{"name":"activation","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3281},{"name":"lockedProfit","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3311},{"name":"lockedProfitDegration","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3341},{"name":"rewards","outputs":[{"type":"address","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3371},{"name":"managementFee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3401},{"name":"performanceFee","outputs":[{"type":"uint256","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3431},{"name":"nonces","outputs":[{"type":"uint256","name":""}],"inputs":[{"type":"address","name":"arg0"}],"stateMutability":"view","type":"function","gas":3676},{"name":"DOMAIN_SEPARATOR","outputs":[{"type":"bytes32","name":""}],"inputs":[],"stateMutability":"view","type":"function","gas":3491}]

61510956341561000a57600080fd5b6004361015610018576150ff565b600035601c526383b43589600051141561003657336102205261006c565b63a5b81fdf60005114156100645760a43560a01c1561005457600080fd5b602060a46102203760005061006c565b6000156106af575b60043560a01c1561007c57600080fd5b60243560a01c1561008c57600080fd5b60443560a01c1561009c57600080fd5b60606064356004016101403760406064356004013511156100bc57600080fd5b60406084356004016101c03760206084356004013511156100dc57600080fd5b601354156100e957600080fd5b6004356006556000610280526102808051602082012090506101408051602082012090501415610230576000606061032060046395d89b416102c0526102dc6004355afa61013657600080fd5b603f3d1161014357600080fd5b60156103206103205101511061015857600080fd5b6000506103406014806020846103e001018260208501600060045af15050805182019150506007610380527f20795661756c74000000000000000000000000000000000000000000000000006103a0526103806007806020846103e001018260208501600060045af1505080518201915050806103e0526103e0905080600060c052602060c020602082510161012060006002818352015b8261012051602002111561020357610225565b61012051602002850151610120518501555b81516001018083528114156101f0575b50505050505061028b565b61014080600060c052602060c020602082510161012060006003818352015b8261012051602002111561026257610284565b61012051602002850151610120518501555b815160010180835281141561024f575b5050505050505b6000610280526102808051602082012090506101c080516020820120905014156103cc57600060026102c0527f79760000000000000000000000000000000000000000000000000000000000006102e0526102c06002806020846103e001018260208501600060045af1505080518201915050606061038060046395d89b416103205261033c6004355afa61031f57600080fd5b603f3d1161032c57600080fd5b60156103806103805101511061034157600080fd5b6000506103a06014806020846103e001018260208501600060045af1505080518201915050806103e0526103e0905080600160c052602060c020602082510161012060006002818352015b8261012051602002111561039f576103c1565b61012051602002850151610120518501555b815160010180835281141561038c575b505050505050610427565b6101c080600160c052602060c020602082510161012060006002818352015b826101205160200211156103fe57610420565b61012051602002850151610120518501555b81516001018083528114156103eb575b5050505050505b60206102a0600463313ce5676102405261025c6004355afa61044857600080fd5b601f3d1161045557600080fd5b6000506102a051600255602435600755602435610240527f8d55d160c0009eb3d739442df0a3ca089ed64378bfac017e7ddad463f9815b876020610240a1602435600855602435610240527fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef4386020610240a1604435601655604435610240527fdf3c41a916aecbf42361a147f8348c242662c3ce20ecef30e826b80642477a3d6020610240a16102205160095561022051610240527f837b9ad138a0a1839a9637afce5306a5c13e23eb63365686843a5319a243609c6020610240a16103e86018556103e86102405261024051610260527f0810a1c261ca2c0cd86a0152c51c43ba9dc329639d2349f98140891b2ea798eb6020610260a160c860175560c86102405261024051610260527f7a7883b0074f96e2c7fab65eb25abf624c488761a5db889e3bb84855dcc6daaf6020610260a142601255426013556529d635a8e00060155560007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f602082610620010152602081019050600b610500527f596561726e205661756c740000000000000000000000000000000000000000006105205261050080516020820120905060208261062001015260208101905060056105c0527f302e332e320000000000000000000000000000000000000000000000000000006105e0526105c0805160208201209050602082610620010152602081019050466020826106200101526020810190503060208261062001015260208101905080610620526106209050805160208201209050601a55005b63258294106000511415610748576005610140527f302e332e32000000000000000000000000000000000000000000000000000000610160526101408051602001806101e08284600060045af161070557600080fd5b50506101e0518061020001818260206001820306601f820103905003368237505060206101c05260406101e0510160206001820306601f82010390506101c0f350005b63c47f002760005114156107e057604a60043560040161014037602a60043560040135111561077657600080fd5b600754331461078457600080fd5b61014080600060c052602060c020602082510161012060006003818352015b826101205160200211156107b6576107d8565b61012051602002850151610120518501555b81516001018083528114156107a3575b505050505050005b63b84c8246600051141561087857603460043560040161014037601460043560040135111561080e57600080fd5b600754331461081c57600080fd5b61014080600160c052602060c020602082510161012060006002818352015b8261012051602002111561084e57610870565b61012051602002850151610120518501555b815160010180835281141561083b575b505050505050005b63ab033ea960005114156108ac5760043560a01c1561089657600080fd5b60075433146108a457600080fd5b600435600a55005b63238efcbc60005114156108fa57600a5433146108c857600080fd5b3360075533610140527f8d55d160c0009eb3d739442df0a3ca089ed64378bfac017e7ddad463f9815b876020610140a1005b63d4a22bde600051141561095c5760043560a01c1561091857600080fd5b600754331461092657600080fd5b600435600855600435610140527fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef4386020610140a1005b630b5b78eb60005114156109be5760043560a01c1561097a57600080fd5b600754331461098857600080fd5b600435600b55600435610140527f6d674c311329fb38bbc96dc33d2aad03b9bf9fcfdd8f5e5054fda291a5b3c1f86020610140a1005b63ec38a8626000511415610a205760043560a01c156109dc57600080fd5b60075433146109ea57600080fd5b600435601655600435610140527fdf3c41a916aecbf42361a147f8348c242662c3ce20ecef30e826b80642477a3d6020610140a1005b638402a84f6000511415610a6f576007543314610a3c57600080fd5b6000600435101515610a5b57670de0b6b3a76400006004351115610a5e565b60005b610a6757600080fd5b600435601555005b63bdc8144b6000511415610ac1576007543314610a8b57600080fd5b600435600f55600435610140527fae565aab888bca5e19e25a13db7b0c9144305bf55cb0f3f4d724f730e5acdd626020610140a1005b6370897b236000511415610b24576007543314610add57600080fd5b6127106004351115610aee57600080fd5b600435601855600435610140527f0810a1c261ca2c0cd86a0152c51c43ba9dc329639d2349f98140891b2ea798eb6020610140a1005b63fe56e2326000511415610b87576007543314610b4057600080fd5b6127106004351115610b5157600080fd5b600435601755600435610140527f7a7883b0074f96e2c7fab65eb25abf624c488761a5db889e3bb84855dcc6daaf6020610140a1005b638a0dac4a6000511415610c3b5760043560a01c15610ba557600080fd5b600954610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610be45760018352610bf5565b5b8151600101808352811415610bc8575b50505061014051610c0557600080fd5b600435600955600435610140527f837b9ad138a0a1839a9637afce5306a5c13e23eb63365686843a5319a243609c6020610140a1005b6314c644026000511415610d0b5760043560011c15610c5957600080fd5b60043515610cc657600954610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610ca05760018352610cb1565b5b8151600101808352811415610c84575b50505061014051610cc157600080fd5b610cd5565b6007543314610cd457600080fd5b5b600435600e55600435610140527fba40372a3a724dca3c57156128ef1e896724b65b37a17f190b1ad5de68f3a4f36020610140a1005b63941484156000511415610f53576000610120525b610120516004013560a01c15610d3557600080fd5b6020610120510161012052610280610120511015610d5257610d20565b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610d915760018352610da2565b5b8151600101808352811415610d75575b50505061014051610db257600080fd5b61014060006014818352015b60046101405160148110610dd157600080fd5b60200201351515610dff576101405160148110610ded57600080fd5b600d60c052602060c020015415610e02565b60005b15610e0c57610e8f565b60006001600c60046101405160148110610e2557600080fd5b602002013560e05260c052604060c02060c052602060c020015411610e4957600080fd5b60046101405160148110610e5c57600080fd5b60200201356101405160148110610e7257600080fd5b600d60c052602060c02001555b8151600101808352811415610dbe575b50506004356101405260243561016052604435610180526064356101a0526084356101c05260a4356101e05260c4356102005260e43561022052610104356102405261012435610260526101443561028052610164356102a052610184356102c0526101a4356102e0526101c435610300526101e43561032052610204356103405261022435610360526102443561038052610264356103a0527f695ac3ac73f08f2002284ffe563cefe798ee2878a5e04219522e2e99eb89d168610280610140a1005b6000156110f6575b6101a05261014052610160526101805260006004610220527fa9059cbb000000000000000000000000000000000000000000000000000000006102405261022060048060208461028001018260208501600060045af15050805182019150506101605160208261028001015260208101905061018051602082610280010152602081019050806102805261028090508051602001806103208284600060045af161100457600080fd5b505060206103e0610320516103406000610140515af161102357600080fd5b60203d808211156110345780611036565b815b905090506103c0526103c08051602001806101c08284600060045af161105b57600080fd5b505060006101c05111156110f0576101c080602001516000825180602090131561108457600080fd5b809190121561109257600080fd5b806020036101000a8204905090509050151515156110ef576308c379a0610220526020610240526010610260527f5472616e73666572206661696c656421000000000000000000000000000000006102805261026050606461023cfd5b5b6101a051565b6000156112b0575b6101c0526101405261016052610180526101a05260006004610240527f23b872dd00000000000000000000000000000000000000000000000000000000610260526102406004806020846102a001018260208501600060045af1505080518201915050610160516020826102a0010152602081019050610180516020826102a00101526020810190506101a0516020826102a0010152602081019050806102a0526102a090508051602001806103608284600060045af16111be57600080fd5b50506020610440610360516103806000610140515af16111dd57600080fd5b60203d808211156111ee57806111f0565b815b90509050610420526104208051602001806101e08284600060045af161121557600080fd5b505060006101e05111156112aa576101e080602001516000825180602090131561123e57600080fd5b809190121561124c57600080fd5b806020036101000a8204905090509050151515156112a9576308c379a0610240526020610260526010610280527f5472616e73666572206661696c656421000000000000000000000000000000006102a05261028050606461025cfd5b5b6101c051565b6000156113c4575b6101a052610140526101605261018052306101e05260006102005260006101c0526101c061012060006002818352015b610120516020026101e001516101605114156113075760018352611318565b5b81516001018083528114156112e8575b5050506101c0511561132957600080fd5b60036101405160e05260c052604060c0208054610180518082101561134d57600080fd5b8082039050905081555060036101605160e05260c052604060c02080546101805181818301101561137d57600080fd5b80820190509050815550610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b63a9059cbb600051141561141a5760043560a01c156113e257600080fd5b33610140526004356101605260243561018052610180516101605161014051600658016112b8565b600050600160005260206000f350005b6323b872dd60005114156115535760043560a01c1561143857600080fd5b60243560a01c1561144857600080fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460043560e05260c052604060c0203360e05260c052604060c02054101561151957600460043560e05260c052604060c0203360e05260c052604060c02054604435808210156114b957600080fd5b808203905090506101405261014051600460043560e05260c052604060c0203360e05260c052604060c020556101405161016052336004357f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a35b600435610140526024356101605260443561018052610180516101605161014051600658016112b8565b600050600160005260206000f350005b63095ea7b360005114156115d05760043560a01c1561157157600080fd5b60243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b633950935160005114156116815760043560a01c156115ee57600080fd5b60043360e05260c052604060c02060043560e05260c052604060c020805460243581818301101561161e57600080fd5b8082019050905081555060043360e05260c052604060c02060043560e05260c052604060c0205461014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b63a457c2d760005114156117305760043560a01c1561169f57600080fd5b60043360e05260c052604060c02060043560e05260c052604060c0208054602435808210156116cd57600080fd5b8082039050905081555060043360e05260c052604060c02060043560e05260c052604060c0205461014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b639fd5a6cf6000511415611b325760043560a01c1561174e57600080fd5b60243560a01c1561175e57600080fd5b606160843560040161014037604160843560040135111561177e57600080fd5b60006004351861178d57600080fd5b606435151561179d5760016117a4565b4260643510155b5b6117ae57600080fd5b601960043560e05260c052604060c020546101e05260006002610520527f19010000000000000000000000000000000000000000000000000000000000006105405261052060028060208461078001018260208501600060045af1505080518201915050601a5460208261078001015260208101905060007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96020826106800101526020810190506004356020826106800101526020810190506024356020826106800101526020810190506044356020826106800101526020810190506101e05160208261068001015260208101905060643560208261068001015260208101905080610680526106809050805160208201209050602082610780010152602081019050806107805261078090508051602082012090506102005260006020602082066103000161014051828401111561190857600080fd5b6041806103208260206020880688030161014001600060045af150508181528090509050905080602001516000825180602090131561194657600080fd5b809190121561195457600080fd5b806020036101000a82049050905090506102205260206020602082066103200161014051828401111561198657600080fd5b6041806103408260206020880688030161014001600060045af15050818152809050905090508060200151600082518060209013156119c457600080fd5b80919012156119d257600080fd5b806020036101000a820490509050905061024052604060016020820661034001610140518284011115611a0457600080fd5b6041806103608260206020880688030161014001600060045af1505081815280905090509050806020015160008251806020901315611a4257600080fd5b8091901215611a5057600080fd5b806020036101000a8204905090509050610260526004356102005161028052610260516102a052610220516102c052610240516102e052602060c0608061028060015afa5060c05114611aa257600080fd5b604435600460043560e05260c052604060c02060243560e05260c052604060c020556101e0516001818183011015611ad957600080fd5b80820190509050601960043560e05260c052604060c02055604435610280526024356004357f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610280a3600160005260206000f350005b600015611b9f575b6101405260206101e060246370a0823161016052306101805261017c6006545afa611b6457600080fd5b601f3d11611b7157600080fd5b6000506101e051601154818183011015611b8a57600080fd5b80820190509050600052600051610140515650005b6301e1d1146000511415611bc95760065801611b3a565b610140526101405160005260206000f350005b600015611d0d575b61018052610140526101605260006101a0526005546101c05260006101c0511115611c6c57610160516101c0518082028215828483041417611c1257600080fd5b809050905090506101405161016051610180516101a0516101c05160065801611b3a565b6101e0526101c0526101a0526101805261016052610140526101e0518080611c5d57600080fd5b8204905090506101a052611c75565b610160516101a0525b6101c0516101a051818183011015611c8c57600080fd5b8082019050905060055560036101405160e05260c052604060c02080546101a051818183011015611cbc57600080fd5b808201905090508155506101a0516101e0526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101e0a36101a051600052600051610180515650005b63d0e30db06000511415611d4a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610140523361016052611dab565b63b6b55f256000511415611d6d5733610160526020600461014037600050611dab565b636e553f656000511415611da357602060046101403760243560a01c15611d9357600080fd5b6020602461016037600050611dab565b600015612010575b62ffffff5415611dba57600080fd5b600162ffffff55600e5415611dce57600080fd5b61014051610180527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610180511415611e9857600f5461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05180821015611e3a57600080fd5b80820390509050602061024060246370a082316101c052336101e0526101dc6006545afa611e6757600080fd5b601f3d11611e7457600080fd5b6000506102405180821115611e895780611e8b565b815b9050905061018052611eea565b600f5461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05161018051818183011015611ed757600080fd5b808201905090501115611ee957600080fd5b5b60006101805111611efa57600080fd5b6000600b541815611f515760206102406044635ed7660e6101a052336101c052610180516101e0526101bc600b545afa611f3357600080fd5b601f3d11611f4057600080fd5b60005061024051611f5057600080fd5b5b6101405161016051610180516101a051610160516101c052610180516101e0526101e0516101c05160065801611bd1565b610240526101a052610180526101605261014052610240516101a0526101405161016051610180516101a0516006546101c052336101e0523061020052610180516102205261022051610200516101e0516101c051600658016110fe565b6101a0526101805261016052610140526000506101a051600052600062ffffff5560206000f350600062ffffff55005b600015612175575b6101605261014052426012548082101561203157600080fd5b80820390509050601554808202821582848304141761204f57600080fd5b80905090509050610180526101405161016051610180516101a05160065801611b3a565b6101c0526101a0526101805261016052610140526101c0516101a052670de0b6b3a7640000610180511015612108576101a080516014546101805160145480820282158284830414176120c557600080fd5b80905090509050670de0b6b3a764000080820490509050808210156120e957600080fd5b80820390509050808210156120fd57600080fd5b808203905090508152505b6103e8610140516101a051808202821582848304141761212757600080fd5b80905090509050808202821582848304141761214257600080fd5b80905090509050600554808061215757600080fd5b8204905090506103e880820490509050600052600051610160515650005b600015612254575b61016052610140526000610140516101605160065801611b3a565b610180526101605261014052610180511115612243576103e86101405160055480820282158284830414176121cc57600080fd5b8090509050905080820282158284830414176121e757600080fd5b8090509050905061014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a051808061222257600080fd5b8204905090506103e880820490509050600052600051610160515650612252565b60006000526000516101605156505b005b6375de290260005114156123b65760206101e060246370a0823161016052306101805261017c6006545afa61228857600080fd5b601f3d1161229557600080fd5b6000506101e051610200526101405161016051610180516101a0516101c0516101e051610200516102005161022052610220516006580161217d565b61028052610200526101e0526101c0526101a052610180526101605261014052610280516101405261018060006014818352015b61018051600d60c052602060c020015461016052610160511515612328576123a5565b61014080516101405161016051610180516006600c6101605160e05260c052604060c02060c052602060c02001546101a0526101a0516006580161217d565b610200526101805261016052610140526102005181818301101561238a57600080fd5b808201905090508152505b8151600101808352811415612305575b50506101405160005260206000f350005b633ccfd60b60005114156123f9577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101405233610160526001610180526124a3565b632e1a7d4d600051141561242257336101605260016101805260206004610140376000506124a3565b62f714ce600051141561245d57600161018052602060046101403760243560a01c1561244d57600080fd5b60206024610160376000506124a3565b63e63697c8600051141561249b57602060046101403760243560a01c1561248357600080fd5b602060246101603760206044610180376000506124a3565b600015612a7c575b62ffffff54156124b257600080fd5b600162ffffff55610140516101a0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101a05114156125005760033360e05260c052604060c020546101a0525b60033360e05260c052604060c020546101a051111561251e57600080fd5b6101405161016051610180516101a0516101c0516101a0516101e0526101e05160065801612018565b610240526101c0526101a052610180526101605261014052610240516101c05260006101e052602061028060246370a0823161020052306102205261021c6006545afa61259357600080fd5b601f3d116125a057600080fd5b600050610280516101c051111561285e576102c060006014818352015b6102c051600d60c052602060c02001546102a0526102a05115156125e05761285b565b602061038060246370a0823161030052306103205261031c6006545afa61260657600080fd5b601f3d1161261357600080fd5b600050610380516102e0526102e0516101c0511115156126325761285b565b6101c0516102e0518082101561264757600080fd5b8082039050905061030052610300516006600c6102a05160e05260c052604060c02060c052602060c0200154808211156126815780612683565b815b905090506103005261030051151561269a5761284b565b60206103c06024632e1a7d4d61034052610300516103605261035c60006102a0515af16126c657600080fd5b601f3d116126d357600080fd5b6000506103c0516103205260206103e060246370a0823161036052306103805261037c6006545afa61270457600080fd5b601f3d1161271157600080fd5b6000506103e0516102e0518082101561272957600080fd5b808203905090506103405260006103205111156127be576101c08051610320518082101561275657600080fd5b808203905090508152506101e080516103205181818301101561277857600080fd5b808201905090508152506008600c6102a05160e05260c052604060c02060c052602060c020018054610320518181830110156127b357600080fd5b808201905090508155505b6006600c6102a05160e05260c052604060c02060c052602060c02001805461034051610320518181830110156127f357600080fd5b808201905090508082101561280757600080fd5b8082039050905081555060118054610340516103205181818301101561282c57600080fd5b808201905090508082101561284057600080fd5b808203905090508155505b81516001018083528114156125bd575b50505b60206102a060246370a0823161022052306102405261023c6006545afa61288457600080fd5b601f3d1161289157600080fd5b6000506102a05161020052610200516101c051111561292657610200516101c0526101405161016051610180516101a0516101c0516101e051610200516101c0516101e0518181830110156128e557600080fd5b8082019050905061022052610220516006580161217d565b61028052610200526101e0526101c0526101a052610180526101605261014052610280516101a0525b610180516101c0516101e05181818301101561294157600080fd5b80820190509050808202821582848304141761295c57600080fd5b80905090509050612710808204905090506101e051111561297c57600080fd5b600580546101a0518082101561299157600080fd5b8082039050905081555060033360e05260c052604060c02080546101a051808210156129bc57600080fd5b808203905090508155506101a051610220526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610220a36101405161016051610180516101a0516101c0516101e051610200516006546102205261016051610240526101c0516102605261026051610240516102205160065801610f5b565b610200526101e0526101c0526101a0526101805261016052610140526000506101c051600052600062ffffff5560206000f350600062ffffff55005b6399530b066000511415612af0576005541515612ab657604e60025410612aa257600080fd5b600254600a0a60005260206000f350612aee565b604e60025410612ac557600080fd5b600254600a0a610140526101405160065801612018565b6101a0526101a05160005260206000f3505b005b600015612bdd575b6101405260006101605261018060006014818352015b6101805160148110612b1f57600080fd5b600d60c052602060c02001546101a0526101a0511515612b5e5761016080516001818183011015612b4f57600080fd5b80820190509050815250612bc4565b6000610160511115612bc3576101a051610180516101605180821015612b8357600080fd5b8082039050905060148110612b9757600080fd5b600d60c052602060c020015560006101805160148110612bb657600080fd5b600d60c052602060c02001555b5b5b8151600101808352811415612b0e575b505061014051565b6314b4e26e6000511415612e245760043560a01c15612bfb57600080fd5b6013600d60c052602060c020015415612c1357600080fd5b600e5415612c2057600080fd5b6007543314612c2e57600080fd5b600060043518612c3d57600080fd5b6001600c60043560e05260c052604060c02060c052602060c020015415612c6357600080fd5b60206101a0600463fbfa77cf6101405261015c6004355afa612c8457600080fd5b601f3d11612c9157600080fd5b6000506101a0513014612ca357600080fd5b60206101a06004631f1fcd516101405261015c6004355afa612cc457600080fd5b601f3d11612cd157600080fd5b6000506101a05160065414612ce557600080fd5b612710601054602435818183011015612cfd57600080fd5b808201905090501115612d0f57600080fd5b6064356044351115612d2057600080fd5b61271060185480821015612d3357600080fd5b808203905090506084351115612d4857600080fd5b600c60043560e05260c052604060c02060c052602060c0206084358155426001820155602435600282015560443560038201556064356004820155426005820155600060068201556000600782015560006008820155506024356101405260443561016052606435610180526084356101a0526004357f5a6abd2af9fe6c0554fa08649e2d86e4393ff19dc304d072d38d295c9291d4dc6080610140a260108054602435818183011015612dfb57600080fd5b808201905090508155506004356013600d60c052602060c020015560065801612af8565b600050005b637c6a4f246000511415612f845760043560a01c15612e4257600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415612e815760018352612e92565b5b8151600101808352811415612e65575b50505061014051612ea257600080fd5b60006001600c60043560e05260c052604060c02060c052602060c020015411612eca57600080fd5b601080546002600c60043560e05260c052604060c02060c052602060c020015480821015612ef757600080fd5b808203905090508155506024356002600c60043560e05260c052604060c02060c052602060c020015560108054602435818183011015612f3657600080fd5b808201905090508155506127106010541115612f5157600080fd5b602435610140526004357fbda9398315c83ccef012bcaa318a2ff7b680f36429d36597bd4bc25ac11ead596020610140a2005b63e722befe60005114156130a65760043560a01c15612fa257600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415612fe15760018352612ff2565b5b8151600101808352811415612fc5575b5050506101405161300257600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161302a57600080fd5b6024356004600c60043560e05260c052604060c02060c052602060c0200154101561305457600080fd5b6024356003600c60043560e05260c052604060c02060c052602060c0200155602435610140526004357f0b728ad785976532c4aaadde09b1cba5f262a7090e83c62d2377bc405678b29c6020610140a2005b634757a15660005114156131c85760043560a01c156130c457600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b6101205160200261016001513314156131035760018352613114565b5b81516001018083528114156130e7575b5050506101405161312457600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161314c57600080fd5b6024356003600c60043560e05260c052604060c02060c052602060c0200154111561317657600080fd5b6024356004600c60043560e05260c052604060c02060c052602060c0200155602435610140526004357f1796a8e0760e2de5b72e7bf64fccb7666c48ceab94cb6cae7cb7eff4b6f641ab6020610140a2005b63d0194ed660005114156132935760043560a01c156131e657600080fd5b60075433146131f457600080fd5b6127106018548082101561320757600080fd5b80820390509050602435111561321c57600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161324457600080fd5b602435600c60043560e05260c052604060c02060c052602060c02055602435610140526004357fe57488a65fa53066d4c25bac90db47dda4e5de3025ac12bf76ff07211cf7f39e6020610140a2005b60001561332a575b6101605261014052601080546002600c6101405160e05260c052604060c02060c052602060c0200154808210156132d157600080fd5b8082039050905081555060006002600c6101405160e05260c052604060c02060c052602060c0200155610140517f4201c688d84c01154d321afa0c72f1bffe9eef53005c9de9d035074e71e9b32a60006000a261016051565b636cb56d1960005114156136455760043560a01c1561334857600080fd5b60243560a01c1561335857600080fd5b600754331461336657600080fd5b60006024351861337557600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161339d57600080fd5b6001600c60243560e05260c052604060c02060c052602060c0200154156133c357600080fd5b610140600c60043560e05260c052604060c0208060c052602060c02054825260018160c052602060c0200154826020015260028160c052602060c0200154826040015260038160c052602060c0200154826060015260048160c052602060c0200154826080015260058160c052602060c02001548260a0015260068160c052602060c02001548260c0015260078160c052602060c02001548260e0015260088160c052602060c020015482610100015250506101405161016051610180516101a0516101c0516101e05161020051610220516102405160043561026052610260516006580161329b565b6102405261022052610200526101e0526101c0526101a05261018052610160526101405260005060108054610180518181830110156134eb57600080fd5b8082019050905081555060006006600c60043560e05260c052604060c02060c052602060c0200155600c60243560e05260c052604060c02060c052602060c0206101405181556101e05160018201556101805160028201556101a05160038201556101c05160048201556101e05160058201556102005160068201556000600782015560006008820155506004353b61358357600080fd5b60006000602463ce5494bb610260526024356102805261027c60006004355af16135ac57600080fd5b6024356004357f100b69bb6b504e1252e36b375233158edee64d071b399e2f81473a695fd1b02160006000a361026060006014818352015b60043561026051601481106135f857600080fd5b600d60c052602060c0200154141561363057602435610260516014811061361e57600080fd5b600d60c052602060c020015560006000f35b5b81516001018083528114156135e4575b5050005b63a0e4af9a600051141561365d573361014052613693565b63bb994d48600051141561368b5760043560a01c1561367b57600080fd5b6020600461014037600050613693565b60001561371d575b61014051610180526007546101a0526009546101c05260006101605261016061012060006003818352015b6101205160200261018001513314156136da57600183526136eb565b5b81516001018083528114156136be575b505050610160516136fb57600080fd5b610140516101405161016052610160516006580161329b565b61014052600050005b63f76e4caa60005114156138755760043560a01c1561373b57600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b61012051602002610160015133141561377a576001835261378b565b5b815160010180835281141561375e575b5050506101405161379b57600080fd5b60006001600c60043560e05260c052604060c02060c052602060c0200154116137c357600080fd5b6013600d60c052602060c0200154156137db57600080fd5b61016060006014818352015b61016051600d60c052602060c02001546101405260043515156138095761382b565b600435610140511861381a57600080fd5b5b81516001018083528114156137e7575b50506004356013600d60c052602060c020015560065801612af8565b6000506004357fa8727d412c6fa1e2497d6d6f275e2d9fe4d9318d5b793632e60ad9d38ee8f1fa60006000a2005b63b22439f560005114156139a15760043560a01c1561389357600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b6101205160200261016001513314156138d257600183526138e3565b5b81516001018083528114156138b6575b505050610140516138f357600080fd5b61014060006014818352015b600435610140516014811061391357600080fd5b600d60c052602060c02001541415613987576000610140516014811061393857600080fd5b600d60c052602060c02001556101405160065801612af8565b610140526000506004357f8e1ec3c16d6a67ea8effe2ac7adef9c2de0bc0dc47c49cdf18f6a8b0048085be60006000a260006000f35b5b81516001018083528114156138ff575b505060006000fd005b600015613aac575b61016052610140526002600c6101405160e05260c052604060c02060c052602060c020015461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a0518082028215828483041417613a0b57600080fd5b8090509050905061271080820490509050610180526006600c6101405160e05260c052604060c02060c052602060c02001546101a052600e5415613a5e576101a051600052600051610160515650613aaa565b610180516101a051111515613a80576000600052600051610160515650613aa9565b6101a0516101805180821015613a9557600080fd5b808203905090506000526000516101605156505b5b005b63bf3759b56000511415613ac4573361014052613afa565b63bdcf36bb6000511415613af25760043560a01c15613ae257600080fd5b6020600461014037600050613afa565b600015613b2a575b61014051610140516101605261016051600658016139a9565b6101c052610140526101c05160005260206000f350005b600015613d92575b6101605261014052600e5415613b515760006000526000516101605156505b61014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05161018052601054610180518082028215828483041417613b9957600080fd5b80905090509050612710808204905090506101a0526011546101c0526002600c6101405160e05260c052604060c02060c052602060c0200154610180518082028215828483041417613bea57600080fd5b80905090509050612710808204905090506101e0526006600c6101405160e05260c052604060c02060c052602060c0200154610200526003600c6101405160e05260c052604060c02060c052602060c0200154610220526004600c6101405160e05260c052604060c02060c052602060c020015461024052610200516101e051111515613c78576001613c83565b6101c0516101a05111155b5b15613c985760006000526000516101605156505b6101e0516102005180821015613cad57600080fd5b8082039050905061026052610260516101a0516101c05180821015613cd157600080fd5b8082039050905080821115613ce65780613ce8565b815b905090506102605261026051602061030060246370a0823161028052306102a05261029c6006545afa613d1a57600080fd5b601f3d11613d2757600080fd5b6000506103005180821115613d3c5780613d3e565b815b905090506102605261022051610260511015613d67576000600052600051610160515650613d90565b610260516102405180821115613d7d5780613d7f565b815b905090506000526000516101605156505b005b63112c1f9b6000511415613daa573361014052613de0565b63d76480136000511415613dd85760043560a01c15613dc857600080fd5b6020600461014037600050613de0565b600015613e10575b6101405161014051610160526101605160065801613b32565b6101c052610140526101c05160005260206000f350005b600015613f6e575b61016052610140526005600c6101405160e05260c052604060c02060c052602060c020015461018052426101805180821015613e5357600080fd5b808203905090506101a052610180516001600c6101405160e05260c052604060c02060c052602060c020015480821015613e8c57600080fd5b808203905090506101c05260006101a0511115613ef25760006101c0511115613eea5760206102c060046322f3e2d46102605261027c610140515afa613ed157600080fd5b601f3d11613ede57600080fd5b6000506102c051613eed565b60005b613ef5565b60005b5b15613f5d576007600c6101405160e05260c052604060c02060c052602060c02001546101a0518082028215828483041417613f3057600080fd5b809050905090506101c0518080613f4657600080fd5b820490509050600052600051610160515650613f6c565b60006000526000516101605156505b005b63153c27c46000511415613fe25760065801611b3a565b6101405261014051600f541115613fd457600f546101405160065801611b3a565b61016052610140526101605180821015613fbf57600080fd5b8082039050905060005260206000f350613fe0565b600060005260206000f3505b005b63d3406abd6000511415613ffa573361014052614030565b6333586b6760005114156140285760043560a01c1561401857600080fd5b6020600461014037600050614030565b600015614060575b6101405161014051610160526101605160065801613e18565b6101c052610140526101c05160005260206000f350005b60001561424a575b6101805261014052610160526006600c6101405160e05260c052604060c02060c052602060c02001546101a052610160516101a05110156140a857600080fd5b6008600c6101405160e05260c052604060c02060c052602060c020018054610160518181830110156140d957600080fd5b808201905090508155506101a05161016051808210156140f857600080fd5b808203905090506006600c6101405160e05260c052604060c02060c052602060c020015560118054610160518082101561413157600080fd5b808203905090508155506002600c6101405160e05260c052604060c02060c052602060c02001546101c05261016051612710808202821582848304141761417757600080fd5b809050905090506101405161016051610180516101a0516101c0516101e05160065801611b3a565b610200526101e0526101c0526101a0526101805261016052610140526102005180806141ca57600080fd5b8204905090506101c051808211156141e257806141e4565b815b905090506101e0526002600c6101405160e05260c052604060c02060c052602060c0200180546101e0518082101561421b57600080fd5b80820390509050815550601080546101e0518082101561423a57600080fd5b8082039050905081555061018051565b600015614544575b610180526101405261016052601154426012548082101561427257600080fd5b80820390509050808202821582848304141761428d57600080fd5b8090509050905060175480820282158284830414176142ab57600080fd5b80905090509050612710808204905090506301e187e0808204905090506101a05260006101c05260006101605111156143705761016051600c6101405160e05260c052604060c02060c052602060c02054808202821582848304141761431057600080fd5b80905090509050612710808204905090506101c0526101a0805161016051601854808202821582848304141761434557600080fd5b809050905090506127108082049050905081818301101561436557600080fd5b808201905090508152505b6101a0516101c05181818301101561438757600080fd5b808201905090506101e05260006101e051111561453e576101405161016051610180516101a0516101c0516101e0516102005130610220526101e05161024052610240516102205160065801611bd1565b6102a052610200526101e0526101c0526101a0526101805261016052610140526102a0516102005260006101c05111156144b6576101c05161020051808202821582848304141761442857600080fd5b809050905090506101e051808061443e57600080fd5b820490509050610220526101405161016051610180516101a0516101c0516101e0516102005161022051306102405261014051610260526102205161028052610280516102605161024051600658016112b8565b61022052610200526101e0526101c0526101a0526101805261016052610140526000505b600060033060e05260c052604060c02054111561453d576101405161016051610180516101a0516101c0516101e0516102005130610220526016546102405260033060e05260c052604060c0205461026052610260516102405161022051600658016112b8565b610200526101e0526101c0526101a0526101805261016052610140526000505b5b61018051565b63a1d9bafc6000511415614a3a5760006001600c3360e05260c052604060c02060c052602060c02001541161457857600080fd5b60043560443581818301101561458d57600080fd5b8082019050905060206101c060246370a0823161014052336101605261015c6006545afa6145ba57600080fd5b601f3d116145c757600080fd5b6000506101c05110156145d957600080fd5b6000602435111561460557336101405260243561016052610160516101405160065801614068565b6000505b336101405260043561016052610160516101405160065801614252565b6000506007600c3360e05260c052604060c02060c052602060c02001805460043581818301101561465257600080fd5b8082019050905081555061014051336101605261016051600658016139a9565b6101c052610140526101c0516101405260443561014051808211156146975780614699565b815b90509050610160526000610160511115614723576006600c3360e05260c052604060c02060c052602060c02001805461016051808210156146d957600080fd5b808203905090508155506011805461016051808210156146f857600080fd5b808203905090508155506101408051610160518082101561471857600080fd5b808203905090508152505b610140516101605161018051336101a0526101a05160065801613b32565b61020052610180526101605261014052610200516101805260006101805111156147bf576006600c3360e05260c052604060c02060c052602060c0200180546101805181818301101561479357600080fd5b8082019050905081555060118054610180518181830110156147b457600080fd5b808201905090508155505b600435610160518181830110156147d557600080fd5b808201905090506101a052610180516101a0511015614857576101405161016051610180516101a0516006546101c052336101e052610180516101a0518082101561481f57600080fd5b8082039050905061020052610200516101e0516101c05160065801610f5b565b6101a0526101805261016052610140526000506148d4565b610180516101a05111156148d3576101405161016051610180516101a0516006546101c052336101e05230610200526101a051610180518082101561489b57600080fd5b808203905090506102205261022051610200516101e0516101c051600658016110fe565b6101a0526101805261016052610140526000505b5b426005600c3360e05260c052604060c02060c052602060c0200155426012556004356014556004356101c0526024356101e05261016051610200526007600c3360e05260c052604060c02060c052602060c0200154610220526008600c3360e05260c052604060c02060c052602060c0200154610240526006600c3360e05260c052604060c02060c052602060c02001546102605261018051610280526002600c3360e05260c052604060c02060c052602060c02001546102a052337f67f96d2854a335a4cadb49f84fd3ca6f990744ddb3feceeb4b349d2d53d32ad36101006101c0a26002600c3360e05260c052604060c02060c052602060c020015415156149df5760016149e3565b600e545b5b15614a2a576020610220600463efbb5cb06101c0526101dc335afa614a0857600080fd5b601f3d11614a1557600080fd5b6000506102205160005260206000f350614a38565b6101405160005260206000f3505b005b6301681a626000511415614a72577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014052614a98565b636ea056a96000511415614a90576020602461014037600050614a98565b600015614b78575b60043560a01c15614aa857600080fd5b6007543314614ab657600080fd5b60065460043518614ac657600080fd5b61014051610160527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610160511415614b3857602061020060246370a0823161018052306101a05261019c6004355afa614b1f57600080fd5b601f3d11614b2c57600080fd5b60005061020051610160525b6101405161016051600435610180526007546101a052610160516101c0526101c0516101a0516101805160065801610f5b565b6101605261014052600050005b6306fdde036000511415614c215760008060c052602060c020610180602082540161012060006003818352015b82610120516020021115614bb857614bda565b61012051850154610120516020028501525b8151600101808352811415614ba5575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b416000511415614cca5760018060c052602060c020610180602082540161012060006002818352015b82610120516020021115614c6157614c83565b61012051850154610120516020028501525b8151600101808352811415614c4e575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce5676000511415614ce65760025460005260206000f350005b6370a082316000511415614d205760043560a01c15614d0457600080fd5b600360043560e05260c052604060c0205460005260206000f350005b63dd62ed3e6000511415614d785760043560a01c15614d3e57600080fd5b60243560a01c15614d4e57600080fd5b600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b6318160ddd6000511415614d945760055460005260206000f350005b63fc0c546a6000511415614db05760065460005260206000f350005b635aa6e6756000511415614dcc5760075460005260206000f350005b6388a8d6026000511415614de85760085460005260206000f350005b63452a93206000511415614e045760095460005260206000f350005b6346d558756000511415614e2057600b5460005260206000f350005b6339ebf8236000511415614f3f5760043560a01c15614e3e57600080fd5b600c60043560e05260c052604060c0206101408080808460c052602060c0205481525050602081019050808060018560c052602060c020015481525050602081019050808060028560c052602060c020015481525050602081019050808060038560c052602060c020015481525050602081019050808060048560c052602060c020015481525050602081019050808060058560c052602060c020015481525050602081019050808060068560c052602060c020015481525050602081019050808060078560c052602060c020015481525050602081019050808060088560c052602060c0200154815250506101209050905060c05260c051610140f39050005b63c822adda6000511415614f745760043560148110614f5d57600080fd5b600d60c052602060c020015460005260206000f350005b633403c2fc6000511415614f9057600e5460005260206000f350005b63ecf708586000511415614fac57600f5460005260206000f350005b63cea55f576000511415614fc85760105460005260206000f350005b63fc7b9c186000511415614fe45760115460005260206000f350005b63c3535b5260005114156150005760125460005260206000f350005b633629c8de600051141561501c5760135460005260206000f350005b6344b8139660005114156150385760145460005260206000f350005b632140254d60005114156150545760155460005260206000f350005b639ec5a89460005114156150705760165460005260206000f350005b63a6f7f5d6600051141561508c5760175460005260206000f350005b638778878260005114156150a85760185460005260206000f350005b637ecebe0060005114156150e25760043560a01c156150c657600080fd5b601960043560e05260c052604060c0205460005260206000f350005b633644e51560005114156150fe57601a5460005260206000f350005b5b60006000fd5b61000461510903610004600039610004615109036000f3

Deployed Bytecode

0x341561000a57600080fd5b6004361015610018576150ff565b600035601c526383b43589600051141561003657336102205261006c565b63a5b81fdf60005114156100645760a43560a01c1561005457600080fd5b602060a46102203760005061006c565b6000156106af575b60043560a01c1561007c57600080fd5b60243560a01c1561008c57600080fd5b60443560a01c1561009c57600080fd5b60606064356004016101403760406064356004013511156100bc57600080fd5b60406084356004016101c03760206084356004013511156100dc57600080fd5b601354156100e957600080fd5b6004356006556000610280526102808051602082012090506101408051602082012090501415610230576000606061032060046395d89b416102c0526102dc6004355afa61013657600080fd5b603f3d1161014357600080fd5b60156103206103205101511061015857600080fd5b6000506103406014806020846103e001018260208501600060045af15050805182019150506007610380527f20795661756c74000000000000000000000000000000000000000000000000006103a0526103806007806020846103e001018260208501600060045af1505080518201915050806103e0526103e0905080600060c052602060c020602082510161012060006002818352015b8261012051602002111561020357610225565b61012051602002850151610120518501555b81516001018083528114156101f0575b50505050505061028b565b61014080600060c052602060c020602082510161012060006003818352015b8261012051602002111561026257610284565b61012051602002850151610120518501555b815160010180835281141561024f575b5050505050505b6000610280526102808051602082012090506101c080516020820120905014156103cc57600060026102c0527f79760000000000000000000000000000000000000000000000000000000000006102e0526102c06002806020846103e001018260208501600060045af1505080518201915050606061038060046395d89b416103205261033c6004355afa61031f57600080fd5b603f3d1161032c57600080fd5b60156103806103805101511061034157600080fd5b6000506103a06014806020846103e001018260208501600060045af1505080518201915050806103e0526103e0905080600160c052602060c020602082510161012060006002818352015b8261012051602002111561039f576103c1565b61012051602002850151610120518501555b815160010180835281141561038c575b505050505050610427565b6101c080600160c052602060c020602082510161012060006002818352015b826101205160200211156103fe57610420565b61012051602002850151610120518501555b81516001018083528114156103eb575b5050505050505b60206102a0600463313ce5676102405261025c6004355afa61044857600080fd5b601f3d1161045557600080fd5b6000506102a051600255602435600755602435610240527f8d55d160c0009eb3d739442df0a3ca089ed64378bfac017e7ddad463f9815b876020610240a1602435600855602435610240527fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef4386020610240a1604435601655604435610240527fdf3c41a916aecbf42361a147f8348c242662c3ce20ecef30e826b80642477a3d6020610240a16102205160095561022051610240527f837b9ad138a0a1839a9637afce5306a5c13e23eb63365686843a5319a243609c6020610240a16103e86018556103e86102405261024051610260527f0810a1c261ca2c0cd86a0152c51c43ba9dc329639d2349f98140891b2ea798eb6020610260a160c860175560c86102405261024051610260527f7a7883b0074f96e2c7fab65eb25abf624c488761a5db889e3bb84855dcc6daaf6020610260a142601255426013556529d635a8e00060155560007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f602082610620010152602081019050600b610500527f596561726e205661756c740000000000000000000000000000000000000000006105205261050080516020820120905060208261062001015260208101905060056105c0527f302e332e320000000000000000000000000000000000000000000000000000006105e0526105c0805160208201209050602082610620010152602081019050466020826106200101526020810190503060208261062001015260208101905080610620526106209050805160208201209050601a55005b63258294106000511415610748576005610140527f302e332e32000000000000000000000000000000000000000000000000000000610160526101408051602001806101e08284600060045af161070557600080fd5b50506101e0518061020001818260206001820306601f820103905003368237505060206101c05260406101e0510160206001820306601f82010390506101c0f350005b63c47f002760005114156107e057604a60043560040161014037602a60043560040135111561077657600080fd5b600754331461078457600080fd5b61014080600060c052602060c020602082510161012060006003818352015b826101205160200211156107b6576107d8565b61012051602002850151610120518501555b81516001018083528114156107a3575b505050505050005b63b84c8246600051141561087857603460043560040161014037601460043560040135111561080e57600080fd5b600754331461081c57600080fd5b61014080600160c052602060c020602082510161012060006002818352015b8261012051602002111561084e57610870565b61012051602002850151610120518501555b815160010180835281141561083b575b505050505050005b63ab033ea960005114156108ac5760043560a01c1561089657600080fd5b60075433146108a457600080fd5b600435600a55005b63238efcbc60005114156108fa57600a5433146108c857600080fd5b3360075533610140527f8d55d160c0009eb3d739442df0a3ca089ed64378bfac017e7ddad463f9815b876020610140a1005b63d4a22bde600051141561095c5760043560a01c1561091857600080fd5b600754331461092657600080fd5b600435600855600435610140527fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef4386020610140a1005b630b5b78eb60005114156109be5760043560a01c1561097a57600080fd5b600754331461098857600080fd5b600435600b55600435610140527f6d674c311329fb38bbc96dc33d2aad03b9bf9fcfdd8f5e5054fda291a5b3c1f86020610140a1005b63ec38a8626000511415610a205760043560a01c156109dc57600080fd5b60075433146109ea57600080fd5b600435601655600435610140527fdf3c41a916aecbf42361a147f8348c242662c3ce20ecef30e826b80642477a3d6020610140a1005b638402a84f6000511415610a6f576007543314610a3c57600080fd5b6000600435101515610a5b57670de0b6b3a76400006004351115610a5e565b60005b610a6757600080fd5b600435601555005b63bdc8144b6000511415610ac1576007543314610a8b57600080fd5b600435600f55600435610140527fae565aab888bca5e19e25a13db7b0c9144305bf55cb0f3f4d724f730e5acdd626020610140a1005b6370897b236000511415610b24576007543314610add57600080fd5b6127106004351115610aee57600080fd5b600435601855600435610140527f0810a1c261ca2c0cd86a0152c51c43ba9dc329639d2349f98140891b2ea798eb6020610140a1005b63fe56e2326000511415610b87576007543314610b4057600080fd5b6127106004351115610b5157600080fd5b600435601755600435610140527f7a7883b0074f96e2c7fab65eb25abf624c488761a5db889e3bb84855dcc6daaf6020610140a1005b638a0dac4a6000511415610c3b5760043560a01c15610ba557600080fd5b600954610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610be45760018352610bf5565b5b8151600101808352811415610bc8575b50505061014051610c0557600080fd5b600435600955600435610140527f837b9ad138a0a1839a9637afce5306a5c13e23eb63365686843a5319a243609c6020610140a1005b6314c644026000511415610d0b5760043560011c15610c5957600080fd5b60043515610cc657600954610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610ca05760018352610cb1565b5b8151600101808352811415610c84575b50505061014051610cc157600080fd5b610cd5565b6007543314610cd457600080fd5b5b600435600e55600435610140527fba40372a3a724dca3c57156128ef1e896724b65b37a17f190b1ad5de68f3a4f36020610140a1005b63941484156000511415610f53576000610120525b610120516004013560a01c15610d3557600080fd5b6020610120510161012052610280610120511015610d5257610d20565b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415610d915760018352610da2565b5b8151600101808352811415610d75575b50505061014051610db257600080fd5b61014060006014818352015b60046101405160148110610dd157600080fd5b60200201351515610dff576101405160148110610ded57600080fd5b600d60c052602060c020015415610e02565b60005b15610e0c57610e8f565b60006001600c60046101405160148110610e2557600080fd5b602002013560e05260c052604060c02060c052602060c020015411610e4957600080fd5b60046101405160148110610e5c57600080fd5b60200201356101405160148110610e7257600080fd5b600d60c052602060c02001555b8151600101808352811415610dbe575b50506004356101405260243561016052604435610180526064356101a0526084356101c05260a4356101e05260c4356102005260e43561022052610104356102405261012435610260526101443561028052610164356102a052610184356102c0526101a4356102e0526101c435610300526101e43561032052610204356103405261022435610360526102443561038052610264356103a0527f695ac3ac73f08f2002284ffe563cefe798ee2878a5e04219522e2e99eb89d168610280610140a1005b6000156110f6575b6101a05261014052610160526101805260006004610220527fa9059cbb000000000000000000000000000000000000000000000000000000006102405261022060048060208461028001018260208501600060045af15050805182019150506101605160208261028001015260208101905061018051602082610280010152602081019050806102805261028090508051602001806103208284600060045af161100457600080fd5b505060206103e0610320516103406000610140515af161102357600080fd5b60203d808211156110345780611036565b815b905090506103c0526103c08051602001806101c08284600060045af161105b57600080fd5b505060006101c05111156110f0576101c080602001516000825180602090131561108457600080fd5b809190121561109257600080fd5b806020036101000a8204905090509050151515156110ef576308c379a0610220526020610240526010610260527f5472616e73666572206661696c656421000000000000000000000000000000006102805261026050606461023cfd5b5b6101a051565b6000156112b0575b6101c0526101405261016052610180526101a05260006004610240527f23b872dd00000000000000000000000000000000000000000000000000000000610260526102406004806020846102a001018260208501600060045af1505080518201915050610160516020826102a0010152602081019050610180516020826102a00101526020810190506101a0516020826102a0010152602081019050806102a0526102a090508051602001806103608284600060045af16111be57600080fd5b50506020610440610360516103806000610140515af16111dd57600080fd5b60203d808211156111ee57806111f0565b815b90509050610420526104208051602001806101e08284600060045af161121557600080fd5b505060006101e05111156112aa576101e080602001516000825180602090131561123e57600080fd5b809190121561124c57600080fd5b806020036101000a8204905090509050151515156112a9576308c379a0610240526020610260526010610280527f5472616e73666572206661696c656421000000000000000000000000000000006102a05261028050606461025cfd5b5b6101c051565b6000156113c4575b6101a052610140526101605261018052306101e05260006102005260006101c0526101c061012060006002818352015b610120516020026101e001516101605114156113075760018352611318565b5b81516001018083528114156112e8575b5050506101c0511561132957600080fd5b60036101405160e05260c052604060c0208054610180518082101561134d57600080fd5b8082039050905081555060036101605160e05260c052604060c02080546101805181818301101561137d57600080fd5b80820190509050815550610180516101c05261016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101c0a36101a051565b63a9059cbb600051141561141a5760043560a01c156113e257600080fd5b33610140526004356101605260243561018052610180516101605161014051600658016112b8565b600050600160005260206000f350005b6323b872dd60005114156115535760043560a01c1561143857600080fd5b60243560a01c1561144857600080fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460043560e05260c052604060c0203360e05260c052604060c02054101561151957600460043560e05260c052604060c0203360e05260c052604060c02054604435808210156114b957600080fd5b808203905090506101405261014051600460043560e05260c052604060c0203360e05260c052604060c020556101405161016052336004357f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610160a35b600435610140526024356101605260443561018052610180516101605161014051600658016112b8565b600050600160005260206000f350005b63095ea7b360005114156115d05760043560a01c1561157157600080fd5b60243560043360e05260c052604060c02060043560e05260c052604060c0205560243561014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b633950935160005114156116815760043560a01c156115ee57600080fd5b60043360e05260c052604060c02060043560e05260c052604060c020805460243581818301101561161e57600080fd5b8082019050905081555060043360e05260c052604060c02060043560e05260c052604060c0205461014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b63a457c2d760005114156117305760043560a01c1561169f57600080fd5b60043360e05260c052604060c02060043560e05260c052604060c0208054602435808210156116cd57600080fd5b8082039050905081555060043360e05260c052604060c02060043560e05260c052604060c0205461014052600435337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610140a3600160005260206000f350005b639fd5a6cf6000511415611b325760043560a01c1561174e57600080fd5b60243560a01c1561175e57600080fd5b606160843560040161014037604160843560040135111561177e57600080fd5b60006004351861178d57600080fd5b606435151561179d5760016117a4565b4260643510155b5b6117ae57600080fd5b601960043560e05260c052604060c020546101e05260006002610520527f19010000000000000000000000000000000000000000000000000000000000006105405261052060028060208461078001018260208501600060045af1505080518201915050601a5460208261078001015260208101905060007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96020826106800101526020810190506004356020826106800101526020810190506024356020826106800101526020810190506044356020826106800101526020810190506101e05160208261068001015260208101905060643560208261068001015260208101905080610680526106809050805160208201209050602082610780010152602081019050806107805261078090508051602082012090506102005260006020602082066103000161014051828401111561190857600080fd5b6041806103208260206020880688030161014001600060045af150508181528090509050905080602001516000825180602090131561194657600080fd5b809190121561195457600080fd5b806020036101000a82049050905090506102205260206020602082066103200161014051828401111561198657600080fd5b6041806103408260206020880688030161014001600060045af15050818152809050905090508060200151600082518060209013156119c457600080fd5b80919012156119d257600080fd5b806020036101000a820490509050905061024052604060016020820661034001610140518284011115611a0457600080fd5b6041806103608260206020880688030161014001600060045af1505081815280905090509050806020015160008251806020901315611a4257600080fd5b8091901215611a5057600080fd5b806020036101000a8204905090509050610260526004356102005161028052610260516102a052610220516102c052610240516102e052602060c0608061028060015afa5060c05114611aa257600080fd5b604435600460043560e05260c052604060c02060243560e05260c052604060c020556101e0516001818183011015611ad957600080fd5b80820190509050601960043560e05260c052604060c02055604435610280526024356004357f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020610280a3600160005260206000f350005b600015611b9f575b6101405260206101e060246370a0823161016052306101805261017c6006545afa611b6457600080fd5b601f3d11611b7157600080fd5b6000506101e051601154818183011015611b8a57600080fd5b80820190509050600052600051610140515650005b6301e1d1146000511415611bc95760065801611b3a565b610140526101405160005260206000f350005b600015611d0d575b61018052610140526101605260006101a0526005546101c05260006101c0511115611c6c57610160516101c0518082028215828483041417611c1257600080fd5b809050905090506101405161016051610180516101a0516101c05160065801611b3a565b6101e0526101c0526101a0526101805261016052610140526101e0518080611c5d57600080fd5b8204905090506101a052611c75565b610160516101a0525b6101c0516101a051818183011015611c8c57600080fd5b8082019050905060055560036101405160e05260c052604060c02080546101a051818183011015611cbc57600080fd5b808201905090508155506101a0516101e0526101405160007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60206101e0a36101a051600052600051610180515650005b63d0e30db06000511415611d4a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610140523361016052611dab565b63b6b55f256000511415611d6d5733610160526020600461014037600050611dab565b636e553f656000511415611da357602060046101403760243560a01c15611d9357600080fd5b6020602461016037600050611dab565b600015612010575b62ffffff5415611dba57600080fd5b600162ffffff55600e5415611dce57600080fd5b61014051610180527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610180511415611e9857600f5461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05180821015611e3a57600080fd5b80820390509050602061024060246370a082316101c052336101e0526101dc6006545afa611e6757600080fd5b601f3d11611e7457600080fd5b6000506102405180821115611e895780611e8b565b815b9050905061018052611eea565b600f5461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05161018051818183011015611ed757600080fd5b808201905090501115611ee957600080fd5b5b60006101805111611efa57600080fd5b6000600b541815611f515760206102406044635ed7660e6101a052336101c052610180516101e0526101bc600b545afa611f3357600080fd5b601f3d11611f4057600080fd5b60005061024051611f5057600080fd5b5b6101405161016051610180516101a051610160516101c052610180516101e0526101e0516101c05160065801611bd1565b610240526101a052610180526101605261014052610240516101a0526101405161016051610180516101a0516006546101c052336101e0523061020052610180516102205261022051610200516101e0516101c051600658016110fe565b6101a0526101805261016052610140526000506101a051600052600062ffffff5560206000f350600062ffffff55005b600015612175575b6101605261014052426012548082101561203157600080fd5b80820390509050601554808202821582848304141761204f57600080fd5b80905090509050610180526101405161016051610180516101a05160065801611b3a565b6101c0526101a0526101805261016052610140526101c0516101a052670de0b6b3a7640000610180511015612108576101a080516014546101805160145480820282158284830414176120c557600080fd5b80905090509050670de0b6b3a764000080820490509050808210156120e957600080fd5b80820390509050808210156120fd57600080fd5b808203905090508152505b6103e8610140516101a051808202821582848304141761212757600080fd5b80905090509050808202821582848304141761214257600080fd5b80905090509050600554808061215757600080fd5b8204905090506103e880820490509050600052600051610160515650005b600015612254575b61016052610140526000610140516101605160065801611b3a565b610180526101605261014052610180511115612243576103e86101405160055480820282158284830414176121cc57600080fd5b8090509050905080820282158284830414176121e757600080fd5b8090509050905061014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a051808061222257600080fd5b8204905090506103e880820490509050600052600051610160515650612252565b60006000526000516101605156505b005b6375de290260005114156123b65760206101e060246370a0823161016052306101805261017c6006545afa61228857600080fd5b601f3d1161229557600080fd5b6000506101e051610200526101405161016051610180516101a0516101c0516101e051610200516102005161022052610220516006580161217d565b61028052610200526101e0526101c0526101a052610180526101605261014052610280516101405261018060006014818352015b61018051600d60c052602060c020015461016052610160511515612328576123a5565b61014080516101405161016051610180516006600c6101605160e05260c052604060c02060c052602060c02001546101a0526101a0516006580161217d565b610200526101805261016052610140526102005181818301101561238a57600080fd5b808201905090508152505b8151600101808352811415612305575b50506101405160005260206000f350005b633ccfd60b60005114156123f9577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101405233610160526001610180526124a3565b632e1a7d4d600051141561242257336101605260016101805260206004610140376000506124a3565b62f714ce600051141561245d57600161018052602060046101403760243560a01c1561244d57600080fd5b60206024610160376000506124a3565b63e63697c8600051141561249b57602060046101403760243560a01c1561248357600080fd5b602060246101603760206044610180376000506124a3565b600015612a7c575b62ffffff54156124b257600080fd5b600162ffffff55610140516101a0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101a05114156125005760033360e05260c052604060c020546101a0525b60033360e05260c052604060c020546101a051111561251e57600080fd5b6101405161016051610180516101a0516101c0516101a0516101e0526101e05160065801612018565b610240526101c0526101a052610180526101605261014052610240516101c05260006101e052602061028060246370a0823161020052306102205261021c6006545afa61259357600080fd5b601f3d116125a057600080fd5b600050610280516101c051111561285e576102c060006014818352015b6102c051600d60c052602060c02001546102a0526102a05115156125e05761285b565b602061038060246370a0823161030052306103205261031c6006545afa61260657600080fd5b601f3d1161261357600080fd5b600050610380516102e0526102e0516101c0511115156126325761285b565b6101c0516102e0518082101561264757600080fd5b8082039050905061030052610300516006600c6102a05160e05260c052604060c02060c052602060c0200154808211156126815780612683565b815b905090506103005261030051151561269a5761284b565b60206103c06024632e1a7d4d61034052610300516103605261035c60006102a0515af16126c657600080fd5b601f3d116126d357600080fd5b6000506103c0516103205260206103e060246370a0823161036052306103805261037c6006545afa61270457600080fd5b601f3d1161271157600080fd5b6000506103e0516102e0518082101561272957600080fd5b808203905090506103405260006103205111156127be576101c08051610320518082101561275657600080fd5b808203905090508152506101e080516103205181818301101561277857600080fd5b808201905090508152506008600c6102a05160e05260c052604060c02060c052602060c020018054610320518181830110156127b357600080fd5b808201905090508155505b6006600c6102a05160e05260c052604060c02060c052602060c02001805461034051610320518181830110156127f357600080fd5b808201905090508082101561280757600080fd5b8082039050905081555060118054610340516103205181818301101561282c57600080fd5b808201905090508082101561284057600080fd5b808203905090508155505b81516001018083528114156125bd575b50505b60206102a060246370a0823161022052306102405261023c6006545afa61288457600080fd5b601f3d1161289157600080fd5b6000506102a05161020052610200516101c051111561292657610200516101c0526101405161016051610180516101a0516101c0516101e051610200516101c0516101e0518181830110156128e557600080fd5b8082019050905061022052610220516006580161217d565b61028052610200526101e0526101c0526101a052610180526101605261014052610280516101a0525b610180516101c0516101e05181818301101561294157600080fd5b80820190509050808202821582848304141761295c57600080fd5b80905090509050612710808204905090506101e051111561297c57600080fd5b600580546101a0518082101561299157600080fd5b8082039050905081555060033360e05260c052604060c02080546101a051808210156129bc57600080fd5b808203905090508155506101a051610220526000337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6020610220a36101405161016051610180516101a0516101c0516101e051610200516006546102205261016051610240526101c0516102605261026051610240516102205160065801610f5b565b610200526101e0526101c0526101a0526101805261016052610140526000506101c051600052600062ffffff5560206000f350600062ffffff55005b6399530b066000511415612af0576005541515612ab657604e60025410612aa257600080fd5b600254600a0a60005260206000f350612aee565b604e60025410612ac557600080fd5b600254600a0a610140526101405160065801612018565b6101a0526101a05160005260206000f3505b005b600015612bdd575b6101405260006101605261018060006014818352015b6101805160148110612b1f57600080fd5b600d60c052602060c02001546101a0526101a0511515612b5e5761016080516001818183011015612b4f57600080fd5b80820190509050815250612bc4565b6000610160511115612bc3576101a051610180516101605180821015612b8357600080fd5b8082039050905060148110612b9757600080fd5b600d60c052602060c020015560006101805160148110612bb657600080fd5b600d60c052602060c02001555b5b5b8151600101808352811415612b0e575b505061014051565b6314b4e26e6000511415612e245760043560a01c15612bfb57600080fd5b6013600d60c052602060c020015415612c1357600080fd5b600e5415612c2057600080fd5b6007543314612c2e57600080fd5b600060043518612c3d57600080fd5b6001600c60043560e05260c052604060c02060c052602060c020015415612c6357600080fd5b60206101a0600463fbfa77cf6101405261015c6004355afa612c8457600080fd5b601f3d11612c9157600080fd5b6000506101a0513014612ca357600080fd5b60206101a06004631f1fcd516101405261015c6004355afa612cc457600080fd5b601f3d11612cd157600080fd5b6000506101a05160065414612ce557600080fd5b612710601054602435818183011015612cfd57600080fd5b808201905090501115612d0f57600080fd5b6064356044351115612d2057600080fd5b61271060185480821015612d3357600080fd5b808203905090506084351115612d4857600080fd5b600c60043560e05260c052604060c02060c052602060c0206084358155426001820155602435600282015560443560038201556064356004820155426005820155600060068201556000600782015560006008820155506024356101405260443561016052606435610180526084356101a0526004357f5a6abd2af9fe6c0554fa08649e2d86e4393ff19dc304d072d38d295c9291d4dc6080610140a260108054602435818183011015612dfb57600080fd5b808201905090508155506004356013600d60c052602060c020015560065801612af8565b600050005b637c6a4f246000511415612f845760043560a01c15612e4257600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415612e815760018352612e92565b5b8151600101808352811415612e65575b50505061014051612ea257600080fd5b60006001600c60043560e05260c052604060c02060c052602060c020015411612eca57600080fd5b601080546002600c60043560e05260c052604060c02060c052602060c020015480821015612ef757600080fd5b808203905090508155506024356002600c60043560e05260c052604060c02060c052602060c020015560108054602435818183011015612f3657600080fd5b808201905090508155506127106010541115612f5157600080fd5b602435610140526004357fbda9398315c83ccef012bcaa318a2ff7b680f36429d36597bd4bc25ac11ead596020610140a2005b63e722befe60005114156130a65760043560a01c15612fa257600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b610120516020026101600151331415612fe15760018352612ff2565b5b8151600101808352811415612fc5575b5050506101405161300257600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161302a57600080fd5b6024356004600c60043560e05260c052604060c02060c052602060c0200154101561305457600080fd5b6024356003600c60043560e05260c052604060c02060c052602060c0200155602435610140526004357f0b728ad785976532c4aaadde09b1cba5f262a7090e83c62d2377bc405678b29c6020610140a2005b634757a15660005114156131c85760043560a01c156130c457600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b6101205160200261016001513314156131035760018352613114565b5b81516001018083528114156130e7575b5050506101405161312457600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161314c57600080fd5b6024356003600c60043560e05260c052604060c02060c052602060c0200154111561317657600080fd5b6024356004600c60043560e05260c052604060c02060c052602060c0200155602435610140526004357f1796a8e0760e2de5b72e7bf64fccb7666c48ceab94cb6cae7cb7eff4b6f641ab6020610140a2005b63d0194ed660005114156132935760043560a01c156131e657600080fd5b60075433146131f457600080fd5b6127106018548082101561320757600080fd5b80820390509050602435111561321c57600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161324457600080fd5b602435600c60043560e05260c052604060c02060c052602060c02055602435610140526004357fe57488a65fa53066d4c25bac90db47dda4e5de3025ac12bf76ff07211cf7f39e6020610140a2005b60001561332a575b6101605261014052601080546002600c6101405160e05260c052604060c02060c052602060c0200154808210156132d157600080fd5b8082039050905081555060006002600c6101405160e05260c052604060c02060c052602060c0200155610140517f4201c688d84c01154d321afa0c72f1bffe9eef53005c9de9d035074e71e9b32a60006000a261016051565b636cb56d1960005114156136455760043560a01c1561334857600080fd5b60243560a01c1561335857600080fd5b600754331461336657600080fd5b60006024351861337557600080fd5b60006001600c60043560e05260c052604060c02060c052602060c02001541161339d57600080fd5b6001600c60243560e05260c052604060c02060c052602060c0200154156133c357600080fd5b610140600c60043560e05260c052604060c0208060c052602060c02054825260018160c052602060c0200154826020015260028160c052602060c0200154826040015260038160c052602060c0200154826060015260048160c052602060c0200154826080015260058160c052602060c02001548260a0015260068160c052602060c02001548260c0015260078160c052602060c02001548260e0015260088160c052602060c020015482610100015250506101405161016051610180516101a0516101c0516101e05161020051610220516102405160043561026052610260516006580161329b565b6102405261022052610200526101e0526101c0526101a05261018052610160526101405260005060108054610180518181830110156134eb57600080fd5b8082019050905081555060006006600c60043560e05260c052604060c02060c052602060c0200155600c60243560e05260c052604060c02060c052602060c0206101405181556101e05160018201556101805160028201556101a05160038201556101c05160048201556101e05160058201556102005160068201556000600782015560006008820155506004353b61358357600080fd5b60006000602463ce5494bb610260526024356102805261027c60006004355af16135ac57600080fd5b6024356004357f100b69bb6b504e1252e36b375233158edee64d071b399e2f81473a695fd1b02160006000a361026060006014818352015b60043561026051601481106135f857600080fd5b600d60c052602060c0200154141561363057602435610260516014811061361e57600080fd5b600d60c052602060c020015560006000f35b5b81516001018083528114156135e4575b5050005b63a0e4af9a600051141561365d573361014052613693565b63bb994d48600051141561368b5760043560a01c1561367b57600080fd5b6020600461014037600050613693565b60001561371d575b61014051610180526007546101a0526009546101c05260006101605261016061012060006003818352015b6101205160200261018001513314156136da57600183526136eb565b5b81516001018083528114156136be575b505050610160516136fb57600080fd5b610140516101405161016052610160516006580161329b565b61014052600050005b63f76e4caa60005114156138755760043560a01c1561373b57600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b61012051602002610160015133141561377a576001835261378b565b5b815160010180835281141561375e575b5050506101405161379b57600080fd5b60006001600c60043560e05260c052604060c02060c052602060c0200154116137c357600080fd5b6013600d60c052602060c0200154156137db57600080fd5b61016060006014818352015b61016051600d60c052602060c02001546101405260043515156138095761382b565b600435610140511861381a57600080fd5b5b81516001018083528114156137e7575b50506004356013600d60c052602060c020015560065801612af8565b6000506004357fa8727d412c6fa1e2497d6d6f275e2d9fe4d9318d5b793632e60ad9d38ee8f1fa60006000a2005b63b22439f560005114156139a15760043560a01c1561389357600080fd5b600854610160526007546101805260006101405261014061012060006002818352015b6101205160200261016001513314156138d257600183526138e3565b5b81516001018083528114156138b6575b505050610140516138f357600080fd5b61014060006014818352015b600435610140516014811061391357600080fd5b600d60c052602060c02001541415613987576000610140516014811061393857600080fd5b600d60c052602060c02001556101405160065801612af8565b610140526000506004357f8e1ec3c16d6a67ea8effe2ac7adef9c2de0bc0dc47c49cdf18f6a8b0048085be60006000a260006000f35b5b81516001018083528114156138ff575b505060006000fd005b600015613aac575b61016052610140526002600c6101405160e05260c052604060c02060c052602060c020015461014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a0518082028215828483041417613a0b57600080fd5b8090509050905061271080820490509050610180526006600c6101405160e05260c052604060c02060c052602060c02001546101a052600e5415613a5e576101a051600052600051610160515650613aaa565b610180516101a051111515613a80576000600052600051610160515650613aa9565b6101a0516101805180821015613a9557600080fd5b808203905090506000526000516101605156505b5b005b63bf3759b56000511415613ac4573361014052613afa565b63bdcf36bb6000511415613af25760043560a01c15613ae257600080fd5b6020600461014037600050613afa565b600015613b2a575b61014051610140516101605261016051600658016139a9565b6101c052610140526101c05160005260206000f350005b600015613d92575b6101605261014052600e5415613b515760006000526000516101605156505b61014051610160516101805160065801611b3a565b6101a0526101805261016052610140526101a05161018052601054610180518082028215828483041417613b9957600080fd5b80905090509050612710808204905090506101a0526011546101c0526002600c6101405160e05260c052604060c02060c052602060c0200154610180518082028215828483041417613bea57600080fd5b80905090509050612710808204905090506101e0526006600c6101405160e05260c052604060c02060c052602060c0200154610200526003600c6101405160e05260c052604060c02060c052602060c0200154610220526004600c6101405160e05260c052604060c02060c052602060c020015461024052610200516101e051111515613c78576001613c83565b6101c0516101a05111155b5b15613c985760006000526000516101605156505b6101e0516102005180821015613cad57600080fd5b8082039050905061026052610260516101a0516101c05180821015613cd157600080fd5b8082039050905080821115613ce65780613ce8565b815b905090506102605261026051602061030060246370a0823161028052306102a05261029c6006545afa613d1a57600080fd5b601f3d11613d2757600080fd5b6000506103005180821115613d3c5780613d3e565b815b905090506102605261022051610260511015613d67576000600052600051610160515650613d90565b610260516102405180821115613d7d5780613d7f565b815b905090506000526000516101605156505b005b63112c1f9b6000511415613daa573361014052613de0565b63d76480136000511415613dd85760043560a01c15613dc857600080fd5b6020600461014037600050613de0565b600015613e10575b6101405161014051610160526101605160065801613b32565b6101c052610140526101c05160005260206000f350005b600015613f6e575b61016052610140526005600c6101405160e05260c052604060c02060c052602060c020015461018052426101805180821015613e5357600080fd5b808203905090506101a052610180516001600c6101405160e05260c052604060c02060c052602060c020015480821015613e8c57600080fd5b808203905090506101c05260006101a0511115613ef25760006101c0511115613eea5760206102c060046322f3e2d46102605261027c610140515afa613ed157600080fd5b601f3d11613ede57600080fd5b6000506102c051613eed565b60005b613ef5565b60005b5b15613f5d576007600c6101405160e05260c052604060c02060c052602060c02001546101a0518082028215828483041417613f3057600080fd5b809050905090506101c0518080613f4657600080fd5b820490509050600052600051610160515650613f6c565b60006000526000516101605156505b005b63153c27c46000511415613fe25760065801611b3a565b6101405261014051600f541115613fd457600f546101405160065801611b3a565b61016052610140526101605180821015613fbf57600080fd5b8082039050905060005260206000f350613fe0565b600060005260206000f3505b005b63d3406abd6000511415613ffa573361014052614030565b6333586b6760005114156140285760043560a01c1561401857600080fd5b6020600461014037600050614030565b600015614060575b6101405161014051610160526101605160065801613e18565b6101c052610140526101c05160005260206000f350005b60001561424a575b6101805261014052610160526006600c6101405160e05260c052604060c02060c052602060c02001546101a052610160516101a05110156140a857600080fd5b6008600c6101405160e05260c052604060c02060c052602060c020018054610160518181830110156140d957600080fd5b808201905090508155506101a05161016051808210156140f857600080fd5b808203905090506006600c6101405160e05260c052604060c02060c052602060c020015560118054610160518082101561413157600080fd5b808203905090508155506002600c6101405160e05260c052604060c02060c052602060c02001546101c05261016051612710808202821582848304141761417757600080fd5b809050905090506101405161016051610180516101a0516101c0516101e05160065801611b3a565b610200526101e0526101c0526101a0526101805261016052610140526102005180806141ca57600080fd5b8204905090506101c051808211156141e257806141e4565b815b905090506101e0526002600c6101405160e05260c052604060c02060c052602060c0200180546101e0518082101561421b57600080fd5b80820390509050815550601080546101e0518082101561423a57600080fd5b8082039050905081555061018051565b600015614544575b610180526101405261016052601154426012548082101561427257600080fd5b80820390509050808202821582848304141761428d57600080fd5b8090509050905060175480820282158284830414176142ab57600080fd5b80905090509050612710808204905090506301e187e0808204905090506101a05260006101c05260006101605111156143705761016051600c6101405160e05260c052604060c02060c052602060c02054808202821582848304141761431057600080fd5b80905090509050612710808204905090506101c0526101a0805161016051601854808202821582848304141761434557600080fd5b809050905090506127108082049050905081818301101561436557600080fd5b808201905090508152505b6101a0516101c05181818301101561438757600080fd5b808201905090506101e05260006101e051111561453e576101405161016051610180516101a0516101c0516101e0516102005130610220526101e05161024052610240516102205160065801611bd1565b6102a052610200526101e0526101c0526101a0526101805261016052610140526102a0516102005260006101c05111156144b6576101c05161020051808202821582848304141761442857600080fd5b809050905090506101e051808061443e57600080fd5b820490509050610220526101405161016051610180516101a0516101c0516101e0516102005161022051306102405261014051610260526102205161028052610280516102605161024051600658016112b8565b61022052610200526101e0526101c0526101a0526101805261016052610140526000505b600060033060e05260c052604060c02054111561453d576101405161016051610180516101a0516101c0516101e0516102005130610220526016546102405260033060e05260c052604060c0205461026052610260516102405161022051600658016112b8565b610200526101e0526101c0526101a0526101805261016052610140526000505b5b61018051565b63a1d9bafc6000511415614a3a5760006001600c3360e05260c052604060c02060c052602060c02001541161457857600080fd5b60043560443581818301101561458d57600080fd5b8082019050905060206101c060246370a0823161014052336101605261015c6006545afa6145ba57600080fd5b601f3d116145c757600080fd5b6000506101c05110156145d957600080fd5b6000602435111561460557336101405260243561016052610160516101405160065801614068565b6000505b336101405260043561016052610160516101405160065801614252565b6000506007600c3360e05260c052604060c02060c052602060c02001805460043581818301101561465257600080fd5b8082019050905081555061014051336101605261016051600658016139a9565b6101c052610140526101c0516101405260443561014051808211156146975780614699565b815b90509050610160526000610160511115614723576006600c3360e05260c052604060c02060c052602060c02001805461016051808210156146d957600080fd5b808203905090508155506011805461016051808210156146f857600080fd5b808203905090508155506101408051610160518082101561471857600080fd5b808203905090508152505b610140516101605161018051336101a0526101a05160065801613b32565b61020052610180526101605261014052610200516101805260006101805111156147bf576006600c3360e05260c052604060c02060c052602060c0200180546101805181818301101561479357600080fd5b8082019050905081555060118054610180518181830110156147b457600080fd5b808201905090508155505b600435610160518181830110156147d557600080fd5b808201905090506101a052610180516101a0511015614857576101405161016051610180516101a0516006546101c052336101e052610180516101a0518082101561481f57600080fd5b8082039050905061020052610200516101e0516101c05160065801610f5b565b6101a0526101805261016052610140526000506148d4565b610180516101a05111156148d3576101405161016051610180516101a0516006546101c052336101e05230610200526101a051610180518082101561489b57600080fd5b808203905090506102205261022051610200516101e0516101c051600658016110fe565b6101a0526101805261016052610140526000505b5b426005600c3360e05260c052604060c02060c052602060c0200155426012556004356014556004356101c0526024356101e05261016051610200526007600c3360e05260c052604060c02060c052602060c0200154610220526008600c3360e05260c052604060c02060c052602060c0200154610240526006600c3360e05260c052604060c02060c052602060c02001546102605261018051610280526002600c3360e05260c052604060c02060c052602060c02001546102a052337f67f96d2854a335a4cadb49f84fd3ca6f990744ddb3feceeb4b349d2d53d32ad36101006101c0a26002600c3360e05260c052604060c02060c052602060c020015415156149df5760016149e3565b600e545b5b15614a2a576020610220600463efbb5cb06101c0526101dc335afa614a0857600080fd5b601f3d11614a1557600080fd5b6000506102205160005260206000f350614a38565b6101405160005260206000f3505b005b6301681a626000511415614a72577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61014052614a98565b636ea056a96000511415614a90576020602461014037600050614a98565b600015614b78575b60043560a01c15614aa857600080fd5b6007543314614ab657600080fd5b60065460043518614ac657600080fd5b61014051610160527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610160511415614b3857602061020060246370a0823161018052306101a05261019c6004355afa614b1f57600080fd5b601f3d11614b2c57600080fd5b60005061020051610160525b6101405161016051600435610180526007546101a052610160516101c0526101c0516101a0516101805160065801610f5b565b6101605261014052600050005b6306fdde036000511415614c215760008060c052602060c020610180602082540161012060006003818352015b82610120516020021115614bb857614bda565b61012051850154610120516020028501525b8151600101808352811415614ba5575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b6395d89b416000511415614cca5760018060c052602060c020610180602082540161012060006002818352015b82610120516020021115614c6157614c83565b61012051850154610120516020028501525b8151600101808352811415614c4e575b50505050505061018051806101a001818260206001820306601f82010390500336823750506020610160526040610180510160206001820306601f8201039050610160f350005b63313ce5676000511415614ce65760025460005260206000f350005b6370a082316000511415614d205760043560a01c15614d0457600080fd5b600360043560e05260c052604060c0205460005260206000f350005b63dd62ed3e6000511415614d785760043560a01c15614d3e57600080fd5b60243560a01c15614d4e57600080fd5b600460043560e05260c052604060c02060243560e05260c052604060c0205460005260206000f350005b6318160ddd6000511415614d945760055460005260206000f350005b63fc0c546a6000511415614db05760065460005260206000f350005b635aa6e6756000511415614dcc5760075460005260206000f350005b6388a8d6026000511415614de85760085460005260206000f350005b63452a93206000511415614e045760095460005260206000f350005b6346d558756000511415614e2057600b5460005260206000f350005b6339ebf8236000511415614f3f5760043560a01c15614e3e57600080fd5b600c60043560e05260c052604060c0206101408080808460c052602060c0205481525050602081019050808060018560c052602060c020015481525050602081019050808060028560c052602060c020015481525050602081019050808060038560c052602060c020015481525050602081019050808060048560c052602060c020015481525050602081019050808060058560c052602060c020015481525050602081019050808060068560c052602060c020015481525050602081019050808060078560c052602060c020015481525050602081019050808060088560c052602060c0200154815250506101209050905060c05260c051610140f39050005b63c822adda6000511415614f745760043560148110614f5d57600080fd5b600d60c052602060c020015460005260206000f350005b633403c2fc6000511415614f9057600e5460005260206000f350005b63ecf708586000511415614fac57600f5460005260206000f350005b63cea55f576000511415614fc85760105460005260206000f350005b63fc7b9c186000511415614fe45760115460005260206000f350005b63c3535b5260005114156150005760125460005260206000f350005b633629c8de600051141561501c5760135460005260206000f350005b6344b8139660005114156150385760145460005260206000f350005b632140254d60005114156150545760155460005260206000f350005b639ec5a89460005114156150705760165460005260206000f350005b63a6f7f5d6600051141561508c5760175460005260206000f350005b638778878260005114156150a85760185460005260206000f350005b637ecebe0060005114156150e25760043560a01c156150c657600080fd5b601960043560e05260c052604060c0205460005260206000f350005b633644e51560005114156150fe57601a5460005260206000f350005b5b60006000fd

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.