Hunt prep
Before you test Debita Finance V3
What 27 disclosed reports say about Debita Finance V3: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 18 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Mixed Token Price Will Be Inflated or Deflated
The protocol team fixed this issue by replacing `decimalsToken1` with `decimalsToken0` in the price calculation.
Disclosed
-
Lend offer can be deleted multiple times
The protocol team fixed this issue by setting isActive to false when deleting the lend order.
Disclosed
-
The precision loss in the fee percentage for connecting offers results in the borrower paying less than the expected fee
The protocol team fixed this issue in the referenced PRs/commits.
Disclosed
-
Interest paid for non perpetual loan during loan extension is lost when the borrower repays debt
The payDebt function should add the new interest to interestToClaim rather than overwrite it; the protocol team fixed this issue.
Disclosed
-
Borrower can obtain principle tokens without paying collateral tokens
The issue was fixed by adding a check that the calculated collateral is greater than zero.
Disclosed
-
DebitaIncentives::updateFunds will exit prematurely and not update whitelisted pairs causing loss of funds to lenders and borrowers
The return statement should be changed to continue so that only the invalid pair is skipped and subsequent valid pairs are processed.
Disclosed
-
No one can sell `TaxTokensReceipts` NFT receipt to the buy order
The transferFrom function should also allow transfers where the sender or receiver is a legitimate buy order contract.
Disclosed
-
The fee calculation in extendLoan function has a error
The fee calculation should use the extended duration (deadline minus start time) instead of the absolute deadline; the protocol team fixed this issue in a commit.
Disclosed
-
Lender may loose part of the interest he has accrued if he makes his lend offer perpetual after a loan has been extended by the borrower
The protocol team fixed this issue in a pull request.
Disclosed
-
After the buyOrder is completed, the order creator does not receive the NFT
The buy order contract should transfer the NFT to the order creator after the sale is completed; the text states the protocol team fixed this issue.
Disclosed
-
An attacker can wipe the orderbook in buyOrderFactory.sol
The protocol team fixed this issue by applying reentrancy protection to the sellNFT function.
Disclosed
-
Borrowers can not extend loans which has maximum duration less than 24 hours
The protocol team fixed this issue by changing the lower bound for the maximum deadline fee from the daily fee to the minimum fee.
Disclosed
-
Nobody can buy the `TaxTokenReceipt` NFT from auction
The protocol team fixed this issue in a PR/commit.
Disclosed
-
Incorrect calculation of extended loan days leads to unfair borrower fees
The fee should be calculated using the actual extended days (nextDeadline() - m_loan.startedAt) instead of offer.maxDeadline.
Disclosed
-
Attacker will prevent lenders from canceling lend orders and block non-perpetual lend orders matching
The protocol team fixed this issue by adding an isActive check in both cancelOffer and addFunds.
Disclosed