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.
Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Report | Security firm | Date | Scope | Critical findings | Findings | Source |
|---|---|---|---|---|---|---|
| balance | Security firm: CertiK | Date: | Scope: Files listed | None open | Findings: 3 high · 15 low 4 fixed · 2 acknowledged · 12 open | skynet.certik.com ↗ |
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).
Centralization Related Risks
balance · CertiK · 18 Dec 2024 · Report ↗
Contract Upgrade Centralization Risk
balance · CertiK · 18 Dec 2024 · Report ↗
Concerns on Missing Default Value
balance · CertiK · 18 Dec 2024 · Report ↗
Discussion on Native tokens
balance · CertiK · 18 Dec 2024 · Report ↗
Incompatibility with Deflationary Tokens
balance · CertiK · 18 Dec 2024 · Report ↗
Incompatible with non-standard ERC20 token
balance · CertiK · 18 Dec 2024 · Report ↗
Inconsistent Comment
balance · CertiK · 18 Dec 2024 · Report ↗
Missing Emit Events
balance · CertiK · 18 Dec 2024 · Report ↗
Missing Zero Address Validation
balance · CertiK · 18 Dec 2024 · Report ↗
Potential Inconsistency on topup amount validatio
balance · CertiK · 18 Dec 2024 · Report ↗
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 2 | 1 |
| Medium | 0 | 0 | 0 |
| Low | 12 | 0 | 3 |
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 reportBoth `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 reportWhen 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 reportThe 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 reportThe linked comments appear to be inconsistent with the implementation.
Open the reportThere should always be events emitted in the sensitive functions that are controlled by centralization roles.
Open the reportThe 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 reportThe 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 reportBoth 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 reportThe 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 reportThe linked error message "ERR_INVALID_TOKEN_SETTING" does not being used in the current codebase.
Open the reportIn 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| Address | Chain | Source code |
|---|---|---|
| 0x3dc8…e77c0x3dc8e2d80b6215a1bccae4d38715c3520581e77c | Chain: BNB Chain | Source code: Verified source |
Trustblock holds 1 public audit report for Balance.Fun, dated 18 Dec 2024. The latest is by CertiK (“balance”).
CertiK wrote the report Trustblock holds for Balance.Fun.
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.
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="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