You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
Lets strip out the num-bigfloat and calculate the price without floats. Then we can have a function for each pool that returns the price as an f64 and another function that returns a fixed point number.
Remove
num-bigfloat
crate from all price calculations because of unexpected panic in division.Panic Example:
Addresses #7
This affects the
calculate_price
functions inuniswap_v2.rs
&uniswap_v3.rs
The text was updated successfully, but these errors were encountered: