Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Fee Receiver Will Not Always Receive Fee

Summary

In StakingPool::_updateStrategyRewards at the last iteration of receivers array, all of the current balance is send to the fee receiver.

if (feesPaidCount == totalFeeCount - 1) {
transferAndCallFrom(
address(this),
receivers[i][j],
balanceOf(address(this)),
"0x"
);
}

But the problem is the underlying logic will return 0, if balanceOf < 100 and the last receiver will not receive their reward.

Tools Used

Manual review

Recommendations

Consider refactoring the logic, so the last fee receiver to receive their fee.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.