Docs

The warranty

Trust and security

What you are and are not relying on.


What the contract can't do#

  • No admin. No address has special powers.
  • No upgrades. The code can't be changed after deployment.
  • No oracle. Results come from balances and block time, not from an outside data feed.
  • No new routers. The Uniswap V2 and V3 routers and the bond token are fixed at deployment.

What protects the money#

  • Each task's compensation is locked per task, so a bond can't back more than it holds.
  • A transfer has one possible destination.
  • A swap's router approval covers the task's input amount only and is reset to zero after the call.
  • The contract measures what a swap really spent and returned, rather than trusting the router's answer.
  • Tokens that take a fee on transfer are refused, so escrow can't come up short.
  • Every function that moves funds has a reentrancy guard.

What you still rely on#

  • The contract code being correct.
  • USDG, the tokens in your task, and the Uniswap routers working as expected.
  • Robinhood Chain staying up and including transactions. A delivery or a settlement needs a transaction to land.

Where the funds sit#

All bonds and escrows sit in one contract. Its accounting keeps them apart, but a bug would affect all of them.