Csigma

Csigma Smart Contract Audit Report

Share
Share
EthereumEthereumArbitrumArbitrum
RWA / Tokenization / ReFiRWADeFi Staking+2
EthereumEthereumArbitrumArbitrum
RWA / Tokenization / ReFiRWA+3

QuillAudits audited the Csigma smart contracts on Ethereum and Arbitrum between Nov 7, 2024 and Dec 5, 2024. The audit found 6 issues: 6 informational, of which 4 resolved and 2 acknowledged.

Project Description

The system is a comprehensive financial protocol designed for real-world asset tokenization, fund management, and staking. It features modular contracts for creating and managing investment pools, staking assets, and distributing rewards. The system leverages AccessControlUpgradeable for role management and supports upgradeable contracts for flexibility and future enhancements. Its functionality includes secure asset deposits, governance-driven configuration, and user-focused operations like staking, unstaking, and reward withdrawals.

Timeline

S1
Nov 7, 2024
IA
Jan 28, 2025
S2
Dec 5, 2024

Scope of Audit

The Scope of the Audit is to Analyse the Security,Code Quality and Correctness of csigma Contracts

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0002
partially resolved0000
resolved0004

Informational Issues

Potential DoS Risk in deployFunds with Excessive Pools

Acknowledged
arrow-right
Description

The deployFunds function iterates through all v1Pools to distribute funds based on their allocation. If the number of pools becomes too large, this loop may exceed gas limits, causing the function to fail (DoS risk). While the total allocation is capped at 10000, there is no restriction on the number of pools that can be added. This could result in operational issues and blocked fund deployment.

Contract

contracts/v2/CsigmaV2FundManager.sol

Recommendation

Implement a cap on the maximum number of pools allowed in v1Pools during addPool.

Missing Validation in updateMinMaxDurationAllowed

Resolved
arrow-right
Description

The updateMinMaxDurationAllowed function allows the admin to set arbitrary values for _min and _max without validation. This can result in configurations where minStakeDurationAllowed is greater than maxStakeDurationAllowed, creating invalid or contradictory staking conditions.

Contract

contracts/v2/CsigmaV2StakingPool.sol, contracts/v2/CsigmaV2StakingPoolExtension.sol

Recommendation

Add a validation check to ensure _min is always less than or equal to _max.

Centralization Risk in Pool Status Management

Acknowledged
arrow-right
Description

The updatePoolStatus function allows the admin to arbitrarily change the pool's status to CLOSED or PENDING, which disables key user actions like staking or unstaking. When the pool is not in an ACTIVE state, users cannot withdraw their funds, even if their assets are unlocked. This introduces a centralization risk where an admin could unintentionally or maliciously block user funds.

Contract

contracts/v2/CsigmaV2StakingPool.sol, contracts/v2/CsigmaV2StakingPoolExtension.sol

Recommendation

Implement additional safeguards such as:
1. Requiring a governance vote or multi-signature approval for status changes.
2. Ensuring users can always withdraw unlocked funds, regardless of the pool's status.
3. Adding a time delay to status changes, allowing users to act before the pool status is updated.

Missing Validation for Percentage in updateNonReservePercentage

Resolved
arrow-right
Description

The updateNonReservePercentage function allows setting any value for _percentage without validation. This value is used in the deposit function to calculate the portion of assets transferred to the fundManager as (assets * nonReservePercentage) / 10000. If nonReservePercentage is set to an excessively high value (e.g., greater than 10000, representing 100%), it can result in all deposited assets being transferred to the fundManager, leaving no reserves in the pool.

Contract

contracts/v2/CsigmaV2Pool.sol

Recommendation

Add a validation check in updateNonReservePercentage to ensure _percentage remains within a valid range.

Missing Validation for pauseDuration in updatePauseDuration

Resolved
arrow-right
Description

The updatePauseDuration function allows the admin to set an arbitrary value for pauseDuration without validation. This could result in excessively long or inappropriate pause durations, potentially causing unnecessary disruptions to the system's availability and user operations.

Contract

contracts/v2/CsigmaV2Pool.sol

Recommendation

Add validation to ensure pauseDuration is within reasonable bounds.

Missing Event Emission in CsigmaV2Pool for Critical State Updates

Resolved
arrow-right
Description

The CsigmaV2Pool contract lacks event emissions for several critical state-changing functions, including updateInitialDepositTime, updatePauseDuration, updatePauseStartTime, updateNonReservePercentage, and updatePoolSize. This omission reduces transparency and makes it difficult to monitor or audit changes to the pool's configuration. Without events, off-chain systems and stakeholders cannot track these updates effectively.

Contract

contracts/v2/CsigmaV2Pool.sol

Recommendation

Ensure all critical actions, especially those involving state changes or administrative controls, emit appropriate events. For example, emit events for role changes, configuration updates, and fund transfers to enhance traceability and facilitate off-chain monitoring.

Appendix

Disclaimer

Csigma

Csigma

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