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

[HOTFIX] Credix rebalancing - profit computation for negative profits #327

Closed crypto-vincent closed 8 months ago

crypto-vincent commented 8 months ago

Avoid this issue when profits are negative: https://explorer.solana.com/tx/2L6TJxAeXnEH3VYBvYSoSgNj1DpwdDT3w8Rvdp3qzfztbFaTV8dedEnThTGTD38Yipc4cBHSjybcUkjp5wP7X7XL

Real long term fix coming in next update: https://github.com/UXDProtocol/uxd-program/pull/321

crypto-vincent commented 8 months ago

Deployed on main-net, merging now