Contract

Deployed contract:

Network

Testnet

App id

159512493

Admin

RFAPNRJLIFD4DD5MFYZT6DBIFA4ZTS2TS6SL6KMFADMHT3QVHLPCZIJWYI

Updaters

VGAEJ4PYJZZDKII6PU6TZ35ZZCZ3S63FFMMEFCHX7EWWREHKUQTU3RNL7E

Network

Mainnet

Admin

Q5Q5FC5PTYQIUX5PGNTEW22UJHJHVVUEMMWV2LSG6MGT33YQ54ST7FEIGA

Updaters

CT7UVBN5XSK4GRV6DQOVBDAYHSBJWNWMHOAZJZRIQ5PCNOUS22XLTIU6CI

Actors and methods:

Admin:

Set with the create method after the contract is deployed, the admin is the only one that can call the add_admin_operation method.

Operations:

  • schedule_admin_operation: create new box storage and add a new admin operation.

  • revoke_admin_operation: revoke a pending admin operation.

New Admin:

  • update_admin: set the new admin address to the global state.

Users:

Users can trigger the operations scheduled by the admin.

  • update_time_delay: update the time delay value.

  • update_updater_authorization: update the authorization flag of an updater by setting it to true or false.

  • add_asset: add a new feed. Check if the asset doesn't exist yet and add it in a new global state. The asset id is set as key and as value: [price, timestamp, price_threshold, initialized]

  • update_asset_data: update the data of an existing feed e.g. price threshold.

Updater:

Account created by the FFO Server, over which no one has control. It can update feed prices if authorized.

Operations:

  • update_prices: Update the prices of the assets added. Different updaters could update different feeds.

Last updated