UXDProtocol / uxd-program

Implementation of a program that manages on chain accounts to mint and redeem Redeemables tokens (UXD), hedged by a delta neutral position on underlying DEXes.
https://uxd.fi/
Other
21 stars 5 forks source link

[Audit] I-5 - Optimize fractions computations #325

Closed crypto-vincent closed 8 months ago

crypto-vincent commented 8 months ago

Replace the usages of:

Which makes the code simpler and more readable in many call sites.

crypto-vincent commented 8 months ago

Reverified manually on localnet that everything still works 👌

CI is temporarily blocked because of mercurial's devnet breaking change. But all localnet tests are passing and I manually re-reviewed everything.

Merging now 👌