CertiK reviewed Tradinggpt (Tradinggpt - Audit) on 22 Jan 2024: 8 findings, 0 critical; 4 acknowledged, 4 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 | 2 | 0 |
| Medium | 0 | 2 | 0 |
| Low | 4 | 0 | 0 |
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.
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`.
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); ```
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.*
| Address | Chain | Source code |
|---|---|---|
| 0x8192…46c00x819266d89504dc4dd3cedb440bff29da083446c0 | Chain: BNB Chain | Source code: Verified source |
1,045 projects reviewed · 1,376 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