Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunspirit99 committed Dec 12, 2024
1 parent a6388db commit 7002024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/liquidity-source/virtual-fun/pool_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ func (d *PoolTracker) getNewPoolState(
_ pool.GetNewPoolStateParams,
overrides map[common.Address]gethclient.OverrideAccount,
) (entity.Pool, error) {
logger.WithFields(logger.Fields{"pool_id": p.Address}).Info("Started getting new pool state")

if !p.Tokens[0].Swappable && !p.Tokens[1].Swappable {
return p, nil
}

logger.WithFields(logger.Fields{"pool_id": p.Address}).Info("Started getting new pool state")

tokenReserves, pairReserves, canPoolTradable, blockNumber, err := d.getReserves(ctx, p.Address, p.Tokens, overrides)
if err != nil {
return p, err
Expand Down

0 comments on commit 7002024

Please sign in to comment.