CertiK reviewed Momentum (Momentum - Addendum) on 12 Jul 2023: 19 findings, 0 critical; 14 marked fixed, 4 acknowledged, 1 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 | 3 | 1 |
| Medium | 0 | 1 | 3 |
| Low | 1 | 0 | 10 |
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. ```solidity=355 _stake(odyssey_id, amount, token); ``` - Transferring tokens by `amount`. - This function call executes the following operation. - In `Staking._stake`, - `IERC20(mom_token).safeTransferFrom(payable(msg.sender), address(this), amount);` ```solidity=355 _stake(odyssey_id, amount, token); ``` - This function call executes the following operation. - In `Staking._stake`, - `_do_stake(odyssey_id, amount, token);` - In `Staking._do_stake`, - `staked_by[odyssey_id][index].effective_timestamp_mom = calculate_effective_timestamp(staked_by[odyssey_id][index].timestamp, staked_by[odyssey_id][index].mom_amount, amount, true);` - In `Staking.calculate_effective_timestamp`, - `uint256 amount_diff = current_amount - amount > 0 ? current_amount - amount : 1;` - The `amount` appears to be used for bookkeeping purposes without compensating the potential transfer fees. In this project, the `mom_token` address should be ideally set to the address of deployed `MOMToken` contract which doesn't support transferring fee.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (5)
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