LB Tokens
Source code: sources/lb_token.move
The LB token is a fungible asset token (Aptos token version 1) that represents a liquidity provider's position in a specific pool and bin.
When a new pool is created on the protocol, it is assigned a unique collection that belongs to that pool. Each time someone adds liquidity to a specific bin, the token associated with that bin is released in the collection
The collection name can be generated using the following function:
Each LB token issued under a collection has a property that represents the Bin ID. This Bin ID can be extracted using the 'Bin ID' field as a u64 using BCS (Binary Canonical Serialization). The most crucial aspect is that each token issued has an associated amount, which makes it fungible. This amount precisely represents the share of liquidity provided to the specific bin.
Tokens can only be burned by the creator (minter) account, which is represented by the resource account of the protocol. On the mainnet, it's:
Last updated