Bitgain has 1 public audit report from CertiK; dated 13 Sep 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Statuses are the security firms’ own
9 findings are still open or acknowledged in the firms’ reports: 2 high, 7 low (7 open, 2 acknowledged).
Centralization Risks in StandardToken.sol
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Initial Token Distribution
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Check Allowance Before Transfer
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Commented Out Code
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Missing input validation for `amount`
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Missing Zero Address Validation
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Pull-Over-Push Pattern
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Unnecessary Use of SafeMath
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Usage of `transfer` for Sending Native Tokens
Bitgain · CertiK · 13 Sep 2023 · Report ↗
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| Bitgain | Security firm: CertiK | Date: | Scope: 1 address on BNB Chain | None open | Findings: 2 high · 7 low 2 acknowledged · 7 open | skynet.certik.com ↗ |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 2 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 7 | 0 | 0 |
In the function `transferFrom()`, the function transfers tokens before checking if the message sender has enough of an allowance. ```solidity=541 _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "TOKEN20: transfer amount exceeds allowance")); ``` It would be better to validate the allowance first to reduce gas costs in case it reverts.
Open the reportCommented out code is redundant and can be misleading.
Open the reportThe mentioned functions lack the zero check for the parameter `amount`. When `amount == 0`, these functions won't make any changes in the contract.
Open the reportAddresses 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=477 payable(serviceFeeReceiver_).transfer(serviceFee_); ``` - `serviceFeeReceiver_` is not zero-checked before being used.
Open the reportThe contract `StandardToken` inherits functionalities from the `Ownable` contract such as the `transferOwnership()` that allows setting the new `owner` without guaranteeing the designated account is able to actuate transactions on-chain.
Open the reportThe `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.
Open the reportIt is not recommended to use Solidity's `transfer()` and `send()` functions for transferring native tokens, since some contracts may not be able to receive the funds. Those functions forward only a fixed amount of gas (2300 specifically) and the receiving contracts may run out of gas before finishing the transfer. Also, EVM instructions' gas costs may increase in the future. Thus, some contracts that can receive now may stop working in the future due to the gas limitation. ```solidity=477 payable(serviceFeeReceiver_).transfer(serviceFee_); ``` - `StandardToken.constructor` uses `transfer()`.
Open the report| Address | Chain | Source code |
|---|---|---|
| 0x957f…b7d10x957fa93b3e131229305bad9a9a4a280b30fab7d1 | Chain: BNB Chain | Source code: Verified source |
Trustblock holds 1 public audit report for Bitgain, dated 13 Sep 2023. The latest is by CertiK (“Bitgain”).
CertiK wrote the report Trustblock holds for Bitgain.
9 findings are still open or acknowledged in the firms’ reports: 2 high, 7 low (7 open, 2 acknowledged). No critical finding is reported. Statuses are the security firms’ own.
Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.
Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.
<head><script src="https://widget.trustblock.run/project-widget.min.js" defer></script></head><body><divdata-tb-project-widgetdata-tb-project-slug="bitgain"></div></body>
Paste the code where the label should appear. It uses no API credit and updates by itself.
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