Credit delegation weights are incorrectly distributed inside Vault::updateVaultAndCreditDelegationWeight
, causing each market to receive 100% of vault's credit capacity instead of its proper share.
In Vault::updateVaultAndCreditDelegationWeight
it is distributing 100% of the vaults credit capacity to each market instead of splitting the total credit delegation weight equally among the markets as shares:
The document states:
Weight should represent each market's share of total capacity.
Markets all receive 100% of the total credit delegation instead of a equally split share
This effectively duplicates the vault's credit capacity for each market
Foundry
Change it so its equal share and handle any left over to go to the last market to prevent any remainder
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.