Skip to content

Commit

Permalink
add virtual modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
belactriple9 committed Sep 18, 2024
1 parent 9f6e1b1 commit 00e7e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/oracles/SolidlyOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 00e7e4b

Please sign in to comment.