Skip to content

Commit

Permalink
test: update _createPool func util in uri tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Sep 1, 2023
1 parent a1e71a0 commit 7c5047a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/TestPositionRendererUri.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ contract TestPositionRendererUri is Setup {
public
returns (uint64 poolId)
{
uint24 pairId = subject().createPair(ctx.asset, ctx.quote);
uint24 pairId = subject().getPairId(ctx.asset, ctx.quote);

if (pairId == 0) {
pairId = subject().createPair(ctx.asset, ctx.quote);
}

(bytes memory strategyData, uint256 initialX, uint256 initialY) =
INormalStrategy(subject().DEFAULT_STRATEGY()).getStrategyData(
Expand Down

0 comments on commit 7c5047a

Please sign in to comment.