Risk Oracle

Oracles provide essential data to Adapters, Pools, etc. Some Oracles implement a specific logic for a Pool-Adapter pair, some can be generic enough to feed more than one such pair.

Risk Oracle's main objective for Atomica Liquidation Markets is to provide data for a Keeper Adapter to trigger bidding and make the bids effective.

The Risk Oracle functionality (release v. 1.0) includes:

  1. monitoring Flip Auctions to trigger the appropriate Keeper actions

  2. checking an exchange price for the auction lot amount and, in case of gain, provide a lot selling distribution proportions between exchanges

  3. processing the withdrawal requests queue

  4. tracking the ETH balance on its account

  5. accessing Flap and Flop types of auctions data

The expected Risk Oracle functionality for future releases is as follows:

  1. Track the gas spreading on calling smart contracts in order to be functional during network congestion.

  2. Mempool monitoring to analyze pending transactions on MakerDAO auctions and find out the maximum gas price to submit Keeper transactions. Mempool monitoring will also help to check pending bids transactions and decide how to adjust the next bid.

  3. Adjust the algorithm of transaction submission to send transactions efficiently during the critical intervals (when phase 1 is about to finish or auction is about to expire).

  4. Support sharding that involves running multiple bots working concurrently, but with different auction types/ IDs.

Last updated