Clique

Clique Smart Contract Audit Report

Share
Share
SuiSui
Infrastructure / Dev ToolingAirDrop & Token LockWhitelisting & Reward Distribution+1
SuiSui
Infrastructure / Dev ToolingAirDrop & Token Lock+2

QuillAudits audited the Clique smart contracts on Sui between Sep 18, 2025 and Sep 29, 2025. The audit found 3 issues: 2 low, 1 informational, of which 2 resolved and 1 acknowledged.

Project Description

Clique Lock Sui is a decentralised airdrop distribution system built on the Sui blockchain that enables projects to distribute tokens to users with customizable fee structures and cryptographic verification. The system supports both simple batch-based distributions and merkle tree-based proofs, allowing administrators to configure fees per batch while users pay fees in designated tokens to claim their allocated airdrops with ECDSA signature validation

Timeline

S1
Sep 18, 2025
IA
Sep 26, 2025
S2
Sep 29, 2025

Scope of Audit

The Scope of the Audit is to analyse the Code Quality ,Security and Correctness of Clique Smart Contract

Methodology: the QuillAudits smart contract audit process.

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

Critical

High

Medium

Low

Informational

open00000
acknowledged00010
partially resolved00000
resolved00011

Low Severity Issues

Missing fee rate validation allows excessive percentage fees exceeding the claimed amount value

Acknowledged
arrow-right
Description

The set_fee_mode function enables project administrators to configure fee modes for specific batch identifiers without validating the fee_rate parameter in Singer Tier fee modes. The function directly stores the provided FeeMode enum variant into the fee_modes table without checking whether the fee_rate exceeds the FEE_RATE_DENOMINATOR constant defined as 1,000,000,000,000,000,000 in sources/fee_mode.move#L16.
However, the fee calculation logic in sources/fee_mode.move#L18-31 computes fees using the formula (amount * fee_rate) / FEE_RATE_DENOMINATOR, where fee_rate values equal to or exceeding FEE_RATE_DENOMINATOR result in percentage fees of 100% or higher. When administrators accidentally or intentionally set fee_rate values above FEE_RATE_DENOMINATOR, users end up paying fees that equal or exceed the value of tokens they claim, creating an economically irrational fee structure where claiming becomes unprofitable.
Consequently, this validation gap enables scenarios where users pay more in fees than the value of airdrop tokens they receive, effectively making the airdrop claiming process economically disadvantageous. Administrative errors such as entering fee rates in incorrect units or adding extra zeros could accidentally create fee rates of 200%, 1000%, or higher, causing users to lose significant value when claiming their allocated tokens.

Contract

sources/base_distributor.move#L193-205

Recommendation

We recommend adding validation in the set_fee_mode function to ensure that fee_rate values in SingerTier fee modes do not exceed FEE_RATE_DENOMINATOR, preventing fee percentages above 100% and maintaining economically reasonable fee structures for airdrop claiming operations.

Missing batch configuration validation enables unintended fee structures in claim processing

Resolved
arrow-right
Description

The claim_check function calculates expected fees by calling self.required_fee(batch_id, amount) without validating whether the provided batch_id has been explicitly configured via set_fee_mode. The function processes claims for any batch_id value provided by users, relying on the required_fee function in lines 215-222, which returns the fee value to 0 if the administrator of the projects forgets to configure a default fee or fee mode for a given batch_id.
This design enables users to successfully claim airdrops using valid signatures while paying fees that may not reflect the intended economic structure for that particular batch, which could be zero if the batch is not configured properly.
Consequently, administrative oversight in fee configuration can lead to unintended economic outcomes where users pay zero fees for specific airdrop batches.

Contract

sources/base_distributor.move#L274-278

Recommendation

We recommend adding explicit validation in the claim_check function to verify that the batch_id has been configured via set_fee_mode before processing claims, ensuring that only intentionally configured batch identifiers can be used for airdrop distribution and preventing accidental fee structure deviations.

Informational Issues

Appendix

Disclaimer

Clique

Clique

Low 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