Admin class has to be initialized to call admin functions specific to your lst.

const admin = new Admin({
lstCointype:
"0xabcd2358cebfdf4ee29534f906cbb36a78dfaaa256e7d9ddb7e789e2dd8abcd::demo::DEMO",
treasuryCap:
"0xabcdc88f4ac2eeeb5ac13917c4d3ce147228b62295d51dff4950abd3bb4cabcd",
});
const txb = await admin.createLst(
0,
1,
600,
10000,
address,
);

Constructors

Properties

Methods

  • note: collection fee cap is required to be set in LstParams

    Parameters

    • address: string

      address where the collected fee will be transferred

    Returns Promise<undefined | Transaction>

    transaction block

  • Parameters

    • mintFeeBps: number

      fee to be levied upon minting your lst

    • redeemFeeBps: number

      fee to be levied upon unstaking your lst

    • spreadFeeBps: number

      performance fee that can be charged by your lst on validator rewards

    • redistributionFeeBps: number

      percentage of redeem fee that will be redistributed among the stakers

    • address: string

      address where the admin cap and collection fee cap will be transferred

    Returns Promise<undefined | Transaction>

    transaction block

  • Parameters

    • addresses: string[]

      list of validator addresses

    • weights: number[]

      list of weights corresponding to the i'th validator address

    Returns Promise<undefined | Transaction>

    transaction block

  • refer createLst for info on params

    Parameters

    • mintFeeBps: number
    • redeemFeeBps: number
    • spreadFeeBps: number
    • redistributionFeeBps: number

    Returns Promise<undefined | Transaction>

    transaction block