style: auto-fix formatting issues with golangci-lint

This commit is contained in:
Krypto Kajun
2025-11-08 12:38:33 -06:00
parent 7748d033e9
commit f09b008a3c
12 changed files with 14 additions and 3 deletions

View File

@@ -1220,7 +1220,7 @@ func (executor *FlashSwapExecutor) convertGasCostToTokenUnits(gasCostWei *big.In
func defaultTokenRegistry() map[common.Address]tokenDescriptor {
registry := map[common.Address]tokenDescriptor{
common.Address{}: newTokenDescriptor("ETH", 18, 2000.0),
{}: newTokenDescriptor("ETH", 18, 2000.0),
common.HexToAddress("0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"): newTokenDescriptor("WETH", 18, 2000.0),
common.HexToAddress("0xaF88d065e77c8cC2239327C5EDb3A432268e5831"): newTokenDescriptor("USDC", 6, 1.0),
common.HexToAddress("0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"): newTokenDescriptor("USDC.e", 6, 1.0),

View File

@@ -8,8 +8,9 @@ import (
"strings"
"testing"
"github.com/fraktal/mev-beta/pkg/calldata"
"github.com/stretchr/testify/require"
"github.com/fraktal/mev-beta/pkg/calldata"
)
type multicallFixture struct {

View File

@@ -6,6 +6,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/fraktal/mev-beta/internal/config"
"github.com/fraktal/mev-beta/internal/logger"
)

View File

@@ -9,6 +9,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/fraktal/mev-beta/pkg/types"
)

View File

@@ -18,6 +18,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/rpc"
"golang.org/x/time/rate"
"github.com/fraktal/mev-beta/internal/config"
"github.com/fraktal/mev-beta/internal/logger"
"github.com/fraktal/mev-beta/internal/ratelimit"
@@ -32,7 +34,6 @@ import (
"github.com/fraktal/mev-beta/pkg/scanner"
arbitragetypes "github.com/fraktal/mev-beta/pkg/types"
"github.com/fraktal/mev-beta/pkg/uniswap"
"golang.org/x/time/rate"
)
// safeConvertInt64ToUint64 safely converts an int64 to uint64, ensuring no negative values

View File

@@ -8,6 +8,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/fraktal/mev-beta/internal/logger"
)

View File

@@ -6,6 +6,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/fraktal/mev-beta/internal/logger"
)

View File

@@ -8,6 +8,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/fraktal/mev-beta/internal/logger"
)

View File

@@ -9,6 +9,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/fraktal/mev-beta/internal/logger"
)

View File

@@ -8,6 +8,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/fraktal/mev-beta/internal/logger"
)