52327 sc low unfair yield distribution due to last holder bias
Description
Summary
Details
if (holderCount > 0) {
address lastHolder = $.holders.at(lastProcessedIndex);
if (_isYieldAllowed(lastHolder)) {
uint256 lastShare = amount - distributedSum;
if (lastShare > 0) {
yToken.safeTransfer(lastHolder, lastShare);
distributedSum += lastShare;
}
}
}Impact details
Objection: transfers can be restricted by admin
Proof of Concept
Notes
Previous51122 sc low arctokenpurchase enabletoken can reset the amountsold to 0Next51842 sc high unclaimed staker rewards lost when admin clears validator records without checking pending rewards
Was this helpful?