recalculateVaultsCreditCapacity
will not distribute the weth reward correctly when one market is connected to more than one vault
The root cause of this issue is that getVaultAccumulatedValues will not return the accumulated reward for the individual vault. Instead it will only return the reward per share:
Here we can see that the whole weth reward for the market will be returned. This is incorrect because the vault will only be entitled to a portion of this value. As a result there will be insolvency since there will not be enough rewards to cover for all the requests from the vault.
Wrong reward distribution will allocate more reward then there actually is.
Manual Review
Get the specific vault reward allocation
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.