Skip to content

Prepare Commit

Dan Connolly edited this page May 6, 2022 · 4 revisions

roughly...

An input validation bug (IOU link) led to a whole AMM pool getting wedged. Eek! How do we prevent that?!

  • prepare: validate inputs (see assert.type, assertProposalShape, pattern fit, ...)
  • commit: reallocate...
    • if not atomic: surround with try / catch
      • in the catch, kill the vat. Death before confusion!
Clone this wiki locally