Skip to content

Commit

Permalink
fix bug included in last core update
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilz committed Jul 27, 2023
1 parent 2a3d6b7 commit 1294918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/hooks/examples/VolatilityOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract VolatilityOracle is BaseHook, IDynamicFeeManager {
}

function beforeInitialize(address, PoolKey calldata key, uint160) external pure override returns (bytes4) {
if (key.fee.isDynamicFee()) revert MustUseDynamicFee();
if (!key.fee.isDynamicFee()) revert MustUseDynamicFee();
return VolatilityOracle.beforeInitialize.selector;
}
}

0 comments on commit 1294918

Please sign in to comment.