diff --git a/README.md b/README.md index 46aee3a..9713a21 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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))$$ @@ -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 @@ -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