diff --git a/services/rfq/relayer/relconfig/config_test.go b/services/rfq/relayer/relconfig/config_test.go index 4fab53e556..bac0016c52 100644 --- a/services/rfq/relayer/relconfig/config_test.go +++ b/services/rfq/relayer/relconfig/config_test.go @@ -31,9 +31,9 @@ func TestChainGetters(t *testing.T) { L1FeeOriginGasEstimate: 30000, L1FeeDestGasEstimate: 40000, MinGasToken: "1000", - QuotePct: relconfig.NewFloat64Pointer(0), + QuotePct: relconfig.NewFloatPtr(0), QuoteWidthBps: 10, - QuoteFixedFeeMultiplier: relconfig.NewFloat64Pointer(1.1), + QuoteFixedFeeMultiplier: relconfig.NewFloatPtr(1.1), }, }, BaseChainConfig: relconfig.ChainConfig{ @@ -49,9 +49,9 @@ func TestChainGetters(t *testing.T) { L1FeeOriginGasEstimate: 30001, L1FeeDestGasEstimate: 40001, MinGasToken: "1001", - QuotePct: relconfig.NewFloat64Pointer(51), + QuotePct: relconfig.NewFloatPtr(51), QuoteWidthBps: 11, - QuoteFixedFeeMultiplier: relconfig.NewFloat64Pointer(1.2), + QuoteFixedFeeMultiplier: relconfig.NewFloatPtr(1.2), }, } cfg := relconfig.Config{ @@ -69,9 +69,9 @@ func TestChainGetters(t *testing.T) { L1FeeOriginGasEstimate: 30000, L1FeeDestGasEstimate: 40000, MinGasToken: "1000", - QuotePct: relconfig.NewFloat64Pointer(50), + QuotePct: relconfig.NewFloatPtr(50), QuoteWidthBps: 10, - QuoteFixedFeeMultiplier: relconfig.NewFloat64Pointer(1.1), + QuoteFixedFeeMultiplier: relconfig.NewFloatPtr(1.1), Tokens: map[string]relconfig.TokenConfig{ "USDC": { Address: usdcAddr, @@ -320,9 +320,9 @@ func TestGetQuoteOffset(t *testing.T) { L1FeeOriginGasEstimate: 30000, L1FeeDestGasEstimate: 40000, MinGasToken: "1000", - QuotePct: relconfig.NewFloat64Pointer(50), + QuotePct: relconfig.NewFloatPtr(50), QuoteWidthBps: 10, - QuoteFixedFeeMultiplier: relconfig.NewFloat64Pointer(1.1), + QuoteFixedFeeMultiplier: relconfig.NewFloatPtr(1.1), Tokens: map[string]relconfig.TokenConfig{ "USDC": { Address: usdcAddr, diff --git a/services/rfq/relayer/relconfig/getters.go b/services/rfq/relayer/relconfig/getters.go index 818dd7fa85..053e04c19e 100644 --- a/services/rfq/relayer/relconfig/getters.go +++ b/services/rfq/relayer/relconfig/getters.go @@ -17,14 +17,14 @@ var DefaultChainConfig = ChainConfig{ OriginGasEstimate: 160000, DestGasEstimate: 100000, MinGasToken: "100000000000000000", // 1 ETH - QuotePct: NewFloat64Pointer(100), + QuotePct: NewFloatPtr(100), QuoteWidthBps: 0, - QuoteFixedFeeMultiplier: NewFloat64Pointer(1), - RelayFixedFeeMultiplier: NewFloat64Pointer(1), + QuoteFixedFeeMultiplier: NewFloatPtr(1), + RelayFixedFeeMultiplier: NewFloatPtr(1), } -// NewFloat64Pointer returns a pointer to a float64. -func NewFloat64Pointer(val float64) *float64 { +// NewFloatPtr returns a pointer to a float64. +func NewFloatPtr(val float64) *float64 { return &val }