diff --git a/contracts/test/OracleMainnet.t.sol b/contracts/test/OracleMainnet.t.sol index 3d24700e..e87b05cc 100644 --- a/contracts/test/OracleMainnet.t.sol +++ b/contracts/test/OracleMainnet.t.sol @@ -104,8 +104,6 @@ contract OraclesMainnet is TestAccounts { mockRethToken = new RETHTokenMock(); mockWstethToken = new WSTETHTokenMock(); - - // Record contracts for (uint256 c = 0; c < vars.numCollaterals; c++) { contractsArray.push(result.contractsArray[c]); @@ -349,8 +347,6 @@ contract OraclesMainnet is TestAccounts { assertLt(relativeDelta, 1e16); } - - // // --- Basic actions --- function testOpenTroveWETH() public { @@ -2093,16 +2089,13 @@ contract OraclesMainnet is TestAccounts { // Etch gas guzzler to the LST etchGasGuzzlerMockToRethToken(address(gasGuzzlerToken).code); - // After etching the gas guzzler to the LST, confirm the same call with 500k gas now reverts due to OOG + // After etching the gas guzzler to the LST, confirm the same call with 500k gas now reverts due to OOG vm.expectRevert(MainnetPriceFeedBase.InsufficientGasForExternalCall.selector); // just catch return val to suppress warning (success,) = address(rethPriceFeed).call{gas: 10000}(abi.encodeWithSignature("fetchPrice()")); assertFalse(success); } - - - // - More basic actions tests (adjust, close, etc) // - liq tests (manipulate aggregator stored price) } diff --git a/contracts/test/TestContracts/GasGuzzlerToken.sol b/contracts/test/TestContracts/GasGuzzlerToken.sol index 18ee3e56..ef1cbd60 100644 --- a/contracts/test/TestContracts/GasGuzzlerToken.sol +++ b/contracts/test/TestContracts/GasGuzzlerToken.sol @@ -2,14 +2,12 @@ pragma solidity 0.8.24; - - // Mock token that uses all available gas on exchange rate calls. // This contract code is etched over LST token addresses in mainnet fork tests. // Has exchange rate functions for WSTETH and RETH. contract GasGuzzlerToken { uint256 pointlessStorageVar = 42; - + // RETH exchange rate getter function getExchangeRate() external view returns (uint256) { // Expensive SLOAD loop that hits the block gas limit before completing