Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AdminControlledPoolInstructions

Instructions for interacting with the example admin-controlled pool.

Hierarchy

  • AdminControlledPoolInstructions

Index

Methods

Static addAsset

  • addAsset(pool: PoolInfo, vault: PublicKey): TransactionInstruction

Static approveDelegate

  • approveDelegate(pool: PoolInfo, vault: PublicKey, delegate: PublicKey, amount: BN): TransactionInstruction
  • Approves an account to spend tokens on behalf of the pool.

    Parameters

    • pool: PoolInfo
    • vault: PublicKey
    • delegate: PublicKey
    • amount: BN

    Returns TransactionInstruction

Static pause

  • pause(pool: PoolInfo): TransactionInstruction

Static removeAsset

  • removeAsset(pool: PoolInfo, vault: PublicKey): TransactionInstruction
  • Removes an asset from the pool.

    The pool must not currently own any tokens of the asset to be removed.

    Parameters

    Returns TransactionInstruction

Static unpause

  • unpause(pool: PoolInfo): TransactionInstruction
  • Resumes creations and redemptions for the pool.

    Pool assets must not have any outstanding delegates.

    Parameters

    Returns TransactionInstruction

Static updateAdmin

  • updateAdmin(pool: PoolInfo, newAdmin: PublicKey): TransactionInstruction

Static updateFee

  • updateFee(pool: PoolInfo, feeRate: number): TransactionInstruction

Generated using TypeDoc