Spheron V2

Spheron V2 Smart Contract Audit Report

Share
Share
EVMEVM
DeFiDePINDeFi Staking+1
EVMEVM
DeFiDePIN+2

QuillAudits audited the Spheron V2 smart contracts on EVM between Mar 5, 2025 and Mar 27, 2025. The audit found 13 issues: 3 high, 4 medium, 6 low, of which 10 resolved and 3 acknowledged.

Project Description

This is a lending pool for miners, enabling users to deposit mining tokens in exchange for pTokens. Implements borrowing and repayment mechanisms for agents, with interest accrual, liquidation processes, and distribution of rewards to token holders.

Timeline

S1
Mar 5, 2025
IA
Mar 16, 2025
S2
Mar 27, 2025

Scope of Audit

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

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0030
partially resolved0000
resolved3430
Spheron V2

Spheron V2

High Severity Issues

Liquidation doesn’t accrue interest

Resolved
arrow-right
Description

accureInterest() should be called whenever totalDebt is being used because it updates the totalDebt. Now debtOf(agent) uses totalDebt to calculate the debtOf(agent), which means totaltotalDebt should be updated before calling debtOf(agent) in startLiquidation(). ie missing accureIntest()
solidity function startLiquidation(address agent) external nonReentrant whenNotPaused { //@audit this should also call accureIntest() if (msg.sender != core) revert CallerNotCore(); @> uint256 liquidatingAmount = debtOf(agent); removeDebt(agent, liquidatingAmount); totalLiquidatingAmount += liquidatingAmount; liquidatingAmounts[agent] += liquidatingAmount; invariantCheck(); emit LiquidationStarted(agent, liquidatingAmount); }

Wrong hashing implementation allows user to execute EXPIRED signature

Resolved
arrow-right
Description

In the bootstrapOffchainCollateral(), you'll notice it checks if (block.timestamp > deadline) revert ExpiredSignature(deadline); for expired signature however also note this deadline is a user argument, the issue here is that the deadline was not included when generating the hash to verify, so even if the signature signed by the core signers is expired, user can just pass in a future time which will always pass since the deadline won't get validated

Recommendation

Just as in updateOffChainCollateralValueBySignature(), deadline should be included in the hash to
be verified
bytes32 hash = _hashTypedDataV4(
keccak256(
abi.encode(
keccak256(
"UpdateOffChainCollateralValue(address agent,uint256 value,uint256 deadline,uint256
nonce)"
),
agent,
value,
deadline, <@
nonce
)
)
)

Signature replay protection bypassed also due to wrong hashing implementation

Resolved
arrow-right
Description

In verifySignature, the check if (nonce != core.signatureNonces(agent)) revert InvalidNonce(); was to help prevent replays as the purpose of nonce logic is to prevent signature replay however this nonce is also a user argument, what that means is user specifies this value and not the protocol. The issue is the nonce specified by the user is not included when generating the hash to be verified allowing user to specify a different nonces but on the same signature.

Recommendation

Nonce should be included in the hash to be verified:
bytes32 hash = _hashTypedDataV4(
keccak256(
abi.encode(
keccak256(
"BootstrapOffchainCollateral(address agent,uint256 securityDepositAmount,uint256
borrowingAmount,bytes deployData)"
),
agent,
securityDepositAmount,
borrowingAmount,
deployData
) //
nonce should be included here
)
)

Medium Severity Issues

Low Severity Issues

Appendix

Disclaimer

Spheron V2

Spheron V2

High Severity Issues
Medium Severity Issues
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