Skip to content

Commit

Permalink
remove redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sunspirit99 committed Jan 2, 2025
1 parent 53197bc commit 7ac351f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions pkg/liquidity-source/balancer-v3/stable/pool_simulator.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package stable

import (
"errors"
"math/big"

"github.com/goccy/go-json"
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 0 additions & 10 deletions pkg/liquidity-source/balancer-v3/weighted/pool_simulator.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package weighted

import (
"errors"
"math/big"

"github.com/goccy/go-json"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7ac351f

Please sign in to comment.