There is no minimum amount by which user can increase a position. User could increase position even on 1.
When user want increase position, he call LiquidationPool.increasePosition() and this function push struct with information about new future position in to pendingStakes array. User could add big amount of new pending stakes, in pendingStakes array become so big, that cause out of gas, when new user will call increasePosition(), because this function call internal function consolidatePendingStakes, which iterate through pendingStakes array.
This could cause a problem throughout contract if there are a high number of pending stakes. Next user could not increase own position, because tx will revert with reason out of gas.
Manual review
Add 2 variables, which will contain min value of tst and euros for increasing position.
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.