```\nfunction deposit(\n  GMXTypes.Store storage self,\n  GMXTypes.DepositParams memory dp,\n  bool isNative\n) external {\n  // Sweep any tokenA/B in vault to the temporary trove for future compouding and to prevent\n  // it from being considered as part of depositor's assets\n  if (self.tokenA.balanceOf(address(this)) > 0) {\n    self.tokenA.safeTransfer(self.trove, self.tokenA.balanceOf(address(this)));\n  }\n  if (self.tokenB.balanceOf(address(this)) > 0) {\n    self.tokenB.safeTransfer(self.trove, self.tokenB.balanceOf(address(this)));\n  }\n // rest of code\n}\n```\n