CertiK reviewed Baby Bonk (Babybonk) on 9 Jan 2024: 9 findings, 0 critical; 3 marked fixed, 1 acknowledged, 5 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 | 0 | 0 | 0 |
| High | 0 | 1 | 1 |
| Medium | 0 | 0 | 0 |
| Low | 5 | 0 | 2 |
If `maxWalletLimitEnabled` is true and the wallet (`from`) in the `_isExcludedFromMaxWalletLimit` array transfers `maxWalletAmount + 1` tokens to a normal `to` wallet, the following check will pass. Consequently, the `to` wallet ends up holding a token amount that exceeds the maximum wallet limit. ```solidity=710 if (!_isExcludedFromMaxWalletLimit[from] && !_isExcludedFromMaxWalletLimit[to] && to != uniswapV2Pair ) { ```
A sandwich attack may happen when an attacker observes a transaction swapping tokens or adding liquidity without setting restrictions on slippage or minimum output amount. The attacker can manipulate the exchange rate by frontrunning (executing before the target) a transaction to purchase one of the assets and make profits by backrunning (executing after the target) a transaction to sell the asset.
The contract is serving as the underlying entity to interact with third-party `UniswapV2` protocols. The scope of the audit treats 3rd party entities as black boxes and assumes their functional correctness. However, in the real world, 3rd parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of 3rd parties can possibly create severe impacts, such as increasing fees of 3rd parties, migrating to new LP pools, etc.
```solidity=635 require(tradingEnabled || _isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading not yet enabled!"); ``` Addresses in the `_isExcludedFromFees` array can engage in trading even when `tradingEnabled` is disabled. This is confusing, considering that the array name implies it is meant to be excluded from all fees.
The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.
| Address | Chain | Source code |
|---|---|---|
| 0xbb28…87750xbb2826ab03b6321e170f0558804f2b6488c98775 | Chain: BNB Chain | Source code: Verified source |
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