As of 3 Nov 2026, Masa has 2 audit reports by 1 security firm on Trustblock; the latest is by CertiK, dated 7 May 2024. Those reports list no open critical findings.
Record last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.
Newest first
| Audit | Security firm | Date | Scope | Critical findings | Report |
|---|---|---|---|---|---|
| Masa - Staking #1 | Security firm: CertiK | Date: | Scope: Files named in the report | 1 critical finding, fixed | Open · skynet.certik.com |
| Masa - Token #1 | Security firm: CertiK | Date: | Scope: Files named in the report | No open critical findings | Open · skynet.certik.com |
Statuses are the security firm’s own, from each report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 1 |
| High | 3 | 1 | 0 |
| Medium | 0 | 0 | 2 |
| Low | 0 | 0 | 4 |
The function `rescueERC20Token` can be used by any address with the `DEFAULT_ADMIN_ROLE` role to transfer tokens from the contract. This includes the staking and reward token `masaToken`. As such, this privileged role is able to steal users' stakes and rewards.
Open the reportThe variable `blockTime` is meant to denote the amount of time between blocks and is used to determine the number of blocks a staking period is for. ```solidity=351 uint256 stakingPeriodBlocks = (stakeData.period * 30 days) / blockTime; ``` However, `blockTime` can be changed by `setBlockTime`, which can lead to inaccurate staking periods. For example, suppose the staking period is 1, i.e. 30 days, and the starting `blockTime` is 1 day. Then after 15 blocks, half of the staking period, which is 15 days, have elapsed. However, if after these 15 days `blockTime` is updated to 2 days, the staking period would be considered over, since each of the 15 blocks that have **already** elapsed are now considered as 2 days each, for a total of 30 days. This allows a user to unstake earlier than the 30 days staking period. Similarly, decreasing the `blockTime` part way through a stake would increase the amount of time required to unstake.
Open the reportThere is currently no guarantee of rewards for stakers. Since the staking token and reward token are the same, there is a possibility that rewards are paid by stakers, leading to a ponzi-scheme.
Open the reportDocumentation and comments for the staking contract state that there are three specialized roles: - `DEFAULT_ADMIN_ROLE` - `PAUSER_ROLE` - `INTEREST_RATE_ROLE` However, only the `DEFAULT_ADMIN_ROLE` role is currently implemented.
Open the reportPerforming division by zero would raise an error and revert the transaction. ```solidity=325 uint256 elapsedFraction = (blocksElapsed * 1e18) / periodInBlocks; // Multiply by 1e18 for precision ``` The expression `(blocksElapsed * 1e18) / periodInBlocks` may divide by zero.
Open the reportThe following functions access storage variables without writing to them: - `getUserStake` - `getUserStakesWithInterest` - `canWithdrawStake` Since storage reads are much more expensive than memory reads, it would be more efficient to use `memory` instead of `storage`.
Open the reportSince the value `initialSupply` has been set to zero, the `constructor` of the contract `MasaToken` performs an unnecessary minting operation. In particular, it will try to mint zero tokens to the `_delegate`: ```solidity=33 uint256 initialSupply = 0; _mint(_delegate, initialSupply); ```
Open the reportThe reports name a repository or files. Open a report to see its scope.
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="masa"></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