From 7ac351f84237bd68cfc8035dea13bbb88a5f7718 Mon Sep 17 00:00:00 2001 From: sunspirit99 Date: Thu, 2 Jan 2025 23:47:30 +0700 Subject: [PATCH] remove redundant logs --- .../balancer-v3/stable/pool_simulator.go | 10 ---------- .../balancer-v3/weighted/pool_simulator.go | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/pkg/liquidity-source/balancer-v3/stable/pool_simulator.go b/pkg/liquidity-source/balancer-v3/stable/pool_simulator.go index 367c75f8c..08f17e0a8 100644 --- a/pkg/liquidity-source/balancer-v3/stable/pool_simulator.go +++ b/pkg/liquidity-source/balancer-v3/stable/pool_simulator.go @@ -1,7 +1,6 @@ package stable import ( - "errors" "math/big" "github.com/goccy/go-json" @@ -73,15 +72,6 @@ func NewPoolSimulator(entityPool entity.Pool) (*PoolSimulator, error) { hook = hooks.NewBaseHook() } - if len(extra.BalancesLiveScaled18) == 0 { - logger.Errorf( - "[%s] Pool Address: %s | Error: balancesLiveScaled18 is empty in extra data", - DexType, - entityPool.Address, - ) - return nil, errors.New("balancesLiveScaled18 is empty in extra data") - } - balancesLiveScaled18 := shared.NewBalances(extra.BalancesLiveScaled18) vault := vault.New(hook, extra.HooksConfig, extra.IsPoolInRecoveryMode, extra.DecimalScalingFactors, extra.TokenRates, diff --git a/pkg/liquidity-source/balancer-v3/weighted/pool_simulator.go b/pkg/liquidity-source/balancer-v3/weighted/pool_simulator.go index df161450f..7eb3546ca 100644 --- a/pkg/liquidity-source/balancer-v3/weighted/pool_simulator.go +++ b/pkg/liquidity-source/balancer-v3/weighted/pool_simulator.go @@ -1,7 +1,6 @@ package weighted import ( - "errors" "math/big" "github.com/goccy/go-json" @@ -73,15 +72,6 @@ func NewPoolSimulator(entityPool entity.Pool) (*PoolSimulator, error) { hook = hooks.NewBaseHook() } - if len(extra.BalancesLiveScaled18) == 0 { - logger.Errorf( - "[%s] Pool Address: %s | Error: balancesLiveScaled18 is empty in extra data", - DexType, - entityPool.Address, - ) - return nil, errors.New("balancesLiveScaled18 is empty in extra data") - } - balancesLiveScaled18 := shared.NewBalances(extra.BalancesLiveScaled18) vault := vault.New(hook, extra.HooksConfig, extra.IsPoolInRecoveryMode, extra.DecimalScalingFactors, extra.TokenRates,