relayscan
relayscan copied to clipboard
Improve builder profit estimation by taking bid adjustments into account
📝 Summary
- Added a new script
cmd/core/bid-adjustments-backfill.go
to fetch bid adjustments from ultrasound relay. - Amended builder profit query in
GetBuilderProfits
indatabase/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