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 6 forks source link

[Hotfix] fix redeem validation typo #273

Closed crypto-vincent closed 1 year ago

crypto-vincent commented 1 year ago

While doing deep testing I found a small mistake in the redeem validation code. Basically if we dont have any collateral left we wont be able to redeem anymore, even if we have enough redeemable.