diff --git a/test/unit/Oval.ChainlinkDestinationAdapter.sol b/test/unit/Oval.ChainlinkDestinationAdapter.sol index f69c9f1..7b4ed06 100644 --- a/test/unit/Oval.ChainlinkDestinationAdapter.sol +++ b/test/unit/Oval.ChainlinkDestinationAdapter.sol @@ -72,10 +72,10 @@ contract OvalChainlinkDestinationAdapter is CommonTest { oval.latestRoundData(); // Check that Oval return the correct values scaled to the source oracle decimals. - assertTrue(roundId == 1); + assertTrue(roundId == 2); assertTrue(answer == newAnswer / internalDecimalsToSourceDecimals); assertTrue(startedAt == newTimestamp); assertTrue(updatedAt == newTimestamp); - assertTrue(answeredInRound == 1); + assertTrue(answeredInRound == 2); } } diff --git a/test/unit/Oval.UniswapAnchoredViewDestinationAdapter.sol b/test/unit/Oval.UniswapAnchoredViewDestinationAdapter.sol index 32453ca..0c7cfcb 100644 --- a/test/unit/Oval.UniswapAnchoredViewDestinationAdapter.sol +++ b/test/unit/Oval.UniswapAnchoredViewDestinationAdapter.sol @@ -73,7 +73,9 @@ contract OvalUniswapAnchoredViewDestinationAdapter is CommonTest { destinationAdapter.setOval(cTokenAddress, OvalAddress); vm.mockCall( - OvalAddress, abi.encodeWithSelector(IOval.internalLatestData.selector), abi.encode(newAnswer, newTimestamp) + OvalAddress, + abi.encodeWithSelector(IOval.internalLatestData.selector), + abi.encode(newAnswer, newTimestamp, 1) ); uint256 underlyingPrice = destinationAdapter.getUnderlyingPrice(cTokenAddress);