makerdao / mkr-mcd-spec

High level KSpecification for the MCD System by Runtime Verification and Maker Foundation
GNU General Public License v3.0
28 stars 9 forks source link

Wrapped rat representation for `Wad/Ray/Rad` #177

Closed ehildenb closed 4 years ago

ehildenb commented 4 years ago

Blocked on #173

This makes the types stronger for each of Wad/Ray/Rad, by making them wrapped rationals instead of just sort synonyms for rationals.

The benefit here is that we get sort-checking now for each operation we use.