In the ReFi::constructor function, 1,000,000 tokens are minted to the owner. Since it neither is mentioned in the description of the protocol nor in the Natspec of the constructor, I assume it is done mistakenly.
It makes a means of fraud for the owner because they can easily swap the ReFi tokens for some other ERC20 token and drain the pool.
Likelihood: Low
Assuming the owner is trustworthy and they care about the continuity of the business, it is less likely to happen.
Impact: High
However, if they decide to do so, it will severly disrupt the protocol's functionality or may even completely wreck it.
Please copy/paste the following test function in the test file, and run it.
To solve the issue, simply remove the _mint function call from the constructor.
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.