BlockSafe

BlockSafe Smart Contract Audit Report

Share
Share
EthereumEthereum
DeFi Staking
EthereumEthereum
DeFi Staking

QuillAudits audited the BlockSafe smart contracts on Ethereum between Dec 19, 2023 and Dec 25, 2023. The audit found 3 issues: 3 low, of which 0 resolved and 3 acknowledged.

Project Description

A staking contract for users to stake and unstake their $WAIT token in a fixed period of time

Timeline

S1
Dec 19, 2023
S2
Dec 25, 2023

Scope of Audit

The Scope of the Audit was to analyse Blocksafe Contract for Security and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
99.7%
AUDIT SCORE
icon

High

Medium

Low

Informational

open0000
acknowledged0030
partially resolved0000
resolved0000

Low Severity Issues

Custom Errors

Acknowledged
arrow-right
Description


The contract uses require statement for validating states, it is recommended to use custom errors instead to reduce gas costs for returning long strings. They are usually cheaper than string reverts.

Contract

WaitStaking

Recommendation

Use Custom error wherever possible

Check-effect-interaction pattern

Acknowledged
arrow-right
Description

The function stake() uses a transferFrom call before updating the states which violates solidity’s recommended check-effect-interaction pattern, as shown below. As wait token is not in scope, it is assumed as an external call and hence it should be called at the end of function.

Contract

WaitStaking

Recommendation

Call transfer from after updating stakingInfos states.

Rewards are reset without any record on-chain

Acknowledged
arrow-right
Description

As per the contract architecture, rewards are accumulated in the contract for the whole staking period and stored in `accumulatedRewards` at a constant rate. When the stake period ends, the tokens staked are sent back to the user and the reward details are reset. (Similar flow in restake function). This leaves reward details untracked in the contract as well as on block chain as it is not emitted anywhere.

Contract

WaitStaking

Recommendation

It is recommended to emit an event to help user track the rewards.

Appendix

Disclaimer

BlockSafe

BlockSafe

Low Severity Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC