Skip to content

Commit

Permalink
fix: correct deltaswap-v1 GetNewPoolState logic (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnhathoang authored Nov 19, 2024
1 parent 85f0ff2 commit 9e06ebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/liquidity-source/deltaswap-v1/pool_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
uniswapv2 "github.com/KyberNetwork/kyberswap-dex-lib/pkg/liquidity-source/uniswap-v2"
"github.com/KyberNetwork/kyberswap-dex-lib/pkg/source/pool"
"github.com/KyberNetwork/logger"
"github.com/goccy/go-json"
"github.com/holiman/uint256"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient/gethclient"
"github.com/goccy/go-json"
"github.com/holiman/uint256"
)

type PoolTracker struct {
Expand Down Expand Up @@ -42,7 +42,7 @@ func (t *PoolTracker) GetNewPoolState(
p entity.Pool,
params pool.GetNewPoolStateParams,
) (entity.Pool, error) {
return p, nil
return t.getNewPoolState(ctx, p, params, nil)
}

func (t *PoolTracker) GetNewPoolStateWithOverrides(
Expand Down

0 comments on commit 9e06ebe

Please sign in to comment.