Skip to main content

Interface: CalculateSellAmountOptions

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / CalculateSellAmountOptions

Interface: CalculateSellAmountOptions

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:216

Options for calculating sell amount

Properties​

amount​

amount: string

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:220

Amount to sell


currentSupply?​

optional currentSupply?: string

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:230

Current token supply (optional - only used for local mode, auto-fetched if missing)


maxSupply?​

optional maxSupply?: string

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:232

Maximum token supply (optional - only used for local sell mode, auto-fetched if missing)


mode?​

optional mode?: "local" | "external"

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:228

Calculation mode override (optional - defaults to SDK's calculateAmountMode). 'local' = Client-side bonding curve (instant, no network calls) 'external' = Network calls to GalaChain (slower, always fresh)


reverseBondingCurveMaxFeeFactor?​

optional reverseBondingCurveMaxFeeFactor?: number

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:234

Max reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing)


reverseBondingCurveMinFeeFactor?​

optional reverseBondingCurveMinFeeFactor?: number

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:236

Min reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing)


tokenName​

tokenName: string

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:218

Token name


type​

type: "native" | "exact"

Defined in: packages/launchpad-sdk/dist/types/options.dto.d.ts:222

Calculation type