Web3 · Smart Contract Audit

Grindery Security Audit

softstack completed a smart contract audit of Grindery's Staking Contracts in February 2025, reporting 5 findings (2 high, 1 medium, 1 low and 1 informational). The full report is published in the softstack public audit archive.

Key facts

Client
Grindery
Completed
Languages
Solidity

About the project

Grindery operates an AI wallet that lets people pay for AI agents and assistants in cryptocurrency on a pay-per-use basis instead of through subscriptions. It connects to existing crypto wallets and tracks the cost of each AI interaction in real time. Grindery also offers a white-label payment layer that developers can embed in AI agents on web, mobile, Telegram or WhatsApp.

Findings

0Critical
2High
1Medium
1Low
1Informational

0 of 5 findings resolved before the final report.

IDTitleSeverityStatus
6.2.1Reward Pool Depletion

The Staking contract has a vulnerability where the reward pool can be depleted, preventing users from claiming their legitimately earned rewards. The issue occurs because: 1.

Highwont-fix
6.2.2Shared Reward Pool Can Be Drained By Short-Term Stakers

The contract stores all rewards in a single pool via `totalRewardPool`, regardless of which lock period the rewards were intended for. The `addRewards()` function adds rewards to this shared pool.

Highwont-fix
6.2.3Missing Lock Period Validation in AddRewards Function

The `addRewards` function in the Staking contract lacks validation for lock periods, allowing rewards to be added for invalid/unconfigured staking periods.

Mediumwont-fix
6.2.4Reward Rate Manipulation

The staking contract contains a vulnerability where the admin can manipulate reward rates for existing stakes through the `updateRewardRate` function.

Lowwont-fix
6.2.5Lack of Slashing Mechanism

The contract implements staking periods with rewards but does not include any penalty mechanism for: 1. Attempted early withdrawals 2. Multiple failed unstaking attempts 3.

Informationalwont-fix

About this engagement

A smart contract audit reviews on-chain code for flaws an attacker could exploit. Engineers trace how assets move through the contracts, check who can call privileged functions, and test the arithmetic, external calls and upgrade paths. Each finding is rated by severity, and fixes are re-checked before the final report.

How softstack runs smart contract audits

Methodology

Review process

  1. Scoping and threat modelling

    The commit hash is frozen and the attack surface is mapped: asset flows, trust assumptions, privileged roles and the external systems the code depends on.

  2. Automated analysis

    Static analysers sweep the full codebase to surface known weakness patterns, unreachable states and deviations from established conventions.

  3. Manual code review

    Independent engineers read the code line by line, concentrating on business logic, access control, arithmetic and the handling of external calls.

  4. Adversarial testing

    Property-based fuzzing and invariant tests attack the assumptions the protocol relies on, targeting states that ordinary unit tests never reach.

  5. Reporting

    Every finding is documented with a severity rating, its impact, the steps to reproduce it and a concrete remediation the team can act on.

  6. Remediation verification

    Submitted fixes are re-reviewed against the original finding, and the final report records the resolved state of each one.

Standards and references

  • SWC RegistrySmart Contract Weakness Classification
  • CWECommon Weakness Enumeration

FAQ

Grindery was audited by softstack GmbH, a German Web3 security and software company based in Flensburg and certified to ISO/IEC 27001 by TÜV SÜD. softstack completed a smart contract audit for Grindery in February 2025. The full report is linked on this page and published in the softstack public audit archive.

The review reported 5 findings: 2 high, 1 medium, 1 low and 1 informational. 0 of 5 were resolved or mitigated before the final report.

This report covers the code as reviewed in February 2025. Any code changed after that point is outside the reviewed scope.

Related audits

Browse all security audits

Disclaimer

This audit represents a point-in-time security assessment of the reviewed codebase and is intended for informational purposes only. While Softstack applies industry-standard security review methodologies, no audit can guarantee the absence of vulnerabilities, bugs, or other security risks. This report does not constitute financial, legal, regulatory, or investment advice, nor does it endorse the project, its business model, products, or services. Security is an ongoing process, and we strongly recommend conducting a new assessment following any material code changes or at least every 6 months to address newly emerging threats, vulnerabilities, and ecosystem developments.