clmm_math
Module0x67b3…928a
- Move path
- 0x3492…c267::clmm_math
- Functions
- 1414 public, 0 entry
- Structs
- 0
- Friend modules
- None
clmm_math
Functions14
- public fun compute_swap_step(u128,u128,u128,u64,u64,bool,bool): (u64, u64, u128, u64)
- public fun fee_rate_denominator(): u64
- public fun get_delta_a(u128,u128,u128,bool): u64
- public fun get_delta_b(u128,u128,u128,bool): u64
- public fun get_delta_down_from_output(u128,u128,u128,bool): u256
- public fun get_delta_up_from_input(u128,u128,u128,bool): u256
- public fun get_liquidity_from_a(u128,u128,u64,bool): u128
- public fun get_liquidity_from_b(u128,u128,u64,bool): u128
- public fun get_next_sqrt_price_a_up(u128,u128,u64,bool): u128
- public fun get_next_sqrt_price_b_down(u128,u128,u64,bool): u128
- public fun get_next_sqrt_price_from_input(u128,u128,u64,bool): u128
- public fun get_next_sqrt_price_from_output(u128,u128,u64,bool): u128
Structs0
This module defines no structs
Constants6
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 0 | u64 | Abort code | get_next_sqrt_price_a_upget_next_sqrt_price_b_down |
| 1 | 1 | u64 | Abort code | get_next_sqrt_price_a_upget_next_sqrt_price_b_down |
| 2 | 2 | u64 | Abort code | get_delta_aget_next_sqrt_price_a_upget_delta_up_from_inputget_delta_down_from_output |
| 3 | 4 | u64 | Abort code | compute_swap_step |
| 4 | 3018 | u64 | Abort code | get_liquidity_by_amount |
| 5 | 1000000 | u64 | Value | fee_rate_denominatorcompute_swap_step |