Closed code423n4 closed 3 years ago
Not able to confirm this behavior.
If this is in regards to the CreditLimitByMedian
locking up the same amount for each user then this is the expected behaviour for that credit model. We don't actually use that credit model anymore in favour of SumOfTrust
.
I don't fully understand what the warden was trying to convey
In the absence of enough evidence I'll have to set this as well as 50 as invalid
Will review tomorrow to see if I can figure this out
After thinking about it, and seeing other findings, this is a duplicate of #81
As in 81 the warden identified that the protocol will lock N * X funds to cover for a borrow
Duplicate of #81
Since #81 was downgraded to medium, this also get's rated medium
Handle
itsmeSTYJ
Vulnerability details
Impact
The function
updateLockedData()
callscreditLimitModel.getLockedAmount()
which is executed in a for loop withamount
passed as an argument. This means that all stakers that are staking on behalf of the borrower are asked to lockamount
. If I wanted to lock only 10 DAI and I had 5 stakers staking for me, all of them (if they have sufficient balance) will be asked to lock 10 DAI.Recommended Mitigation Steps
I added my comments where relevant