@@ -69,7 +69,7 @@ contract TestPortfolioInvariant is Setup {
6969 inverseCdfQuotient - inverseCdfDifference + int256 (volSqrtYearsWad);
7070 }
7171
72- function test_trading_function () public {
72+ function test_trading_function () public view {
7373 uint256 reserveXPerWad = 0.308537538726 ether ;
7474 uint256 reserveYPerWad = 0.308537538726 ether ;
7575 uint256 strikePriceWad = 1 ether ;
@@ -89,7 +89,7 @@ contract TestPortfolioInvariant is Setup {
8989
9090 /// Sanity check console log. Returns an invariant close to 0.
9191 /// The result is about 1e-7.
92- function test_invariant_initial () public {
92+ function test_invariant_initial () public view {
9393 uint256 reserveXPerWad = 0.308537538726 ether ;
9494 uint256 reserveYPerWad = 0.308537538726 ether ;
9595 uint256 strikePriceWad = 1 ether ;
@@ -442,7 +442,7 @@ contract TestPortfolioInvariant is Setup {
442442 uint256 strikePriceWad ,
443443 uint256 volatilityWad ,
444444 uint256 timeRemainingSec
445- ) internal returns (uint256 , uint256 , uint256 , uint256 , uint256 ) {
445+ ) internal view returns (uint256 , uint256 , uint256 , uint256 , uint256 ) {
446446 // Need to make sure to bound the arguments to values that will be used.
447447 // min x + min delta <= x <= max - delta + min x - 1
448448 reserveXPerWad = bound (
@@ -510,7 +510,7 @@ contract TestPortfolioInvariant is Setup {
510510 uint256 timeRemainingSec ,
511511 int256 previousResult ,
512512 int256 result
513- ) internal {
513+ ) internal view {
514514 uint256 postReserve = applyDeltaToX
515515 ? uint256 (int256 (reserveXPerWad) + delta)
516516 : uint256 (int256 (reserveYPerWad) + delta);
0 commit comments