bug fix: error update release amount

This commit is contained in:
CounterFire2023 2024-09-08 09:47:12 +08:00
parent a3691fe201
commit f82f601cff

View File

@ -119,7 +119,7 @@ contract CECDistributor is ReentrancyGuard, Pausable, Ownable, Governable {
address _user = _msgSender();
uint256 amount = calcClaimAmount(_user);
if (amount > 0) {
releasedMap[_user] = amount;
releasedMap[_user] = releasedMap[_user] + amount;
cecToken.safeTransfer(to, amount);
emit EventCECClaimed(_user, to, amount);
}