Skip to main content
See Get user positions for details how to retrieve all positions of a user including fees earned if any.

Function name: collect Recommended gas: 300,000 gwei (~ $0.026 USD)

Code Overview

The following code demonstrates how to claim all swap fees from a pool.
When claiming fees from a pool that involves HBAR, include unwrapWHBAR in your multicall to convert the Wrapped HBAR (WHBAR) output token back into the native HBAR cryptocurrency.
Resources:
Typescript