style: auto-fix formatting issues with golangci-lint
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/pkg/dex"
|
"github.com/fraktal/mev-beta/pkg/dex"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import (
|
|||||||
"github.com/fraktal/mev-beta/internal/config"
|
"github.com/fraktal/mev-beta/internal/config"
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
"github.com/fraktal/mev-beta/internal/monitoring"
|
"github.com/fraktal/mev-beta/internal/monitoring"
|
||||||
|
|
||||||
// "github.com/fraktal/mev-beta/internal/tokens" // Not used - pool discovery disabled
|
// "github.com/fraktal/mev-beta/internal/tokens" // Not used - pool discovery disabled
|
||||||
"github.com/fraktal/mev-beta/pkg/arbitrage"
|
"github.com/fraktal/mev-beta/pkg/arbitrage"
|
||||||
"github.com/fraktal/mev-beta/pkg/metrics"
|
"github.com/fraktal/mev-beta/pkg/metrics"
|
||||||
|
|||||||
@@ -1220,7 +1220,7 @@ func (executor *FlashSwapExecutor) convertGasCostToTokenUnits(gasCostWei *big.In
|
|||||||
|
|
||||||
func defaultTokenRegistry() map[common.Address]tokenDescriptor {
|
func defaultTokenRegistry() map[common.Address]tokenDescriptor {
|
||||||
registry := 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("0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"): newTokenDescriptor("WETH", 18, 2000.0),
|
||||||
common.HexToAddress("0xaF88d065e77c8cC2239327C5EDb3A432268e5831"): newTokenDescriptor("USDC", 6, 1.0),
|
common.HexToAddress("0xaF88d065e77c8cC2239327C5EDb3A432268e5831"): newTokenDescriptor("USDC", 6, 1.0),
|
||||||
common.HexToAddress("0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"): newTokenDescriptor("USDC.e", 6, 1.0),
|
common.HexToAddress("0xff970a61a04b1ca14834a43f5de4533ebddb5cc8"): newTokenDescriptor("USDC.e", 6, 1.0),
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/pkg/calldata"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"github.com/fraktal/mev-beta/pkg/calldata"
|
||||||
)
|
)
|
||||||
|
|
||||||
type multicallFixture struct {
|
type multicallFixture struct {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/config"
|
"github.com/fraktal/mev-beta/internal/config"
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/pkg/types"
|
"github.com/fraktal/mev-beta/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
"github.com/ethereum/go-ethereum/rpc"
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
|
"golang.org/x/time/rate"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/config"
|
"github.com/fraktal/mev-beta/internal/config"
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
"github.com/fraktal/mev-beta/internal/ratelimit"
|
"github.com/fraktal/mev-beta/internal/ratelimit"
|
||||||
@@ -32,7 +34,6 @@ import (
|
|||||||
"github.com/fraktal/mev-beta/pkg/scanner"
|
"github.com/fraktal/mev-beta/pkg/scanner"
|
||||||
arbitragetypes "github.com/fraktal/mev-beta/pkg/types"
|
arbitragetypes "github.com/fraktal/mev-beta/pkg/types"
|
||||||
"github.com/fraktal/mev-beta/pkg/uniswap"
|
"github.com/fraktal/mev-beta/pkg/uniswap"
|
||||||
"golang.org/x/time/rate"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// safeConvertInt64ToUint64 safely converts an int64 to uint64, ensuring no negative values
|
// safeConvertInt64ToUint64 safely converts an int64 to uint64, ensuring no negative values
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
||||||
"github.com/fraktal/mev-beta/internal/logger"
|
"github.com/fraktal/mev-beta/internal/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user