From 07fc15d8525b06d3e314330e20719a1ee49c400e Mon Sep 17 00:00:00 2001 From: green Date: Thu, 19 Sep 2024 11:42:19 +0200 Subject: [PATCH] feat: potential reentrancy fixed --- .../contracts/src/dollar/core/UbiquityPoolSecurityMonitor.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/src/dollar/core/UbiquityPoolSecurityMonitor.sol b/packages/contracts/src/dollar/core/UbiquityPoolSecurityMonitor.sol index 54ce0c8a4..6e9ff5d2e 100644 --- a/packages/contracts/src/dollar/core/UbiquityPoolSecurityMonitor.sol +++ b/packages/contracts/src/dollar/core/UbiquityPoolSecurityMonitor.sol @@ -92,12 +92,12 @@ contract UbiquityPoolSecurityMonitor is Initializable, UUPSUpgradeable { .div(liquidityVertex); if (liquidityDiffPercentage >= thresholdPercentage) { + monitorPaused = true; // TODO: Pause the UbiquityDollarToken // Pause LibUbiquityPool by disabling collateral _pauseLibUbiquityPool(); - monitorPaused = true; emit MonitorPaused( currentCollateralLiquidity, liquidityDiffPercentage