Skip to main content

CreateShapeParams

@foprta/sdk


@foprta/sdk / CreateShapeParams

Type Alias: CreateShapeParams

CreateShapeParams = object

Defined in: types/liquidity.ts:31

Parameters for creating a liquidity shape

Properties

bps

bps: bigint

Defined in: types/liquidity.ts:43

Basis points for fee calculation


currentPrice

currentPrice: number

Defined in: types/liquidity.ts:37

Current price of the pool


fallbackRatio?

optional fallbackRatio: number

Defined in: types/liquidity.ts:49

Ratio of liquidity to distribute from active bin to other bins (0-1) in case of central bin takes all of the liquidity

Default

0.8

fromBin

fromBin: number

Defined in: types/liquidity.ts:39

Starting bin index


toBin

toBin: number

Defined in: types/liquidity.ts:41

Ending bin index


token0Amount

token0Amount: bigint

Defined in: types/liquidity.ts:33

Amount of token0 to provide


token1Amount

token1Amount: bigint

Defined in: types/liquidity.ts:35

Amount of token1 to provide