From 00e7e4b5676601d3fd5a78f918d2729eff65b64c Mon Sep 17 00:00:00 2001 From: belactriple9 <51460755+belactriple9@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:07:55 -0400 Subject: [PATCH] add virtual modifier --- contracts/oracles/SolidlyOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/oracles/SolidlyOracle.sol b/contracts/oracles/SolidlyOracle.sol index d1daf8a..8865d8d 100644 --- a/contracts/oracles/SolidlyOracle.sol +++ b/contracts/oracles/SolidlyOracle.sol @@ -103,7 +103,7 @@ contract SolidlyOracle is IOracle { ))))); } - function _getBalances(IERC20 srcToken, IERC20 dstToken, bool stable) internal view returns (uint256 srcBalance, uint256 dstBalance) { + function _getBalances(IERC20 srcToken, IERC20 dstToken, bool stable) internal virtual view returns (uint256 srcBalance, uint256 dstBalance) { (IERC20 token0, IERC20 token1) = srcToken < dstToken ? (srcToken, dstToken) : (dstToken, srcToken); (bool success, bytes memory data) = _pairFor(token0, token1, stable).staticcall(abi.encodeWithSelector(IUniswapV2Pair.getReserves.selector)); if (success && data.length == 96) {