In the _handleWethRewardDistribution
we can see that the received weth reward is not split per share.
In the _handleWethRewardDistribution
will call receiveWethReward
passing the whole amount as receivedVaultsWethRewardX18
. However we can see that it will be added to the wethRewardPerVaultShare
without being devided by the total delegated credit to the market:
Here we can see that the whole reward will be added instead of the reward per share. This will result in wrong reward distribution when there is more than one vault which delegated credit to the market.
Wrong reward distribution. The current implementation will try to distribute more reward then there actually is.
Manual Review
receivedVaultsWethRewardX18
should be devided by the totalDelegatedCreditUsd
prior to being added to wethRewardPerVaultShare
for the given market.
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.