BonusBlock

Resonance SecurityCode version: not recorded (see the report)

Resonance Security reviewed Block Agent (BonusBlock) on 11 Apr 2024: 5 findings, 1 critical; all marked fixed.

1 critical finding, fixed
Open the reportOpen Block Agent’s security record
Report stored on IPFS. Content hash QmcSEJQaGQwPNRBA5LEs88AhocUM9t9jxQ6oBPcmCXPSFf

Trustblock does not review code.

Findings11

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

SeverityOpenAcknowledgedFixed
Critical001
High001
Medium002
Low001

Marked Info by the firm. Not counted as findings.

InfoMissing Usage Of ERC165 StandardAcknowledged

It was observed that the Bonusblock contracts do not leverage ERC165 standard. Using ERC165 assures that a contract deployed to a given address implements expected functionalities. It also indirectly performs a check for zero-address. Using ERC165 is not a requirement for a contract to be implemented correctly, however using it limits the impact of a human error during contract's configuration and it is considered a good practice.

InfoPossible Reentrancy In safeMint()Acknowledged

The function safeMint() indirectly performs an arbitrary external call through ERC721's _safeMint(), and does not follow the Checks-Effects-Interactions pattern nor does it implement verification mechanisms against reentrancy, such as OpenZeppelin's ReentrancyGuard.While it does not present an immediate security threat as it is, when further functionality is introduced, possible reentrancy scenarios may occur that may ultimately lead to financial loss on the protocol.

InfoRedundant Code On verifySignature()Acknowledged

It was observed that both RewardsBank and MyToken ERC721 contract implement a verifySignature function. The logic of these functions is the same in both contracts. In consequence, both contracts contain this functionality, which makes them more expensive to deploy and operate. Although it is not a security vulnerability, it is considered a best practice for code quality and gas optimization to keep the shared functionalities in a library so that it is only deployed once on-chain and code can be reused.

InfoFloating PragmaFixed

Floating pragmas is a feature of Solidity that allows developers to specify a range of compiler versions that can be used to compile the smart contract code. For security purposes specifically, the usage of floating pragmas is discouraged and not recommended. Contracts should be compiled and deployed with a strict pragma, the one which was thoroughly tested the most by developers. Locking the pragma helps ensure that contracts do not accidentally get deployed using too old or too recent compiler versions that might introduce security issues that impact the contract negatively.It should be noted however that, pragma statements can be allowed to float when a contract is intended for consumption by other developers, as in the case with contracts in a library or EthPM package.The smart contracts of Bonusblock's protocol make use of floating pragmas. These are not intended for use as libraries for other developers and, as such, should be locked of their pragma.

InfoUnclaimable Ether Sent To ContractFixed

The constructor of the contract possesses the keyword payable, which means Ether can be sent to the contract during its deployment. However, any sent Ether may not be claimed as there is no implemented functionality that allows it.It should be noted that the severity of this finding has been reduced due to the fact that this may only happen during the deployment of the smart contract and by mistake.

InfoUnused FunctionsFixed

It was observed that the RewardsBank contract defines a calculatePercentage function, however this function is not used anywhere in the contract.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Part of Block Agent’s security record

Block Agent
Audits1 audit by 1 firmLast audit Apr 2024, by Resonance Security.
Critical findingsNo open critical findingsIn that report, 1 critical finding was reported. It is marked fixed by the firm that reported it.
Open Block Agent’s security record

Security firm

Resonance Security

27 projects reviewed · 57 reports · latest Dec 2025

See Resonance Security’s audits

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