A bug exists in the getVaultAccumulatedValues
function where the WETH reward change is calculated without accounting for the vault's credit share. This results in an unfair distribution of WETH rewards, as the vault's share of the total delegated credit is not applied to the reward calculation.
The bug is in the getVaultAccumulatedValues
function:
The WETH reward change should be calculated as:
The WETH reward change is calculated as:
The vault's credit share (vaultCreditShareX18
) is not multiplied, leading to incorrect reward distribution.
The bug undermines the fairness and integrity of the reward distribution mechanism
Manual Code Review: The bug was identified through a detailed review of the getVaultAccumulatedValues
function.
Update the WETH reward calculation to account for the vault's credit share:
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.