GRQ V2

GRQ V2 Smart Contract Audit Report

Share
Share
BeraChainBeraChain
DeFiDeFi Staking
BeraChainBeraChain
DeFiDeFi Staking

QuillAudits audited the GRQ V2 smart contracts on BeraChain between Apr 16, 2025 and Apr 21, 2025. The audit found 7 issues: 3 high, 3 medium, 1 informational, of which 6 resolved and 1 acknowledged.

Project Description

GenesisRewardPool smart contract implements a short-term (7-day) staking mechanism to bootstrap the ini tial supply of a token. Users can deposit tokens into various pools to earn rewards, with each pool having configurable al location points and deposit fees. The contract includes fea tures for single or batch deposits/withdrawals, emergency withdrawals, and a claim-all function to collect rewards from multiple pools at once. The operator role has administrative privileges to add/modify pools and recover funds

Timeline

S1
Apr 16, 2025
IA
Apr 24, 2025
S2
Apr 21, 2025

Scope of Audit

The scope of this Audit was to analyze the GRQ Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0001
partially resolved0000
resolved3300

High Severity Issues

Underflow in Reward Debt Calculation After Partial Withdrawals

Resolved
arrow-right
Description

The underflow issue in the reward calculation logic when users perform partial withdrawals. The issue occurs when calculating pending rewards after a user has withdrawn most of their tokens but left a small amount. The small remaining amount combined with the accumulated reward per share can cause an arithmetic underflow in the reward debt calculation. When User performs a partial withdrawal, leaving a very small amount staked The calculation of user.amount * accRewardPerShare / 1e18 becomes smaller than the existing user.rewardDebt

Contract

ShareRewardPool.sol

Recommendation

move the rewardDebt calculation line after updating the user's amount.

Missing Pool Total Stake Update in Emergency Withdrawal

Resolved
arrow-right
Description

The emergencyWithdraw function in ShareRewardPool contract fails to decrease the pool.totalStaked value when users perform emergency withdrawals. This leads to an inconsistent state where the pool's total staked amount does not reflect the actual staked tokens after emergency withdrawals. Which impacts incorrect reward calculations due to inflated totalStaked value.

Contract

ShareRewardPool.sol

Recommendation

Add the missing state update to decrease the pool's totalStaked amount in the emergencyWithdraw function.

Incorrect Reward Debt Calculation in ShareReward Pool's Deposit Function Leads to Excess Rewards

Resolved
arrow-right
Description

In the deposit function of ShareRewardPool.sol, there is an issue that leads to users receiving more rewards than they should. The rewardDebt is calculated using the user's old amount before the new deposit amount is added to their balance. This incorrect sequencing results in users being able to claim more rewards than they have actually earned

Contract

ShareRewardPool.sol

Recommendation

The rewardDebt should be calculated after updating the user's amount to ensure it accurately reflects the new deposit.

Medium Severity Issues

Informational Issues

Appendix

Disclaimer

GRQ V2

GRQ V2

High Severity Issues
Medium Severity Issues
Informational 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