The updateVaultAndCreditDelegationWeight()
function incorrectly sets the same weight value for all connected markets, causing market's totalDelegatedCreditUsd
to be overestimated.
The issue occurs in updateVaultAndCreditDelegationWeight()
where it assigns the same newWeight
value to all connected markets:
This leads to creditDelegationShareX18
always evaluating to 1 in _updateCreditDelegations()
, causing each market to receive the full credit amount:
Markets receive more delegated credit than intended since totalDelegatedCreditUsd
is overestimated, affecting withdrawal limits and profit calculations.
Modify updateVaultAndCreditDelegationWeight()
to properly distribute weights among connected markets based on their individual credit delegation shares.
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.