synapsecns/sanguine

View on GitHub
ethergo/chain/gas/londinium/config.go

Summary

Maintainability
A
0 mins
Test Coverage
package londinium

import "github.com/ethereum/go-ethereum/eth/gasprice"

// ToLondiniumConfig converts a post-london gasprice.Config to a legacy confiy.
func ToLondiniumConfig(newConfig gasprice.Config) Config {
    return Config{
        Blocks:     newConfig.Blocks,
        Percentile: newConfig.Percentile,
        Default:    newConfig.Default,
        MaxPrice:   newConfig.MaxPrice,
    }
}