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.
...