Open c4-bot-6 opened 8 months ago
gzeon-c4 marked the issue as sufficient quality report
gzeon-c4 marked the issue as primary issue
not out of spec, feature request
gzeon-c4 marked the issue as duplicate of #253
JustDravee marked the issue as unsatisfactory: Invalid
JustDravee changed the severity to QA (Quality Assurance)
JustDravee marked the issue as grade-b
Lines of code
https://github.com/code-423n4/2024-02-spectra/blob/383202d0b84985122fe1ba53cfbbb68f18ba3986/src/tokens/PrincipalToken.sol#L369-L374
Vulnerability details
Impact
Users may get Yield rewards less than they should
Proof of Concept
EIP-4626 mention that :
This does not apply to the
claimYield
function, this has the potential that when a user claims a rewards yield, the claimed yield may less than what it should be. The code below :Slippage protection should be applied here as in the main function of Redeem so that the assets received by the user are as they should be.
Tools Used
Manual review
Recommended Mitigation Steps
Assessed type
ERC4626