Submitted by WatchPug, also found by itsmeSTYJ
CreditLimitByMedian.sol L27-L63
getLockedAmount() is used by UserManager.sol#updateLockedData() to update locked amounts.
The current implementation is wrong and locks every staker for the amount of the borrowed amount or all the vouchingAmount if the vouchingAmount is smaller than the borrowed amount in CreditLimitByMedian model.
The protocol will now lock 100 of each of the 10 stakers, making the total locked amount being 1000.
kingjacob (Union) disputed:
GalloDaSballo (judge) commented:
kingjacob (Union) commented:
kingjacob (Union) commented:
GalloDaSballo (judge) commented:
kingjacob (Union) commented:
GalloDaSballo (judge) commented:
GalloDaSballo (judge) commented:
GalloDaSballo (judge) commented:
GalloDaSballo (judge) commented:
GalloDaSballo (judge) commented:
