-
Notifications
You must be signed in to change notification settings - Fork 214
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
, patternfit
, ...) - commit:
reallocate
...- if not atomic: surround with
try / catch
- in the catch, kill the vat. Death before confusion!
- if not atomic: surround with
This wiki is for developing agoric-sdk. For help using Agoric SDK, see https://docs.agoric.com/ and https://agoric-sdk.pages.dev/