Skip to main content

index/interfaces/CalculateSellAmountOptions.md

Options for calculating sell amount

Properties​

PropertyTypeDescription
amountstringAmount to sell
currentSupply?stringCurrent token supply (optional - only used for local mode, auto-fetched if missing)
maxSupply?stringMaximum token supply (optional - only used for local sell mode, auto-fetched if missing)
mode?"local" | "external"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?numberMax reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing)
reverseBondingCurveMinFeeFactor?numberMin reverse bonding curve fee factor (optional - only used for local sell mode, auto-fetched if missing)
tokenNamestringToken name
type"native" | "exact"Calculation type