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] [Part 0.3] Enforcing strict account sizes #237

Closed crypto-vincent closed 1 year ago

crypto-vincent commented 1 year ago

When trying to deserialize an account's data, anchor will throw an error if the size of the datastructure is smaller than the size of the on-chain accounts.

Therefore: