LifeSol

LifeSol Smart Contract Audit Report

Share
Share
SolanaSolana
DeFiDeFi Staking
SolanaSolana
DeFiDeFi Staking

QuillAudits audited the LifeSol smart contracts on Solana between Feb 27, 2026 and Mar 10, 2026. The audit found 16 issues: 1 critical, 6 medium, 9 informational, of which 16 resolved and 0 acknowledged.

kyc
KYC VerificationQuillAudits Verified
icon
kyc
Verified ContractsContract Verification Status
icon
kyc
Vigilant SquadQuillAudits Multilayered Audit
icon

Project Description

This Solana Anchor program implements a staking protocol with multi-level referral rewards and strict vault reservation accounting. When a user stakes, the contract calculates staking rewards, up to 10 levels of referral commissions, and a 5% market fee, then ensures the vault has sufficient unreserved balance before proceeding. A unique Stake PDA is derived per user using a nonce, created via CPI, and initialized manually with a discriminator and serialized data.
Tokens are transferred from the user to the vault, the market fee is distributed, and the total reserved amount is tracked in config to prevent over-allocation. Referral rewards are propagated through a verified PDA chain using remaining_accounts, updating each referrer’s accumulated rewards and active referral counts.
Reward claiming is time-proportional: users can claim accrued staking rewards incrementally, claim referral rewards based on structured eligibility thresholds, or withdraw the full stake amount (plus remaining rewards) after the staking period ends.

Timeline

S1
Feb 27, 2026
IA
Mar 5, 2026
S2
Mar 10, 2026

Scope of Audit

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

Methodology: the QuillAudits smart contract audit process.

icon
speedometer
0
50%
60%
70%
90%
100%
89.0%
QUILLAUDITS SCORE
Remediation Score100
Operational Resilience80
Governance & Centralization50
Tests, Coverage & Doc81

Critical

High

Medium

Low

Informational

open00000
acknowledged00000
partially resolved00000
resolved10609

Critical Severity Issues

Missing ownership validation in claim_ref_rewards allows anyone to steal referral rewards

Resolved
arrow-right
Description

The ClaimRefCtx account struct does not validate that the user_stats account belongs to the user signer. Any arbitrary signer can pass a victim's user_stats account and their own user_token_account to drain the victim's referral rewards.

Contract

programs/vault/src/instructions/admin/add_token.rs

Recommendation

 Bind user_stats to the user signer using PDA seeds and add ownership validation on user_token_account:

Medium Severity Issues

Informational Issues

Appendix

Disclaimer

LifeSol

LifeSol

Critical 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