Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This effort prototypes a simplified end-to-end flow of moving from WFIO to FIO.

Use case

Unwrap FIO Token:

  1. Alice executes ERC-20 approve sending amount and FIO Address

  2. Oracle monitors approve

  3. Oracle transfers WFIO from Alice to Oracle account (or burns WFIO?)

  4. Oracle calls fio.wrap unwraptokens which transfers FIO to Alice

Assumptions

  • Assume there is a single Oracle managing all transactions. Do NOT worry about multisigs, approvals, etc.

  • No validation on either chain is required.

...