Grok 1.5 - Audit

CertiK1 address on BNB Chain

CertiK reviewed Grok 1.5 (Grok 1.5 - Audit) on 6 May 2024: 12 findings, 0 critical; 1 marked fixed, 11 open.

No open critical findings
Open Grok 1.5’s security record

The original report was removed from its address (seen 18 Oct 2026).

Trustblock does not review code.

Findings12

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

SeverityOpenAcknowledgedFixed
Critical000
High101
Medium000
Low1000
HighInitial Token DistributionOpen

All of the `Grok1.5` tokens are sent to the contract deployer. This is a centralization risk because the deployer can distribute tokens without obtaining the consensus of the community. Any compromise to these addresses may allow a hacker to steal and sell tokens on the market, resulting in severe damage to the project.

LowDiscussion On The Gas Used In `internalSwap`Open

In the `Grok` contract, once the balance exceeds a certain threshold, some tokens are converted into native tokens and sent to `marketingAddress` and `devWallet`. The call to transfer these native tokens attaches 35,000 gas. ```solidity=432 if(mktAmount > 0) (success,) = marketingAddress.call{value: mktAmount, gas: 35000}(""); if(devAmount > 0) (success,) = devWallet.call{value: devAmount, gas: 35000}(""); ``` Typically, a straightforward native token transfer doesn't require such a large amount of gas. However, if `marketingAddress` and `devWallet` are contracts, the additional gas attached possibly enables them to execute operations within their `receive` function to make a recursive call back to the original function. We hope the team will share their thoughts on the design philosophy behind this part.

LowHardcode AddressOpen

There are some hardcode addresses in this codebase. If not configured properly, this can cause side effects on the contract.

LowLack Of Reverse FunctionsOpen

The `enableTrading` function allows the admin to enable the trading by setting `isTradingEnabled` to true. ```solidity=444 function enableTrading() external onlyOwner { require(!isTradingEnabled, "Trading already enabled"); isTradingEnabled = true; emit _enableTrading(); } ``` However, there is no reverse function to disable the trading by setting `isTradingEnabled` to false. The `changeLpPair` function also has a similar problem. It allows `isLpPair[newPair]` to be set to true, but lacks a corresponding function to revert `isLpPair` to false once a pair has been marked as true. ```solidity=310 function changeLpPair(address newPair) external onlyOwner { isLpPair[newPair] = true; emit _changePair(newPair); } ``` This can lead to issues if the owner accidentally changes the value, potentially impacting the contract's operations.

LowLack of validation for `newPair` AddressOpen

The `changeLpPair` is designed to allow the owner to update the `isLpPair` mapping, making the new LP pair address as true. ```solidity=310 function changeLpPair(address newPair) external onlyOwner { isLpPair[newPair] = true; emit _changePair(newPair); } ``` However, it's worth noting that the function lacks a verification mechanism to confirm the validity of the provided LP pair address as an actual LP pair for the token.

LowNot check the allowanceOpen

The `transferFrom()` reduce the allowance directly without checking the allowance.

LowPotential Sandwich AttacksOpen

A sandwich attack might 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 (before the transaction being attacked) a transaction to purchase one of the assets and make profits by backrunning (after the transaction being attacked) a transaction to sell the asset. The following functions are called without setting restrictions on slippage or minimum output amount, so transactions triggering these functions are vulnerable to sandwich attacks, especially when the input amount is large: - `swapExactTokensForETHSupportingFeeOnTransferTokens()` - `addLiquidityETH()`

LowState Variable Should Be Declared ConstantOpen

State variables that never change should be declared as `constant` to save gas. ```solidity=189 uint256 private buyAllocation = 40; ``` - `buyAllocation` should be declared `constant`. --- ```solidity=190 uint256 private sellAllocation = 40; ``` - `sellAllocation` should be declared `constant`. --- ```solidity=191 uint256 private liquidityAllocation = 20; ``` - `liquidityAllocation` should be declared `constant`.

LowUnused InterfaceOpen

The smart contract contains one or more inteface definitions that are not used, which can lead to unnecessary complexity and reduced maintainability. ```solidity=70 interface IV2Pair { ``` - `IV2Pair` is declared but never used.

LowUnused Return ValueOpen

The smart contract does not check or store the return value of an external call in a local or state variable, which may introduce vulnerabilities due to the unhandled outcome. ```solidity=396 try swapRouter.addLiquidityETH{value: newBalance}( address(this), secondMath, 0, 0, DEAD, block.timestamp ){} catch {return;} ```

Show 1 more
LowVariables That Could Be Declared as ImmutableOpen

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.

Contracts in scope1

AddressChainSource code
0xdf67abeae37266dd6369a5c657cea2c197e64ca4Chain: BNB ChainSource code: Verified source

Part of Grok 1.5’s security record

Grok 1.5
Audits1 audit by 1 firmLast audit May 2024, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Grok 1.5’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