
Join 1500+ leaders who secured themselves from losing Billion Dollars



Almanak is a DeFi protocol combining AI-driven automation with secure tokenomics and governance.
It features a Merkle-based airdrop with claim or claim-and-stake options, where staking commitments are pre-defined. A time-decaying slashing model incentivises long-term participation—staked tokens remain slash-free, while unstaked tokens face decreasing penalties.
The protocol uses a vote-escrow (ve) system, allowing users to lock ALMANAK tokens (up to 2 years) for decaying voting power, with weekly fee distribution based on historical snapshots and gas-efficient reward claiming.
Our audit of Almanak uncovered critical vulnerabilities across its Merkle-based airdrop, time-decaying slashing mechanism, and vote-escrow (ve) system, including risks in enforcing staking commitments, inconsistencies in slashing calculations, and inaccuracies in reward distribution due to checkpointing gaps.
To address these issues, we strengthened validation within the airdrop contract, ensuring that pre-encoded staking parameters (percentage and unlock duration) were correctly enforced during claim and claim-and-stake flows. We also refined the slashing logic, ensuring proper application of time-decaying penalties on unstaked portions while maintaining the integrity of slash-free staked allocations.
Additionally, we improved the veToken checkpointing and historical tracking mechanisms, ensuring accurate calculation of voting power and fair weekly fee distribution based on snapshots. Enhancements were also made to authorized lock creation flows, preventing inconsistencies during automated integrations such as airdrops.
These fixes significantly improved the reliability of Almanak’s token distribution, governance, and reward systems, ensuring accurate execution and strengthening overall protocol security.
Our approach to auditing Almanak’s combined a security-first mindset, comprehensive threat modelling, and rigorous testing methodologies. By leveraging both white-box and black-box testing techniques, we conducted an in-depth assessment of the system. Throughout the process, we maintained transparency and clear communication with the Almanak’s team, ensuring a collaborative and thorough security review.
Here is a breakdown of the critical vulnerabilities in audit discoveries and remediation strategies:
Description :
The project intends to use Ownable2Step semantics (safe 2-step ownership transfer), but currently inherits from Ownable, not Ownable2Step.
This means the owner can instantly transfer ownership in one transaction, defeating the intended Two-Step security model documented in comments and project requirements.
If the owner key is compromised or misused, privileged control can be reassigned instantly without the beneficiary's acceptance.
Impact: Low
Likelihood: Low
Description :
The contracts assume the token being distributed is a standard ERC-20 where the transferred amount equals the amount credited.
With Fee-on-Transfer (FoT) tokens, the contract receives or sends less tokens than expected due to burn/tax mechanics.
This causes:
State variables become desynchronized from actual balances, resulting in early depletion or inability to distribute tokens fairly.
Impact: Medium
Likelihood: Low
Replace Ownable with Ownable2Step to enforce a safer two-step ownership transfer process.
Use balance-diff accounting
Impressed by our findings and recommendations, the Almanak developers promptly addressed all identified vulnerabilities.
Through our collaborative efforts, the Almanak Protocol project is now significantly more secure, ensuring the protection of user funds.
The Almanak smart contracts security audit identified and addressed critical vulnerabilities, protecting user funds and ensuring platform stability. This case study demonstrates the importance of proactive security measures for blockchain-based projects, especially those dealing with financial assets. By conducting audits and addressing identified issues, the Almanak Team has taken a significant step towards securing its platform and safeguarding user trust.

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