```\nmodifier onlyWhenUnderlyingsReceived(uint256 _vaultNumber) {\n  require(\n    vaultStage[_vaultNumber].underlyingReceived == vaultStage[_vaultNumber].activeVaults,\n    "Not all underlyings received"\n  );\n  _;\n}\n```\n