Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
none00y committed Aug 22, 2024
1 parent 5e803b2 commit d14790e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ $$t_{max} = log_{\sqrt{1.0001}}(\sqrt{p_{max}}) - log_{\sqrt{1.0001}}(\sqrt{p_{m
Computes the min tick for given tick spacing.

```rust
pub fn get_min_tick(tick_spacing: u16) -> i32
pub fn `get_min_tick`(tick_spacing: u16) -> i32
```

##### Params:
Expand Down Expand Up @@ -374,7 +374,7 @@ $s(t) =$ tick_spacing\
$t_c =$ current_tick_index\
$\sqrt{p_c} =$ current_sqrt_price
##### Formula:
$$t_{min} = get_min_tick(s(t))$$
$$t_{min} = `\text{get\_min\_tick}`(s(t))$$

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

Expand Down Expand Up @@ -415,7 +415,7 @@ $\Delta{a} =$ liquidity token amount that will be minted\
$a_T=$ total liquidity token supply\
$x_{total}=$ $x_{amount}$ + $x_{fee}$ + $x_{leftover}$\
$y_{total}=$ $y_{amount}$ + $y_{fee}$ + $y_{leftover}$\
$t_{min} = get_min_tick(s(t))$\
$t_{min} = `get_min_tick`(s(t))$\
$t_{max} = get_max_tick(s(t))$\
$x_{transfer} =$ amount of token x that will be transferred from the user to the contract\
$y_{transfer} =$ amount of token y that will be transferred from the user to the contract
Expand Down Expand Up @@ -453,7 +453,7 @@ $\Delta{a} =$ liquidity token amount that will be burned\
$a_T=$ total liquidity token supply\
$x_{total}$ =$x_{amount}$ + $x_{fee}$ + $x_{leftover}$\
$y_{total}$ =$y_{amount}$ + $y_{fee}$ + $y_{leftover}$\
$t_{min} = get_min_tick(s(t))$\
$t_{min} = `get_min_tick`(s(t))$\
$t_{max} = get_max_tick(s(t))$\
$x_{transfer} =$ amount of token x that will be transferred from the contract to the user\
$y_{transfer} =$ amount of token y that will be transferred from the contract to the user
Expand Down

0 comments on commit d14790e

Please sign in to comment.