Aquabot

Aquabot Smart Contract Audit Report

Share
Share
SolanaSolana
DeFiPresale
SolanaSolana
DeFiPresale

QuillAudits audited the Aquabot smart contracts on Solana between Aug 25, 2025 and Aug 29, 2025. The audit found 3 issues: 3 low, of which 3 resolved and 0 acknowledged.

Project Description

Aqua Ladder – a tiered participation system where users can contribute SOL tokens within specific constraints (1 to 30 SOL per participant). The ladder consists of 10 predefined levels with varying SOL capacity, and the size of each level grows proportionally to the overall liquidity of the ladder. The random seed generation combines block timestamp and slot number for unpredictability. This seed is then used by a public algorithm that anyone can verify and execute, ensuring a fair and transparent level assignment for each participant. All SOL contributions are transferred to a designated multisig wallet, maintained collectively by team members and strategic partners. 100% of these funds will be deposited as liquidity into a Meteora DLMM pool at launch, ensuring deterministic handling of participant funds and alignment with the protocol’s liquidity goals.

Timeline

S1
Aug 25, 2025
S2
Aug 29, 2025

Scope of Audit

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

Methodology: the QuillAudits smart contract audit process.

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

Critical

High

Medium

Low

Informational

open00000
acknowledged00000
partially resolved00000
resolved00030

Low Severity Issues

Partial requests denied because of over strict check

Resolved
arrow-right
Description

The participate_in_ladder function strictly rejects transactions when a user attempts to participate with an amount that would exceed the maximum allowed participation, instead of accepting a partial amount up to the maximum limit.

In the current implementation, when a user attempts to participate in a ladder with an amount that would exceed the maximum participation limit (`MAXIMUM_PARTICIPATION_SOL`), the transaction is completely rejected with an ExceedsMaximumParticipation error.

Contract

anchor-sc/programs/aqua-ladder-sc/src/instructions/participate_in_ladder.rs

Recommendation

Modify the implementation to accept partial participation amounts when the requested amount would exceed the maximum limit

Sanitisation of resolve_ladder

Resolved
arrow-right
Description

The handle_resolve_ladder function lacks validation checks before resolving a ladder, specifically not verifying if the ladder cap has been reached and not validating that the ladder is not already finished.

The handle_resolve_ladder function is responsible for finalizing a ladder by setting its state to finished and generating a randomized seed for determining results. However, the function proceeds with the resolution process without any preliminary checks to ensure:

1. The ladder cap has been reached, which should be a prerequisite for resolution
2. The ladder is not already finished (`is_ladder_finished` is not already true)

The function currently:
- Generates a random seed using block timestamp and slot
- Sets is_ladder_finished to true
- Records the closing timestamp
- Does not perform any validation checks before proceeding

This allows the admin to potentially resolve a ladder prematurely before the cap is reached or to re-resolve an already finished ladder, which could lead to unexpected behavior or exploitation.

Recommendation

Add the following validation checks at the beginning of the handle_resolve_ladder function

ladder can accept contributions beyond its intended capacity

Resolved
arrow-right
Description

The handle_participate_in_ladder function lacks a check to ensure that the total participation does not exceed the ladder's initial cap (`LADDER_INITIAL_CAP`), allowing users to continue participating even after the cap has been reached.

The handle_participate_in_ladder function performs several validations before allowing a user to participate in the ladder:
- It checks if the ladder is initialized
- It checks if the ladder is not finished
- It verifies that the participation amount is greater than the minimum allowed
- It ensures that a participant's total contribution doesn't exceed the maximum individual participation limit

However, the function does not check if the total liquidity in the ladder (`ladder_information.liquidity_lamports`) plus the new participation amount would exceed the ladder's initial cap (`LADDER_INITIAL_CAP = 2222 * LAMPORTS_PER_SOL`). This oversight allows the ladder to accept contributions beyond its intended capacity.

Contract

anchor-sc/programs/aqua-ladder-sc/src/instructions/participate_in_ladder.rs

Recommendation

Add an explicit check to ensure that the total participation doesn't exceed the ladder's initial cap

Appendix

Disclaimer

Aquabot

Aquabot

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