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

[Router] Enforce redeem outflow limitations #288

Closed crypto-vincent closed 1 year ago

crypto-vincent commented 1 year ago

This is an implementation for the limiting the outflows to a hardcoded amount (or BPS) per epoch (epoch time configurable)

Basically maintain a set of new controller flags, and adds some accounting in the mint/redeem router IXs

PR Combo:

TLDR of the logic basically: