neutron-org / neutron

Smart Contract platform secured by Cosmos Hub
https://neutron.org
Apache License 2.0
110 stars 91 forks source link

Chore: Flip Dex Price Logic #NTRN-355 #624

Open jcompagni10 opened 1 month ago

jcompagni10 commented 1 month ago

Issue https://hadronlabs.atlassian.net/browse/NTRN-355?atlOrigin=eyJpIjoiYTI0ODY0YTRhNzdhNDQ1NWFlODZhNzE0N2E0ZDk2MmYiLCJwIjoiaiJ9

Currently the dex stores prices as 1.0001^-TickIndex This has been a persistent confusion for builders and integrators and also introduces unnecessary loss of precision. We can safely flip prices the other way without changing functionality

jcompagni10 commented 2 weeks ago

https://github.com/neutron-org/neutron-tests/actions/runs/10256440025

pr0n00gler commented 1 week ago

Unit tests don't work, please fix it

jcompagni10 commented 5 days ago

https://github.com/neutron-org/neutron-tests/actions/runs/10708235338