52303 sc insight incorrect yield distribution event emission
Description
Brief/Intro
Vulnerability Details
uint256 share = (totalAmount * holderBalance) / effectiveTotalSupply;
if (share > 0) {
yToken.safeTransfer(holder, share);
amountDistributed += share;
}
...
if (nextIndex == 0) {
emit YieldDistributed(totalAmount, yieldTokenAddr); // <-- incorrect
}Impact Details
References
Proof of Concept
Previous50027 sc insight missing validation of okx swap output token in function okxhelper Next51814 sc insight checkpoint cumulativeindex returned in the getrewardratecheckpoint function will be zero
Was this helpful?