This effort prototypes a simplified end-to-end flow of moving from WFIO to FIO.
Use case
Unwrap FIO Token:
Alice executes ERC-20
approve
sending amount and FIO AddressOracle monitors
approve
Oracle transfers WFIO from Alice to Oracle account (or burns WFIO?)
Oracle calls fio.wrap
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