Balance.Fun audit reports

BNB Chainbalance.funX

Balance.Fun has 1 public audit report from CertiK; dated 18 Dec 2024; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical and high findings
No open critical findings; 2 high acknowledged in the firms’ reports
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
balanceSecurity firm: CertiKDate: Scope: Files listedNone openFindings: 3 high · 15 low
4 fixed · 2 acknowledged · 12 open
skynet.certik.com ↗

Open findings across every firm14

Statuses are the security firms’ own

14 findings are still open or acknowledged in the firms’ reports: 2 high, 12 low (12 open, 2 acknowledged).

High
2
Low
12
  • High Acknowledged

    Centralization Related Risks

    balance · CertiK · 18 Dec 2024 · Report ↗

  • High Acknowledged

    Contract Upgrade Centralization Risk

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Concerns on Missing Default Value

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Discussion on Native tokens

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Incompatibility with Deflationary Tokens

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Incompatible with non-standard ERC20 token

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Inconsistent Comment

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Missing Emit Events

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Missing Zero Address Validation

    balance · CertiK · 18 Dec 2024 · Report ↗

  • Low Open

    Potential Inconsistency on topup amount validatio

    balance · CertiK · 18 Dec 2024 · Report ↗

All 14 open and acknowledged findings

Findings18

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

SeverityOpenAcknowledgedFixed
Critical000
High021
Medium000
Low1203
LowConcerns on Missing Default Valuebalance · CertiK · 18 Dec 2024Open

The `m_receiveAddr` is not assigned a default value during initialization which raises a concern: If a whitelist token is set up but the receiver address(`m_receiveAddr`) is not properly configured, users might inadvertently send tokens to the address(0).

Open the report
LowDiscussion on Native tokensbalance · CertiK · 18 Dec 2024Open

Both `TopUpTron` and `TopUpV1` include a `receive()` function to collect native tokens. The concern arises if the team intends to enable native tokens to be whitelisted and uses the contracts themselves as the receiver address. In this case, the payment record may not be updated, and may need further modification on `receive()` function.

Open the report
LowIncompatibility with Deflationary Tokensbalance · CertiK · 18 Dec 2024Open

When transferring deflationary ERC20 tokens, the input amount may not be equal to the received amount due to the charged transaction fee. For example, if a user sends 100 deflationary tokens (with a 10% transaction fee),, only 90 tokens actually arrived to the contract. However, a failure to discount such fees may allow the same user to withdraw 100 tokens from the contract, which causes the contract to lose 10 tokens in such a transaction. Reference: https://thoreum-finance.medium.com/what-exploit-happened-today-for-gocerberus-and-garuda-also-for-lokum-ybear-piggy-caramelswap-3943ee23a39f ```solidity=78 bool bTransRet = erc20_token.transferFrom(msg.sender, m_receiveAddr, topup_amount); ``` - Transferring tokens by `topup_amount`. ```solidity=81 userPopupAmount[msg.sender][erc20_topup_token] += topup_amount; ``` - The `topup_amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees. ```solidity=102 bool bTransRet = erc20_token.transferFrom(msg.sender, m_receiveAddr, topup_amount); ``` - Transferring tokens by `topup_amount`. ```solidity=104 userPopupAmount[msg.sender][erc20_topup_token].add(topup_amount); ``` - This function call executes the following operation. - In `SafeMath.add`, - `return a + b;` - The `topup_amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees.

Open the report
LowIncompatible with non-standard ERC20 tokenbalance · CertiK · 18 Dec 2024Open

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=58 _token.transfer(receiptAddr, withdrawAmount); ``` Non-standard ERC20 token like USDT on Ethereum mainnet, its `transfer` and `transferFrom` functions do not yield a return value. If the input token refers to USDT, any attempt to transfer USDT using these functions will result in a revert. ```solidity=78 bool bTransRet = erc20_token.transferFrom(msg.sender, m_receiveAddr, topup_amount); ```

Open the report
LowInconsistent Commentbalance · CertiK · 18 Dec 2024Open

The linked comments appear to be inconsistent with the implementation.

Open the report
LowMissing Emit Eventsbalance · CertiK · 18 Dec 2024Open

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

Open the report
LowMissing Zero Address Validationbalance · CertiK · 18 Dec 2024Open

The cited address is missing a check that it is not `address(0)` while updating. - `TopUpTron::validToken` - `TopUpTron::m_receiveAddr` - `TopUpV1::validToken` - `TopUpV1::m_receiveAddr`

Open the report
LowPotential Inconsistency on topup amount validatiobalance · CertiK · 18 Dec 2024Open

The payment amount in the Solana contract is subject to a restriction (`MIN_RECHARGE_AMOUNT`), which sets a minimum limit. However, this restriction does not apply to Aptos and Solidity contracts.

Open the report
LowPotential Missing Record Storagebalance · CertiK · 18 Dec 2024Open

Both Aptos and Solana contracts are designed to emit events when users make payments, without requiring additional storage to track user payments as is done in Solidity contracts.

Open the report
LowUnused Dependenciesbalance · CertiK · 18 Dec 2024Open

The linked packages in `TopUpV1` does not being used: - import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; - import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; - import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; - import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableMapUpgradeable.sol";

Open the report
Show 2 more
LowUnused error messagebalance · CertiK · 18 Dec 2024Open

The linked error message "ERR_INVALID_TOKEN_SETTING" does not being used in the current codebase.

Open the report
LowViolation of Check-Effect-Interaction Patternbalance · CertiK · 18 Dec 2024Open

In the function `topup` for both `TopUpTron` and `TopUpV1`, the external calls: - erc20_token.transferFrom are executed before the state variable `userPopupAmount` is updated.

Open the report

Contracts1

AddressChainSource code
0x3dc8e2d80b6215a1bccae4d38715c3520581e77cChain: BNB ChainSource code: Verified source

All 1 address and the files the reports name

Balance.Fun: questions

Is Balance.Fun audited?

Trustblock holds 1 public audit report for Balance.Fun, dated 18 Dec 2024. The latest is by CertiK (“balance”).

Who audited Balance.Fun?

CertiK wrote the report Trustblock holds for Balance.Fun.

Are there open findings in Balance.Fun’s audits?

14 findings are still open or acknowledged in the firms’ reports: 2 high, 12 low (12 open, 2 acknowledged). No critical finding is reported. Statuses are the security firms’ own.

Show this on your site

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.

Content

Facts

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.

Fixed as
Language

Style

Layout
Theme
Accent
Corners

Format

Size
Date
Embed as
HTML
<head>
<script src="https://widget.trustblock.run/project-widget.min.js" defer></script>
</head>
<body>
<div
data-tb-project-widget
data-tb-project-slug="balancefun"
></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