We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb7a0e commit 666833aCopy full SHA for 666833a
contracts/UFragmentsPolicy.sol
@@ -385,11 +385,12 @@ contract UFragmentsPolicy is Ownable {
385
maxSupplyInHistory = epochSupply;
386
}
387
388
- int256 allowedSupplyMinimum = maxSupplyInHistory
+ int256 allowedMin = maxSupplyInHistory
389
.mul(ONE.sub(tolerableDeclinePercentage))
390
.div(ONE);
391
- newSupply = (newSupply > allowedSupplyMinimum) ? newSupply : allowedSupplyMinimum;
392
- require(newSupply <= currentSupply);
+ if (newSupply < allowedMin) {
+ newSupply = allowedMin;
393
+ }
394
395
396
return newSupply.sub(currentSupply);
0 commit comments