diff --git a/src/ReservoirPriceOracle.sol b/src/ReservoirPriceOracle.sol index a4ee409..3111a07 100644 --- a/src/ReservoirPriceOracle.sol +++ b/src/ReservoirPriceOracle.sol @@ -237,7 +237,7 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. lPayoutAmt = block.basefee * rewardGasAmount; } - // does not revert even if transfer fails + // does not revert in any circumstance assembly ("memory-safe") { let result := call(gas(), aRecipient, lPayoutAmt, codesize(), 0x00, codesize(), 0x00) } diff --git a/test/mock/GasBuster.sol b/test/mock/GasBuster.sol index 930c762..a8d8834 100644 --- a/test/mock/GasBuster.sol +++ b/test/mock/GasBuster.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.0; contract GasBuster { // Allow the contract to receive ETH receive() external payable { - while(true) { + while (true) { // This loop will continue until all gas is consumed } }