We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71d823 commit 2d9afdaCopy full SHA for 2d9afda
contracts/protocol/modules/v2/PerpV2BasisTradingModule.sol
@@ -212,6 +212,8 @@ contract PerpV2BasisTradingModule is PerpV2LeverageModuleV2 {
212
nonReentrant
213
onlyManagerAndValidSet(_setToken)
214
{
215
+ if (_notionalFunding == 0) return;
216
+
217
uint256 newSettledFunding = _updateSettledFunding(_setToken);
218
219
uint256 settledFundingInCollateralDecimals = newSettledFunding.fromPreciseUnitToDecimals(collateralDecimals);
0 commit comments