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

[Audit] I-8 - Avoid unecessary CPIs when amounts=0 #322

Closed crypto-vincent closed 10 months ago

crypto-vincent commented 10 months ago

When the token amounts are equal to zero, we can skip some CPI calls to save some GAS