From 42a4dbc84fc0040f67f9184f5e363319e78845ae Mon Sep 17 00:00:00 2001 From: nickkatsios Date: Wed, 21 Aug 2024 17:25:58 +0300 Subject: [PATCH] clarify comment in calcReserveAtRatioSwap --- src/functions/Stable2.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/Stable2.sol b/src/functions/Stable2.sol index 884f324..f7ebb33 100644 --- a/src/functions/Stable2.sol +++ b/src/functions/Stable2.sol @@ -245,7 +245,7 @@ contract Stable2 is ProportionalLPToken2, IBeanstalkWellFunction { pd.currentPrice = pd.newPrice; - // check if new price is within 1 of target price: + // check if new price is within PRICE_THRESHOLD: if (pd.currentPrice > pd.targetPrice) { if (pd.currentPrice - pd.targetPrice <= PRICE_THRESHOLD) { return scaledReserves[j] / (10 ** (18 - decimals[j]));