@@ -76,7 +76,7 @@ $$t_{max} = log_{\sqrt{1.0001}}(\sqrt{p_{max}}) - log_{\sqrt{1.0001}}(\sqrt{p_{m
76
76
Computes the min tick for given tick spacing .
77
77
78
78
```rust
79
- pub fn get_min_tick (tick_spacing : u16 ) -> i32
79
+ pub fn ` get_min_tick ` (tick_spacing : u16 ) -> i32
80
80
```
81
81
82
82
##### Params:
@@ -374,7 +374,7 @@ $s(t) =$ tick_spacing\
374
374
$t_c =$ current_tick_index\
375
375
$\sqrt{p_c} =$ current_sqrt_price
376
376
##### Formula:
377
- $$ t_{min} = get_min_tick (s(t)) $$
377
+ $$ t_{min} = `\text{get\_min\_tick}` (s(t)) $$
378
378
379
379
$$ t_{max} = get_max_tick(s(t)) $$
380
380
@@ -415,7 +415,7 @@ $\Delta{a} =$ liquidity token amount that will be minted\
415
415
$a_T=$ total liquidity token supply\
416
416
$x_ {total}=$ $x_ {amount}$ + $x_ {fee}$ + $x_ {leftover}$\
417
417
$y_ {total}=$ $y_ {amount}$ + $y_ {fee}$ + $y_ {leftover}$\
418
- $t_ {min} = get_min_tick(s(t))$\
418
+ $t_ {min} = ` get_min_tick ` (s(t))$\
419
419
$t_ {max} = get_max_tick(s(t))$\
420
420
$x_ {transfer} =$ amount of token x that will be transferred from the user to the contract\
421
421
$y_ {transfer} =$ amount of token y that will be transferred from the user to the contract
@@ -453,7 +453,7 @@ $\Delta{a} =$ liquidity token amount that will be burned\
453
453
$a_T=$ total liquidity token supply\
454
454
$x_ {total}$ =$x_ {amount}$ + $x_ {fee}$ + $x_ {leftover}$\
455
455
$y_ {total}$ =$y_ {amount}$ + $y_ {fee}$ + $y_ {leftover}$\
456
- $t_ {min} = get_min_tick(s(t))$\
456
+ $t_ {min} = ` get_min_tick ` (s(t))$\
457
457
$t_ {max} = get_max_tick(s(t))$\
458
458
$x_ {transfer} =$ amount of token x that will be transferred from the contract to the user\
459
459
$y_ {transfer} =$ amount of token y that will be transferred from the contract to the user
0 commit comments