The getVaultAccumulatedValues
function fails to multiply the change in WETH rewards by the vault’s share of total delegated credit, resulting in a non‑proportional reward distribution.
The function calculates wethRewardChangeX18 as follows:
The calculation for wethRewardChangeX18 subtracts the last distributed WETH reward per share from the current value without considering the vault's share of the total delegated credit. This omission allows all vaults to receive the full change in WETH rewards, regardless of their actual contribution. Consequently, a single vault could claim the entire WETH reward meant to be distributed proportionally among all vaults. This flaw breaks the security guarantee of fair and proportional reward distribution, leading to potential financial imbalances and dissatisfaction among vault participants.
Medium because it can lead to unauthorized enrichment of individual vaults and disrupt the intended reward distribution mechanism. By failing to distribute rewards proportionally, the system risks financial imbalances and potential exploitation by vaults with smaller credit shares.
Likelihood is medium, since it requires a vault to have a smaller share of the total delegated credit, the absence of proportional distribution makes it feasible for any vault to claim a disproportionate share of the rewards. The risk is higher in systems with multiple vaults and varying credit shares.
An attacker could exploit this vulnerability by operating a vault with a minimal share of the total delegated credit. When the getVaultAccumulatedValues function is called, the vault would receive the full change in WETH rewards, regardless of its actual contribution:
This configuration would result in vault A receiving a disproportionate share of the WETH rewards, disrupting the intended distribution mechanism.
Modify the calculation of wethRewardChangeX18 to incorporate the vault’s credit share. For example:
This correction ensures that each vault receives a reward proportional to its contribution, preserving the intended economic balance.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.