Submitted by WatchPug
CreditLimitByMedian.sol L27-L78
getLockedAmount() is used by UserManager.sol#updateLockedData() to update locked amounts.
Based on the context, at L66, newLockedAmount = array[i].lockedAmount - 1; should be newLockedAmount = array[i].lockedAmount - amount;.
The current implementation is wrong and makes it impossible to unlock lockedAmount in CreditLimitByMedian model.
Change to:
newLockedAmount = array[i].lockedAmount - amount;
kingjacob (Union) acknowledged
GalloDaSballo (judge) commented:
