← All Posts | findings | December 31, 2024

YieldNest – Invalid rate for vaults

Paweł Kuryłowicz

Paweł Kuryłowicz

Managing Partner & Smart Contract Security Auditor

The valuation of vault tokens is inaccurately represented, leading to a decreased
value of the assets held within the MaxVault.

Vulnerability Details

The rate providers for MaxVaults (ynBNBx and ynETHx) have the previewRedeem function to determine the rate for a single strategy token. However, this function includes the withdrawal fee, which results in an incorrect valuation that is lower than the actual value of one token.

Impact

MEDIUM – The valuation of vault tokens is inaccurately represented, leading to a decreased value of the assets held within the MaxVault.

Recommendation

To ensure accurate rate evaluation, utilize the convertToAssets function instead.

References

Join the newsletter now

Please wait...

Thank you for sign up!