origin-dollar icon indicating copy to clipboard operation
origin-dollar copied to clipboard

OUSD Better Burn Mint

Open DanielVF opened this issue 2 years ago • 0 comments

Changing over burning and minting to work from a balance centric point of view.

On burns this provides:

  • Can burn any amount
  • Can always burn account balance

While this passes current tests, and should be perfectly accurate for a hundred years worth of yield, it would be good to characterize worst case rounding results when resolution is insufficient.


Contract change checklist:

  • [ ] Code reviewed by 2 reviewers.
  • [ ] Copy & paste code review security checklist below this checklist.
  • [ ] Unit tests pass
  • [ ] Slither tests pass with no warning
  • [ ] Echidna tests pass if PR includes changes to OUSD contract (not automated, run manually on local)

DanielVF avatar Jul 04 '23 16:07 DanielVF