High level
This feature is for a special version of the smarcontract (we still want a baseline that does not use the BUIDL capability).
The user redeems mTBILL instantly for USDC via both already available USDC and BUIDL.
Specific features
The smartcontract atomically redeems BUIDL tokens for USDC if there is not enough USDC in the smartcontract. The BUIDL tokens are also held in the smartcontract.
Edge case
- Redeem the full BUIDL balance in the smartcontract if the BUIDL balance will be less than 250k post transaction (as 250k is the minimum).
Make this 250k threshold a parameter that can be adjusted by the admin
- Have a look at the edge cases that Ondo had to handle during their C4 audit, and implement the handling of relevant edge cases they are handling.
Usual suspects features
Caps
- None for BUIDL redemption: if BUIDL is in the smartcontract, it is availalbe for USDC redemption
Minimums
- Nothing specific to BUIDL, USDC minimums still apply
Fees
- Nothing specific to BUIDL, USDC and instant fees still apply
Pause/Unpause
- Not needed for BUIDL itself, we can just avoid having BUIDL in the contract