relayscan icon indicating copy to clipboard operation
relayscan copied to clipboard

Improve builder profit estimation by taking bid adjustments into account

Open ababino opened this issue 4 months ago • 0 comments

📝 Summary

  1. Added a new script cmd/core/bid-adjustments-backfill.go to fetch bid adjustments from ultrasound relay.
  2. Amended builder profit query in GetBuilderProfits in database/database.go. Now, if the slot is a bid-adjusted-slot, the query will subtract the validator profit from coinbase_diff.

⛱ Motivation and Context

Builder profit is not accurate when bids are adjusted by ultrasound relay.


✅ I have run these commands

  • [x] make lint
  • [x] make test
  • [x] go mod tidy

ababino avatar Oct 08 '24 20:10 ababino