Package 0x01ac…6d5c
lb_position
- Move path
- 0x5a5c…83ac::lb_position
- Functions
- 4611 public, 0 entry
- Structs
- 6
- Friend modules
- lb_pair
lb_position
Functions46
- public fun get_tokens_in_position(&LBPositionManager,&LBPosition,u32,u32): (vector<u32>, vector<u128>)
Structs6
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- LBBinPositioncopydropstore
bin_id u32 amount u128 fee_growth_inside_last_x u128 fee_growth_inside_last_y u128 reward_growth_inside_last vector<u128> - LBPositionstorekey
id UID pair_id ID my_id ID saved_fees_x u128 saved_fees_y u128 saved_rewards vector<u128> coin_type_a TypeName coin_type_b TypeName lock_until u64 total_bins u64 - LBPositionInfostore
position_id ID pair_id ID bins Table<u32, PackedBins> toggle u16 - LBPositionManagerstore
positions Table<ID, LBPositionInfo> - LB_POSITIONdrop
dummy_field bool - PackedBinsdropstore
active_bins_bitmap u8 bin_data vector<LBBinPosition>
Constants23
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 201 | u64 | Abort code | borrow_bin_mutborrow_bin |
| 1 | 202 | u64 | Abort code | borrow_position_infoborrow_position_info_mut |
| 2 | 203 | u64 | Abort code | close_position |
| 3 | 205 | u64 | Abort code | increase_position_total_bins |
| 4 | 206 | u64 | Abort code | decrease_bin_liquidity |
| 5 | 7 | u32 | Value | resolve_bin_group_index |
| 6 | 3 | u8 | Value | resolve_bin_group_indexget_tokens_in_position |
| 7 | "name" // interpreted as UTF8 string | vector<u8> | Value | init |
| 8 | "coin_a" // interpreted as UTF8 string | vector<u8> | Value | init |
| 9 | "coin_b" // interpreted as UTF8 string | vector<u8> | Value | init |
| 10 | "link" // interpreted as UTF8 string | vector<u8> | Value | init |
| 11 | "image_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 12 | "description" // interpreted as UTF8 string | vector<u8> | Value | init |
| 13 | "project_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 14 | "creator" // interpreted as UTF8 string | vector<u8> | Value | init |
| 15 | "Ferra Liquidity Position" // interpreted as UTF8 string | vector<u8> | Value | init |
| 16 | "{coin_type_a}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 17 | "{coin_type_b}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 18 | "https://ferra.ag/position?id={id}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 19 | "https://ferra.ag/Certified-Ferra-LPer.png" // interpreted as UTF8 string | vector<u8> | Value | init |
| 20 | "Provides liquidity for the Ferra trading pair" // interpreted as UTF8 string | vector<u8> | Value | init |
| 21 | "https://ferra.ag" // interpreted as UTF8 string | vector<u8> | Value | init |
| 22 | "Ferra Labs" // interpreted as UTF8 string | vector<u8> | Value | init |