bronto

Position

  1. getLPPositions

Fetches the paginated list of all LP positions for a user.

Usage

const positions = await sdk.Position.getLPPositions(provider, limit, offset, userAddress);
console.log({ positions });

Params

  • provider: Ethers Provider

  • limit: Number of positions to fetch

  • offset: Offset for pagination

  • userAddress: Address of the user

Returns

LPPositionInfo[]

  1. getLockedNFTForUser

Fetches the paginated list of all vote escrow NFTs (veNFT) held by a user.

Usage

const nfts = await sdk.Position.getLockedNFTForUser(provider, userAddress);
console.log({ nfts });

Params

Returns

LockedNFTInfo[]

  1. mint

Mints a new LP position.

For complete minting flow, refer to Minting Flow

Usage

await sdk.Position.mint(signer, params);

Params

On this page