Versions Compared

Key

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

...

Use case

Wrap FIO Token:

  1. Alice (dApp) executes wraptokens on FIO chain

  2. Oracle monitors wraptokens for transfers

  3. Oracle executes ERC20 _mint

  4. Oracle executes ERC-20 ERC20 approve

  5. Alice calls ERC-20 blanceOf (dApp) calls ERC20 balanceOf to get balance

  6. Alice executes ERC-20 transfer(dApp) executes ERC20 transferFrom

Assumptions

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

  • No validation on either chain is required.

...

  • 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 Need a dApp.