Class MarketEntity

This class represents an ERC20 token

Hierarchy (view full)

Constructors

Properties

_contract: WrappedContract

The wrapped contract that the entity is holding.

Remarks

This should not be used directly. Instead, the getter contract should be used to have the correct type of the wrapped contract.

address: Address

the inner contract address

chainId: ChainId
multicall?: Multicall

The Multicall instance used by this entity.

networkConnection: NetworkConnection

The networkConnection of this entity.

readTokensCacheResult: undefined | Promise<{
    ptAddress: Address;
    syAddress: Address;
    ytAddress: Address;
}> = undefined

Accessors

Methods

  • Simulate the redeem rewards actions, and return only the amounts for each reward tokens.

    Parameters

    • userAddress: Address

      the receiver address.

    Returns Promise<BN[]>

    Remarks

    This function cannot be called with multicall because it is not a views function. Calling with multicall will mutate the contract's state.

Generated using TypeDoc