Skip to content

Commit

Permalink
[dodov2] set reserve 0 to prevent find route in case price oracle not…
Browse files Browse the repository at this point in the history
… feasible (#670)
  • Loading branch information
tien7668 authored Dec 27, 2024
1 parent 5c87c68 commit 5167101
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/liquidity-source/dodo/shared/pool_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ func (d *PoolTracker) getNewPoolStateDodoV2(ctx context.Context, p entity.Pool)
"poolAddress": p.Address,
"error": err,
}).Errorf("[DodoV2] failed to aggregate for pool data")
if p.Extra != "" {
p.Extra = ""
p.Reserves = entity.PoolReserves{"0", "0"}
return p, nil
}
return entity.Pool{}, err
}

Expand Down

0 comments on commit 5167101

Please sign in to comment.