Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

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

Todo

  • Only initial validation was done on wraptokens

  • Update oracle to use _mint (to user address)

  • Include Oracle validation

Use case

Wrap FIO Token:

  1. Alice (dApp) executes wraptokens on FIO chain

  2. Oracle monitors wraptokens for transfers

  3. Oracle calls ERC20 wrap

  4. ERC20 collects Oracle wrap observation

  5. When consensus reaching ERC20 calls _mint

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

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

  • No labels