OriginProtocol / origin-dollar

OUSD and OETH are stablecoins that passively accrue yield while you are holding it
https://originprotocol.com
MIT License
122 stars 79 forks source link

Remove SafeMath from OUSD #1194

Open DanielVF opened 1 year ago

DanielVF commented 1 year ago

Safe math operations are now built into the solidity compiler. We could remove the use of safe math from OUSD and save gas.

DanielVF commented 1 year ago

These have now been removed from the vault, but remain in OUSD.

naddison36 commented 1 year ago

FYI, I've removed SafeMath from the OETH Vault as part of the collateral swap changes.

Note VaultAdmin still requires StableMath.