Documentation
    Preparing search index...

    MarginPoolContract class for managing MarginPool operations.

    Index

    Constructors

    Methods

    • Parameters

      • coinKey: string

        The key to identify the pool

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Mint a referral for a margin pool

    • Parameters

      • coinKey: string

        The key to identify the pool

      • amountToDeposit: number

        The amount to deposit

      • OptionalreferralId: string

        The ID of the referral

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Supply to a margin pool

    • Parameters

      • coinKey: string

        The key to identify the pool

      • OptionalamountToWithdraw: number

        The amount to withdraw

      Returns (tx: Transaction) => TransactionResult

      A function that takes a Transaction object

      Withdraw from a margin pool

    • Parameters

      • coinKey: string

        The key to identify the pool

      • referralId: string

        The ID of the referral

      Returns (tx: Transaction) => void

      A function that takes a Transaction object

      Withdraw referral fees from a margin pool