Versions Compared

Key

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

This effort prototypes a simplified end-to-end flow of FIO Wrapping.

Use case

Wrap FIO Token:

  1. Alice executes wraptokens on FIO chain

  2. Oracle monitors wraptokens for transfers

  3. Oracle executes ERC-20 approve

  4. Alice calls ERC-20 blanceOf to get balance

  5. Alice executes ERC-20 transfer

Assumptions

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

  • No validation on either chain is required.

Image RemovedImage Added

Diagram link: https://drive.google.com/file/d/12f8iOoZjj1txZCJprpuQ5VFb8Ejpc9Bp/view?usp=sharing

Deployment

  • fio.wrapping: contract deployed to DEV server with V1 History (eventually will move to Hyperion)

  • oracle: daemon running on server

  • ERC-20: open zeppelin contracts on Ropsten testnet

TBD

  • How will Alice execute the transfer? Are there standard interfaces or tools to do this?

  • amounts on FIO are int64, amounts on ERC-20 are uint256