Skip to content

Commit

Permalink
clarify comment in calcReserveAtRatioSwap
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkatsios committed Aug 21, 2024
1 parent 7ee69fd commit 42a4dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/Stable2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit 42a4dbc

Please sign in to comment.