Skip to content

Commit

Permalink
FeeHandler storage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pahor167 committed Oct 7, 2024
1 parent 5c2738d commit da2025f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/protocol/contracts/common/FeeHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ contract FeeHandler is
uint256 public constant MIN_BURN = 200;

// last day the daily limits were updated
uint256 public _dprecated_lastLimitDay; // deprecated
uint256 public deprecated_lastLimitDay; // deprecated

// TODO try to make this private if it doesn't break storage
// reason it's inverse it's because it used to be burnFraction and was migrated
FixidityLib.Fraction public inverseCarbonFraction; // 80%
FixidityLib.Fraction public deprecated_burnFraction; // 80%

address public carbonFeeBeneficiary;
address public deprecated_feeBeneficiary;

uint256 public celoToBeBurned;

Expand All @@ -90,6 +90,10 @@ contract FeeHandler is
EnumerableSet.AddressSet private otherBeneficiariesAddresses;
mapping(address => uint256) private lastLimitDay; // TODO check storage

address public carbonFeeBeneficiary;

FixidityLib.Fraction private inverseCarbonFraction;

event SoldAndBurnedToken(address token, uint256 value);
event DailyLimitSet(address tokenAddress, uint256 newLimit);
event DailyLimitHit(address token, uint256 burning);
Expand Down

0 comments on commit da2025f

Please sign in to comment.