Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

The purpose of this document is to define initial recommendation for the operating procedures for running the wrapping operations, which is planned to be conducted by a decentralized group of oracles and custodians, who are also FIO Chain Block Producers. This document is not intended to describe the detailed functionality of the FIO contracts, Ethereum contracts or the Oracle software. See References below for that information.

...

Environment Variables

Oracles will need to set the following environment variables :

General variables:

  • POLLTIME - Seconds between poll for wrap and unwrap events (recommend 60 seconds?)

  • SERVER_URL_HISTORY - URL of FIO history node

FIO chain variables:

  • FIO_ORACLE_PRIVATE_KEY

  • FIO_ORACLE_PUBLIC_KEY

  • FIO_ORACLE_ACCOUNT

  • FIO_ORACLE_ADDRESS

  • POLLOFFSET - The number of wrap transactions to get on FIO side in each call. If you set 20, you can get 20 latest actions on FIO side.

ETH chain variables:

  • ETH_ORACLE_PUBLIC, ETH_ORACLE_PRIVATE - The ETH oracle public and private addresses used for signing ERC20 transactions

ETH gas settings:

...

USEGASAPI (1 - Use the etherscan API, 0 - Use the GASPRICE and GASLIMIT env vars)

...

GASPRICELEVEL - Used to select the high/average/low price on etherscan API for gas pricing.

...

as defined in the fio.oracle README: https://github.com/fioprotocol/fio.oracle

If the .env file is updated, the oracle service must be restarted to pull in the latest values.

Potential Issues and Suggested Resolution

...

FIO Token Wrapping Go-to-market plan

FIO Token Wrapping Integration Test Server /wiki/spaces/FO/pages/349569342 (Information on using the Devnet to wrap and unwrap tokens and Domains)

...