CertiK reviewed qiibee foundation $QBX (qiibee - Token Sale) on 10 Sep 2024: 6 findings, 1 critical; 3 marked fixed, 1 acknowledged, 2 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 1 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 1 | 0 | 3 |
The `setWinners` function in the `Raffle` contract appears to perform actions that do not align with its name. Instead of setting or recording winners, the function transfers the specified amounts from each winner's balance to the contract owner, which is misleading and can lead to confusion or misuse. ```solidity function setWinners( address[] calldata winners, uint256[] calldata amountList ) external onlyOwner returns (uint256) { require(uint64(block.timestamp) > endTime, "Raffle is still open"); require( winners.length == amountList.length, "Array lengths should match" ); uint256 amountToWithdraw = 0; for (uint16 i = 0; i < winners.length; i++) { amountToWithdraw += amountList[i]; // debit user's amount amounts[winners[i]] -= amountList[i]; } payable(owner()).transfer(amountToWithdraw); return amountToWithdraw; } ```
It is not recommended to use Solidity's `transfer()` and `send()` functions for transferring native tokens, since some contracts may not be able to receive the funds. Those functions forward only a fixed amount of gas (2300 specifically) and the receiving contracts may run out of gas before finishing the transfer. Also, EVM instructions' gas costs may increase in the future. Thus, some contracts that can receive now may stop working in the future due to the gas limitation. ```solidity=77 payable(owner()).transfer(amountToWithdraw); ``` - `Raffle.setWinners` uses `transfer()`.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (1)
1,044 projects reviewed · 1,375 reports · latest May 2025
See CertiK’s auditsSomething wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us