It adds the changes which were also done to the solver rewards repo (here) to the dune sync repo.
The data uploaded to dune changes for batch_rewards and orders_rewards.
For batch rewards, we sync an additional entry protocol_fee which contains the ETH value of all protocol fees in a batch. Additionally, fees are reduced by network fees. We correct for the fact that the settlement_observations table calculates fees from surplus in the sell token while the protocol fee might be taken in the buy token.
For order rewards, we additionally sync the entries
protocol_fee: The protocol fee in the token it was charged in.
protocol_fee_token: The token in which the fee is charged, i.e., sell token for volume based fees and surplus token for surplus based fees. It is NULL when there was no protocol fee.
protocol_fee_native_price: The native price of the protocol fee token in the auction which was settled. It is 0.0 if there is no protocol fee.
This PR adds protocol fees to dune.
It adds the changes which were also done to the solver rewards repo (here) to the dune sync repo.
The data uploaded to dune changes for
batch_rewards
andorders_rewards
.protocol_fee
which contains the ETH value of all protocol fees in a batch. Additionally, fees are reduced by network fees. We correct for the fact that thesettlement_observations
table calculates fees from surplus in the sell token while the protocol fee might be taken in the buy token.protocol_fee
: The protocol fee in the token it was charged in.protocol_fee_token
: The token in which the fee is charged, i.e., sell token for volume based fees and surplus token for surplus based fees. It isNULL
when there was no protocol fee.protocol_fee_native_price
: The native price of the protocol fee token in the auction which was settled. It is0.0
if there is no protocol fee.