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.

Todo

  • Only initial validation was done on wraptokens

  • Update oracle to use _mint (to user address)

  • Include Oracle validation

Use case

Wrap FIO Token:ERC20: https://github.com/fioprotocol/fio.erc20/blob/main/contracts/wfio.sol

Use case: Wrap FIO Token

  1. Alice (dApp) executes wraptokens on FIO chain

  2. Oracle monitors wraptokens for transfers

  3. Oracle calls ERC20 _mint (to user address) wrap

  4. ERC20 collects Oracle _mint wrap observation

  5. When consensus reaching Oracle ERC20 calls _mint , the mint is executed

  6. Alice can now view balanceOf wfio in Metamask/explorer

...