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 8 Next »

Overview

  • Oracles will:

    • On the FIO Chain

      • Monitor specific account by inspecting every block and looking for wraptokens action

      • MINT WFIO ERC-20 token to the designated account

    • On the Ethereum Chain

      • Monitor Ethereum smart contract for inbound transfers of ERC-20 WFIO

      • Burn the inbound WFIO

      • Transfer FIO to the designated account

  • Oracle code will be run by designated FIO Chain BPs with access to:

    • FIO Chain: BPs already run FIO nodes.

    • Ethereum Chain: local Ethereum node is preferred, but Infura or Etherscan can also be used.

Wrap

See the following page for an overview of the Wrap use case: Wrap

  • Once Oracles detect that a user on FIO Chain wants to wrap FIO Tokens, they will submit their observation to this Ethereum smart contract.

  • Once all Oracles have submitted their observation, the wrapped FIO Tokens will be minted and transferred to designated Ethereum public address.

Unwrap

See the following page for an overview of the Unwrap use case: Unwrap

  • Once Oracles detect that a user on wants to unwrap WFIO Tokens, they will submit their observation to this FIO smart contract.

  • Once all Oracles have submitted their observation, the wrapped FIO Tokens will be transferred to the designated FIO Address

Possible exceptions

  • FIO Chain

    • Chain passed to wrapdomain or wraptokens actions is not Ethereum (this restriction is not enforced on the FIO Chain level to allow for wrapping chain expansion without deployment of code)

      • Oracles can trigger unwrapdomain or unwraptokens actions to originating address

    • Public address passed to wrapdomain or wraptokens actions is not a valid Ethereum address (this restriction is not enforced on the FIO Chain level to allow for wrapping chain expansion without deployment of code)

      • Oracles can trigger unwrapdomain or unwraptokens actions to originating address

  • Ethereum Chain

    • FIO Address passed in with ERC-20 is not valid or does not exist

      • Oracles can trigger a refund deducting amount to cover gas

    • FIO Address passed in with ERC-721 is not valid or does not exist

      • Oracle can at their discretion trigger a refund or manually resolve the issue with sender

Oracle Components

  • No labels