This effort prototypes a simplified end-to-end flow of moving from WFIO to FIO.
Use case
Unwrap FIO Token:
Alice (dApp) executes ERC20
approve
sending amount and FIO AddressSend FIO Address as hash?
Add on to end of approve?
Oracle monitors
approve
Oracle calls
burnFrom
from Alice’s accountOracle calls fio.oracle
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.
Diagram link: https://app.diagrams.net/#G1ETfA3K6VTa-rhqcH7gJmRsFUIiGS2kDn
Add Comment