@gala-chain/api ∙ API
API > updatePositions
Function: updatePositions()
updatePositions(
positions
,owner
,tickLower
,tickUpper
,liquidityDelta
,feeGrowthInside0
,feeGrowthInside1
):void
Parameters
▪ positions: Positions
The mapping containing all user positions
▪ owner: string
The address of the position owner
▪ tickLower: number
The lower tick boundary of the position
▪ tickUpper: number
The upper tick boundary of the position
▪ liquidityDelta: BigNumber
The amount of liquidity changing for the position
▪ feeGrowthInside0: BigNumber
The all-time fee growth in token0, per unit of liquidity, inside the position's tick boundaries
▪ feeGrowthInside1: BigNumber
The all-time fee growth in token1, per unit of liquidity, inside the position's tick boundaries
Returns
position The position info struct of the given owners' position
Notice
Updates the positions for a pool