Skip to content

Commit

Permalink
test: changes for large tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Jul 29, 2024
1 parent b036036 commit 2063848
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/large/ReservoirPriceOracleLarge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
FixedPointMathLib,
MintableERC20,
ReservoirPair,
IERC20
IERC20,
Constants
} from "test/unit/ReservoirPriceOracle.t.sol";

contract ReservoirPriceOracleLargeTest is ReservoirPriceOracleTest {
Expand Down Expand Up @@ -77,7 +78,10 @@ contract ReservoirPriceOracleLargeTest is ReservoirPriceOracleTest {
lRoute[3] = aTokenAAddress;
}

_oracle.setRoute(lRoute[0], lRoute[3], lRoute);
uint16[] memory lBpDiffForMaxReward = new uint16[](3);
lBpDiffForMaxReward[0] = lBpDiffForMaxReward[1] = lBpDiffForMaxReward[2] = Constants.BP_SCALE;

_oracle.setRoute(lRoute[0], lRoute[3], lRoute, lBpDiffForMaxReward);
_writePriceCache(
lTokenA < lTokenB ? aTokenAAddress : aTokenBAddress,
lTokenA < lTokenB ? aTokenBAddress : aTokenAAddress,
Expand Down

0 comments on commit 2063848

Please sign in to comment.