Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33771f3

Browse files
committed
Remove comments
1 parent bdfd96b commit 33771f3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

contracts/UFragmentsPolicy.sol

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -345,23 +345,12 @@ contract UFragmentsPolicy is Ownable {
345345

346346
// Determine growth and bounds based on positive or negative rebase
347347
int256 rebasePercentage;
348-
349348
if (normalizedRate >= ONE) {
350349
rebasePercentage = computeRebasePercentage(normalizedRate, -rebaseFunctionUpperPercentage, rebaseFunctionUpperPercentage, rebaseFunctionPositiveGrowth);
351350
} else {
352351
rebasePercentage = computeRebasePercentage(normalizedRate, rebaseFunctionLowerPercentage, -rebaseFunctionLowerPercentage, rebaseFunctionNegativeGrowth);
353352
}
354-
// int256 growth = normalizedRate >= ONE
355-
// ? rebaseFunctionPositiveGrowth
356-
// : rebaseFunctionNegativeGrowth;
357-
// int256 lower = normalizedRate >= ONE
358-
// ? -rebaseFunctionUpperPercentage
359-
// : rebaseFunctionLowerPercentage;
360-
// int256 upper = normalizedRate >= ONE
361-
// ? rebaseFunctionUpperPercentage
362-
// : -rebaseFunctionLowerPercentage;
363-
364-
// int256 rebasePercentage = computeRebasePercentage(normalizedRate, lower, upper, growth);
353+
365354
return uFrags.totalSupply().toInt256Safe().mul(rebasePercentage).div(ONE);
366355
}
367356

0 commit comments

Comments
 (0)