busdchain.

CertiK1 address on BNB Chain

CertiK reviewed BUSDChain (busdchain.) on 3 Jan 2023: 17 findings, 0 critical; 4 acknowledged, 13 open.

No open critical findings
Open the reportOpen BUSDChain’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings17

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High020
Medium020
Low1300
Low'wL', 'wMY' and `dfWallets` can not withdraw depoOpen

In the function `withdraw()`, the 'wL', 'wMY' and `dfWallets` can only get the direct and match bonus. However, there is no restriction in the function `deposit()` that these addresses cannot deposit. If they call the function `deposit()`, they will lose the deposit payout.

LowAn extra loop is executedOpen

The loop is to move the data after index j forward, but one more loop is executed. ```solidity=450 for(uint256 k = j; k <= pool_size; k++) { pool_top[k] = pool_top[k + 1]; } ```

Lowdiscussion : the use of the power tokenOpen

From the contract, the power tokens are used as follows: 1. When the users deposit the `busd` token, they can get the five times the power tokens through the function `deposit()` 2. when the users withdraw, the power tokens are sent to the superior as a reward through the function `withdraw()` 3. If the `burnStatus` is true , the owner of the power tokens can burn them through the function `burnPower()` 4. Owner can transfer the power tokens to any address through the function `powerTransfer()` There is no logic related to power tokens in the contract, are the power tokens being used as intended and are there other uses for the power tokens?

LowHardcode AddressOpen

There are many hardcode addresses in this codebase.

LowIncompatibility with Deflationary TokensOpen

When transferring deflationary ERC20 tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee), only 90 tokens actually arrived to the contract. However, a failure to discount such fees may allow the same user to withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f ```solidity=553 token.safeTransferFrom(msg.sender, address(this), _amount); ``` - Transferring tokens by `_amount`. ```solidity=563 _deposit(msg.sender, _amount); ``` - This function call executes the following operation. - In `BUSDChain._deposit`, - `_pollDeposits(_addr, _amount);` - In `BUSDChain._pollDeposits`, - `pool_users_refs_deposits_sum[pool_cycle][upline] += _amount;` - The `_amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees.

LowLoop OptimizationOpen

On the function `withdraw()`, the loop that checks whether the sender is on the `dfWallets` could be more efficient if it aborted the loop once it has found a match.

LowMissing the `whenNotPaused` ModifierOpen

The `withdraw()` function has the `whenNotPaused` modifier which checks that the contract is unpaused. If the owner pauses the contract, the caller can call the `deposit()` function but not the `withdraw()` function. Their tokens will be locked in the contract.

LowMissing Zero Address ValidationOpen

The `_upline` address is missing a check that it is not `address(0)`. If the `address(0)` is in the whitelist, the caller can register the `address(0)` as the upline. The caller considers he is already registered, then he calls the function `deposit()`, but is prompted "You need to register first".

LowPotential Loss of pool bonusOpen

The `wL`, `wMY`, and `dfWallets` can not get the pool bonus because the initial state of the `pool_exclude` is `true`. If the owner sets their status to `false`, then they can get the pool bonus, but the function `withdraw()` does not handle the logic about the pool bonus, so they may lose the pool bonus.

LowPotential whitelist can not withdraw bonuses asOpen

In the function `register()`, the whitelist can become upline without the deposit amount, the whitelist will get the direct and pool bonus when the users call the function `deposit()` or get the match bonus when the users call the function `withdraw()`. Due to the deposit amount being 0, then the max payout is 0. So the whitelist calls the function `withdraw()` will revert because it cannot pass the check on line 598.

Show 3 more
LowThird Party DependencyOpen

The contract is serving as the underlying entity to interact with one or more third party protocols. The scope of the audit treats third party entities as black boxes and assume their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of third parties can possibly create severe impacts, such as increasing fees of third parties, migrating to new LP pools, etc. ```solidity=195 IERC20 token; ``` - The contract `BUSDChain` interacts with third party contract with `IERC20` interface via `token`. --- ```solidity=197 IERC20 power; ``` - The contract `BUSDChain` interacts with third party contract with `IERC20` interface via `power`.

LowUnchecked ERC-20 `transfer()`/`transferFrom()` CaOpen

The return value of the transfer()/transferFrom() call is not checked. ```solidity=865 power.transfer(_addr, _amount); ```

LowWeak PRNGOpen

Weak PRNG due to a modulo on `block.timestamp`, `block.difficulty`, `msg.sender`, `block.coinbase`, `block.number`, `gasLeft` or `blockhash`. These can be influenced by miners to some extent, so they should be avoided. ```solidity=529 _upline = dfWallets[random() % 12]; ```

Contracts in scope1

AddressChainSource code
0xd55bb498716aae08a761077e1a196fd42ce669afChain: BNB ChainSource code: Verified source

Part of BUSDChain’s security record

BUSDChain
Audits1 audit by 1 firmLast audit Jan 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open BUSDChain’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

Something 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