This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Batch Rewards] Orderbook Query for Batch Rewards (#26)
As part of #27 we implement the Raw Orderbook query that will be used to extract the data to be synced with Dune. The follow up to this PR will implement the python script executing this that is also responsible for transforming it into the JSON files being uploaded to Dune's AWS bucket. Solvers are expected to change their rewards to the following reward(txHash) = observedQuality - referenceScore where observedQuality = Surplus + Fee Furthermore, the reward per batch is planned to be capped by [-E, E + executionCosts] (E = 0.01 ETH) This query joins several tables in order to provide all terms required to evaluate the reward (namely surplus, fee, execution_cost, reference_score). winning_score is included too which is not really necessary but more for transparency. Furthermore, it is expected that if the total allocated rewards for each accounting period are not reached, then we are to distribute the remaining funds according to the solver participation (found also as a field returned by this query).
- Loading branch information