From 2063848f91218aca650a02e0bbd6908ca11c8c16 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Mon, 29 Jul 2024 11:37:24 +0200 Subject: [PATCH] test: changes for large tests --- test/large/ReservoirPriceOracleLarge.t.sol | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/large/ReservoirPriceOracleLarge.t.sol b/test/large/ReservoirPriceOracleLarge.t.sol index c6a28b7..d5a9c94 100644 --- a/test/large/ReservoirPriceOracleLarge.t.sol +++ b/test/large/ReservoirPriceOracleLarge.t.sol @@ -7,7 +7,8 @@ import { FixedPointMathLib, MintableERC20, ReservoirPair, - IERC20 + IERC20, + Constants } from "test/unit/ReservoirPriceOracle.t.sol"; contract ReservoirPriceOracleLargeTest is ReservoirPriceOracleTest { @@ -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,