Versions Compared

Key

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

...

  • Oracle must be approved by eosio permissions ( BP msig )

  • ereases oracle table entry

wraptokens -

  • validate parameters

  • emplace new receipt inside oracleledger

  • transfer tokens into the fio.oracle contract

  • transfer fees to each block producer ( may potentially duplicate the functionality of bpclaim )

unwraptokens -

  • validate parameters

  • verify fio.address is registered

  • search for obt_id inside oracle_votes

  • if found, search if oracle has voted prior. If oracle has not voted, add the account to the voters' vector

  • if not found, emplace a new record into orcale_votes table.

  • compute the number of registered oracles and total votes inside the record for that obt_id

  • If 100% consensus is achieved, isComplete flag is set as true, and tokens are transferred to the fio.address supplied.