Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PoolToken

Index

Constructors

  • Returns PoolToken

Properties

_contract?: PoolToken
address: string
approve: (spender: string, amount: number | BigNumber) => Promise<ContractTransaction> = ...

Type declaration

    • (spender: string, amount: number | BigNumber): Promise<ContractTransaction>
    • Approve a spender to spend the signers accounts pool tokens

      Parameters

      • spender: string

        the address of the contract that will spend the pool tokens

      • amount: number | BigNumber

        the amount the signer is allowing the spender to spend

      Returns Promise<ContractTransaction>

      an ethers transaction

connect: (provider: Provider | Signer) => void = ...

Type declaration

    • (provider: Provider | Signer): void
    • Replaces the provider and connects the contract instance

      Parameters

      • provider: Provider | Signer

        The new provider to connect to

      Returns void

decimals: number
fetchAllowance: (spender: string, account: string) => Promise<BigNumber> = ...

Type declaration

    • (spender: string, account: string): Promise<BigNumber>
    • Fetch an accounts allowance for a given spender

      Parameters

      • spender: string

        Spender of the accounts tokens

      • account: string

        Account to check allowance

      Returns Promise<BigNumber>

      the allowance the account has given to the spender address to spend this pool token

fetchBalance: (account: string) => Promise<BigNumber> = ...

Type declaration

    • (account: string): Promise<BigNumber>
    • Fetch an accounts balance for this token

      Parameters

      • account: string

        Account to check balance of

      Returns Promise<BigNumber>

      The accounts balance formatted in a BigNumber

fetchSupply: () => Promise<BigNumber> = ...

Type declaration

    • (): Promise<BigNumber>
    • Fetch and set the total token supply

      Returns Promise<BigNumber>

      most up to date token supply

init: (tokenInfo: IPoolToken) => Promise<void> = ...

Type declaration

multicallProvider: undefined | Signer | MulticallProvider
name: string
pool: string
provider: undefined | Provider | Signer
side: SideEnum
supply: BigNumber
symbol: string
Create: (tokenInfo: IPoolToken) => Promise<PoolToken> = ...

Type declaration

    • Replacement constructor pattern to support async initialisations

      Parameters

      Returns Promise<PoolToken>

      a Promise containing an initialised PoolToken class ready to be used

CreateDefault: () => PoolToken = ...

Type declaration

    • Creates an empty PoolToken that can be used as a default

      Returns PoolToken

      default constructed pool token

Generated using TypeDoc