Skip to content

Commit

Permalink
feat: Fixing vAMM equation (#2297)
Browse files Browse the repository at this point in the history
* feat: Tweak to vamm equation
  • Loading branch information
TomMcL authored Jun 6, 2024
1 parent 15d613e commit 9d587e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion non-protocol-specs/0014-NP-VAMM-bounds-estimations.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $$
where $p_u$ is the price at the upper end of the range (`upper price` for the upper range and `base price` for the lower range) and $p_l$ is the corresponding lower price for the range. With this, the average entry price can be found to be

$$
p_a = L_u p_u (1 - \frac{L_u}{L_u + p_u}) ,
p_a = L_u \sqrt{p_u} (1 - \frac{L_u}{L_u + \sqrt{p_u}}) ,
$$

where $p_a$ is the average execution price across the range and other values are as defined above. Finally, the risk factor which will be used for calculating leverage at bounds
Expand Down

0 comments on commit 9d587e7

Please sign in to comment.