Users will not be able to decreasePosition if they only invest 1 type of token, with a higher chance being TST since it accrues rewards. In this case, user have to deposit 1 sEURO and wait 1 day again, which in the crypto nature, lots of things can happen within 24 hour period. This means that if TST or sEURO token crashes, and the user is not able to withdraw, she will lose the value.
Let say that Alice deposit 100 TST into the LiquidationPool, with 0 sEURO. After 1 day, she decreasePosition, which she cannot do so since she did not deposit sEURO tokens.
User not able to decrease position and withdraw if only deposit with either TST or sEURO token.
Ensure that in the LiquidationPool::increasePosition and LiquidationPool::decreasePosition set amount to be equal and require both tokens to be deposited without allowing user to choose to deposit vary amount of each type of token.
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.