Constructors

Properties

sdkCore: SmartContractSdkCore

Methods

  • function to deposit amount to selected contract address

    Parameters

    • param: {
          amount: number;
          contractAddress: string;
          slippage: number;
      }

      the contract address to deposit.

      • amount: number
      • contractAddress: string
      • slippage: number

    Returns Promise<Record<string, unknown>>

    the transaction and receipt for the action.

  • function to get base token decimal

    Parameters

    • contractAddress: string

      the contract address to get.

    Returns Promise<number>

    the number of decimal for the particular contract address.

  • function to read fund active weights

    Parameters

    • contractAddress: string

    Returns Promise<WeightsData[]>

    3 seperate arrays of target weights, current weights, and active weights

  • function to get token decimal

    Parameters

    • contractAddress: string

      the contract address to get.

    Returns Promise<number>

    the number of decimal for the particular contract address.

  • function to rebalance to selected contract address

    Parameters

    • param: {
          contractAddress: string;
          slippage: number;
          targets: string[];
          toAddress: string[];
      }

      the contract address to rebalance.

      • contractAddress: string
      • slippage: number
      • targets: string[]
      • toAddress: string[]

    Returns Promise<Record<string, unknown>>

    the transaction and receipt for the action.

  • function to withdraw amount to selected contract address

    Parameters

    • param: {
          amount: number;
          contractAddress: string;
          slippage: number;
      }

      the contract address to withdraw.

      • amount: number
      • contractAddress: string
      • slippage: number

    Returns Promise<Record<string, unknown>>

    the transaction and receipt for the action.

Generated using TypeDoc