You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have noticed that MEV blocker rebates do not cause any alerts at the moment. This is probably due to a bug in how rebates of the different drivers are handled.
This is wrong since if fetching transfers to the first address does not fail (i.e. kickback is not None), that value is chosen as rebate. Instead, it should should collect all transfers to rebate addresses, and return the one non-zero entry. If one of the transfer fetchings fails. If more than one entry is non-zero, there were probably more than one settlement in the block. (Adding rebates should be fine to avoid more complicated logic for mapping settlements to rebates.)
We have noticed that MEV blocker rebates do not cause any alerts at the moment. This is probably due to a bug in how rebates of the different drivers are handled.
The code in question is
ebbo/src/monitoring_tests/mev_blocker_kickbacks_test.py
Lines 35 to 45 in ee97d79
This is wrong since if fetching transfers to the first address does not fail (i.e.
kickback is not None
), that value is chosen as rebate. Instead, it should should collect all transfers to rebate addresses, and return the one non-zero entry. If one of the transfer fetchings fails. If more than one entry is non-zero, there were probably more than one settlement in the block. (Adding rebates should be fine to avoid more complicated logic for mapping settlements to rebates.)One proposal would be
The text was updated successfully, but these errors were encountered: