forge build
forge test
# Check this test for how the system works
forge test --match-path test/sim/Sim.test.sol
TODO: ESM? TODO: OSM? TODO: gov?
TODO: test
- pot
- vow
- clipper
- dog
- flopper
- flapper
- cdp manager
ETH A - 0x4554482d41000000000000000000000000000000000000000000000000000000
ETH C - 0x4554482d43000000000000000000000000000000000000000000000000000000
par [ray] 1000000000000000000000000000
mat [ray] 1450000000000000000000000000
val [wad] 2067300000000000000000
spot [ray] 1429862068965517241379310344827
liquidation ratio = mat / par
= collateral USD value / debt USD value
liquidation price = spot = val * 1e9 * par / mat