Skip to content

Commit

Permalink
fix: add bid fee ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Mar 28, 2024
1 parent 24bf26c commit 8c15f92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/types/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@ type MevParams struct {
ValidatorCommission uint64 // 100 means 1%
BidSimulationLeftOver time.Duration
GasCeil uint64
BidFeeCeil uint64
}
2 changes: 2 additions & 0 deletions miner/miner_mev.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type BuilderConfig struct {

type MevConfig struct {
Enabled bool // Whether to enable Mev or not
BidFeeCeil uint64 // The maximum builder fee of a bid
SentryURL string // The url of Mev sentry
Builders []BuilderConfig // The list of builders
ValidatorCommission uint64 // 100 means 1%
Expand Down Expand Up @@ -108,5 +109,6 @@ func (miner *Miner) MevParams() *types.MevParams {
ValidatorCommission: miner.worker.config.Mev.ValidatorCommission,
BidSimulationLeftOver: miner.worker.config.Mev.BidSimulationLeftOver,
GasCeil: miner.worker.config.GasCeil,
BidFeeCeil: miner.worker.config.Mev.BidFeeCeil,
}
}

0 comments on commit 8c15f92

Please sign in to comment.