User can buy a loan for free without owning a pool.
User calls buyLoan(…) function to buy a auctioned loan.
It requires user pass a poolId and the loan debt will be deducted from the pool's balance:
Then user will own the loan:
However, it does not check if caller owns the pool and anyone can buy the loan without paying the debt.
Please see the tests:
User can buy loan for free;
Pool lender suffers a loss.
Manual Review
When user buys a loan, it should check if the caller owns the pool.
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.