From 2e79139df1dc95eda0c72b7fce94182eacf0774a Mon Sep 17 00:00:00 2001 From: lychees Date: Sat, 15 Aug 2020 16:10:54 -0700 Subject: [PATCH] Fix the inflation bug. Mentioned in this post: https://medium.com/@yamfinance/save-yam-245598d81cec --- contracts/token/YAM.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/YAM.sol b/contracts/token/YAM.sol index c1db7f6c..44b5c62d 100644 --- a/contracts/token/YAM.sol +++ b/contracts/token/YAM.sol @@ -337,7 +337,7 @@ contract YAMToken is YAMGovernanceToken { } } - totalSupply = initSupply.mul(yamsScalingFactor); + totalSupply = initSupply.mul(yamsScalingFactor).div(BASE); emit Rebase(epoch, prevYamsScalingFactor, yamsScalingFactor); return totalSupply; }