Skip to content

Commit d14790e

Browse files
committed
fix readme
1 parent 5e803b2 commit d14790e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $$t_{max} = log_{\sqrt{1.0001}}(\sqrt{p_{max}}) - log_{\sqrt{1.0001}}(\sqrt{p_{m
7676
Computes the min tick for given tick spacing.
7777

7878
```rust
79-
pub fn get_min_tick(tick_spacing: u16) -> i32
79+
pub fn `get_min_tick`(tick_spacing: u16) -> i32
8080
```
8181

8282
##### Params:
@@ -374,7 +374,7 @@ $s(t) =$ tick_spacing\
374374
$t_c =$ current_tick_index\
375375
$\sqrt{p_c} =$ current_sqrt_price
376376
##### Formula:
377-
$$t_{min} = get_min_tick(s(t))$$
377+
$$t_{min} = `\text{get\_min\_tick}`(s(t))$$
378378

379379
$$t_{max} = get_max_tick(s(t))$$
380380

@@ -415,7 +415,7 @@ $\Delta{a} =$ liquidity token amount that will be minted\
415415
$a_T=$ total liquidity token supply\
416416
$x_{total}=$ $x_{amount}$ + $x_{fee}$ + $x_{leftover}$\
417417
$y_{total}=$ $y_{amount}$ + $y_{fee}$ + $y_{leftover}$\
418-
$t_{min} = get_min_tick(s(t))$\
418+
$t_{min} = `get_min_tick`(s(t))$\
419419
$t_{max} = get_max_tick(s(t))$\
420420
$x_{transfer} =$ amount of token x that will be transferred from the user to the contract\
421421
$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\
453453
$a_T=$ total liquidity token supply\
454454
$x_{total}$ =$x_{amount}$ + $x_{fee}$ + $x_{leftover}$\
455455
$y_{total}$ =$y_{amount}$ + $y_{fee}$ + $y_{leftover}$\
456-
$t_{min} = get_min_tick(s(t))$\
456+
$t_{min} = `get_min_tick`(s(t))$\
457457
$t_{max} = get_max_tick(s(t))$\
458458
$x_{transfer} =$ amount of token x that will be transferred from the contract to the user\
459459
$y_{transfer} =$ amount of token y that will be transferred from the contract to the user

0 commit comments

Comments
 (0)