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

[Credix] Bug Fix: Under-requested rebalancing #289

Closed crypto-vincent closed 1 year ago

crypto-vincent commented 1 year ago

Investigating a rebalancing error: https://explorer.solana.com/tx/4Ui2dkt1RHKRbXQfq6yS5zqEyFCzJp7dQg2RbRZHEjyte7jmnyAeXP8iD6ggEr7HHmUCJpZPXLspTH9DiCKtqjgV

Basically the following scenario would happen sometimes:

This PR fixes this: