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

[Rebalancing] Optional small cleanups #263

Closed crypto-vincent closed 1 year ago

crypto-vincent commented 1 year ago

As a follow-up, there was a few small details I wanted to look into before we start an audit or a deployment on main net:

generalizing the too specialized calculate_credix_lp_target_redeemable_amount function into a more generic calculate_router_target_redeemable_amount function (naming to be discussed) that can then be reused accross the mint/redeem IXs

crypto-vincent commented 1 year ago

not doing this for now