File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
contracts/facilitators/gsm/swapFreezer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ contract OracleSwapFreezer is AutomationCompatibleInterface {
54
54
uint128 unfreezeUpperBound ,
55
55
bool allowUnfreeze
56
56
) {
57
- require (gsm. UNDERLYING_ASSET () == underlyingAsset , 'UNDERLYING_ASSET_MISMATCH ' );
57
+ require (underlyingAsset != address ( 0 ) , 'ZERO_ADDRESS_NOT_VALID ' );
58
58
require (
59
59
_validateBounds (
60
60
freezeLowerBound,
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ contract TestGsmOracleSwapFreezer is TestGhoBase {
26
26
GHO_GSM.grantRole (GSM_SWAP_FREEZER_ROLE, address (swapFreezer));
27
27
}
28
28
29
- function testRevertConstructorInvalidUnderlying () public {
30
- vm.expectRevert ('UNDERLYING_ASSET_MISMATCH ' );
29
+ function testRevertConstructorInvalidZeroAddress () public {
30
+ vm.expectRevert ('ZERO_ADDRESS_NOT_VALID ' );
31
31
new OracleSwapFreezer (
32
32
GHO_GSM,
33
33
address (0 ),
You can’t perform that action at this time.
0 commit comments