Skip to content

@gala-chain/chaincodeAPI


API > burn

Function: burn()

burn(ctx, dto): Promise\<UserBalanceResDto>

Parameters

ctx: GalaChainContext

GalaChainContext – The execution context that provides access to the GalaChain environment.

dto: BurnDto

BurnDto – A data transfer object containing the details of the liquidity position to be burned, including the pool, and position ID.

Returns

UserBalanceResDto

Dev

The burn function is responsible for removing liquidity from a Uniswap V3 pool within the GalaChain ecosystem. It executes the necessary operations to burn the liquidity position and transfer the corresponding tokens back to the user.

Source

chaincode/src/dex/burn.ts:37