Open code423n4 opened 3 years ago
cmichel
In PrizePool._updateCreditBalance the CreditBurned event is emitted even if nothing was burned. Not emitting this event when nothing happened can save gas and also seems better semantically.
PrizePool._updateCreditBalance
CreditBurned
https://github.com/pooltogether/pooltogether-pool-contracts/pull/302
Handle
cmichel
Vulnerability details
In
PrizePool._updateCreditBalance
theCreditBurned
event is emitted even if nothing was burned. Not emitting this event when nothing happened can save gas and also seems better semantically.