Tradinggpt - Audit

CertiK1 address on BNB Chain

CertiK reviewed Tradinggpt (Tradinggpt - Audit) on 22 Jan 2024: 8 findings, 0 critical; 4 acknowledged, 4 open.

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

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings8

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

SeverityOpenAcknowledgedFixed
Critical000
High020
Medium020
Low400
LowMissing Zero Address ValidationOpen

Addresses are not validated before assignment or external calls, potentially allowing the use of zero addresses and leading to unexpected behavior or vulnerabilities. For example, transferring tokens to a zero address can result in a permanent loss of those tokens. ```solidity=1481 poolWallet = _poolWallet; ``` - `_poolWallet` is not zero-checked before being used. --- ```solidity=1482 feeWallet = _feeWallet; ``` - `_feeWallet` is not zero-checked before being used. --- ```solidity=1483 routerAddress = _routerAddress; ``` - `_routerAddress` is not zero-checked before being used. --- ```solidity=1486 uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _usdt); ``` - `_usdt` is not zero-checked before being used. --- ```solidity=1946 poolWallet = wallet; ``` - `wallet` is not zero-checked before being used. --- ```solidity=1950 feeWallet = wallet; ``` - `wallet` is not zero-checked before being used.

LowThird-Party Dependency UsageOpen

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 assumes 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=1472 IUniswapV2Router02 public immutable uniswapV2Router; ``` - The contract `TradingGPT` interacts with third party contract with `IUniswapV2Router02` interface via `uniswapV2Router`.

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

The return values of the `transfer()` and `transferFrom()` calls in the smart contract are not checked. Some ERC-20 tokens' transfer functions return no values, while others return a bool value, they should be handled with care. If a function returns `false` instead of reverting upon failure, an unchecked failed transfer could be mistakenly considered successful in the contract. ```solidity=1968 IERC20(_tokenAddress).transfer(receiveWallet, value); ```

LowUnnecessary Use of SafeMathOpen

The `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=712 library SafeMath { ``` - An implementation of `SafeMath` library is found. --- ```solidity=1449 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `TradingGPT` contract. ```solidity=1572 fee = amount.mul(feeBuy).div(percentage); ``` - `SafeMath.mul` is called in `transfer` function of `TradingGPT` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 15) are shown above.*

Contracts in scope1

AddressChainSource code
0x819266d89504dc4dd3cedb440bff29da083446c0Chain: BNB ChainSource code: Verified source

Part of Tradinggpt’s security record

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