diff --git a/app/helper/big-numbers/helper.go b/app/helper/big-numbers/helper.go index 5913766b4..5e747eded 100644 --- a/app/helper/big-numbers/helper.go +++ b/app/helper/big-numbers/helper.go @@ -30,11 +30,3 @@ func ToBigInt(value string) (*big.Int, error) { return amount, nil } - -// Max returns the larger of x or y. -func Max(x, y uint64) uint64 { - if x < y { - return y - } - return x -} diff --git a/app/process/watcher/evm/watcher.go b/app/process/watcher/evm/watcher.go index 338638335..30cd4cda3 100644 --- a/app/process/watcher/evm/watcher.go +++ b/app/process/watcher/evm/watcher.go @@ -108,7 +108,7 @@ func NewWatcher( if err != nil { log.Fatalf("Could not retrieve latest block. Error: [%s].", err) } - targetBlock := bigNumbersHelper.Max(0, currentBlock-evmClient.BlockConfirmations()) + targetBlock := max(0, currentBlock-evmClient.BlockConfirmations()) abi, err := abi.JSON(strings.NewReader(router.RouterABI)) if err != nil {