Pluto Fi is a DeFi protocol on Solana enabling leveraged yield strategies and passive lending, optimizing returns while ensuring capital protection through safety features.
QuillAudits enhances Pluto Fi by addressing critical security risks in leverage vaults and lending mechanisms, strengthening security and user confidence in DeFi investments.
Pluto Fi, a decentralized finance (DeFi) protocol on the Solana blockchain, maximizes user earnings through leveraged yield strategies and passive lending. With multipliers up to 9.5x, it allows users to optimize yield from assets like JLP and INF. The protocol also incorporates safety mechanisms such as Emergency Eject, Liquidation Saver, and Profit Taker to protect users’ investments.
Pluto Fi’s core functionality is designed to provide users with advanced yield optimization strategies.
The platform ensures:
Our audit uncovered several critical security concerns, including unauthorized claims and compounding exploits, precision loss in leverage vault calculations, incorrect share allocations, and logic errors in referral handling.
To mitigate these risks, we implemented stricter validation mechanisms to prevent excessive fund claims, adjusted reward scaling to ensure accurate APY distribution, corrected share allocation logic to eliminate inefficiencies, and refined referral mechanics to prevent exploitation.
These crucial improvements reinforced Pluto Fi’s security, financial stability, and overall protocol integrity, ensuring a more reliable and fair ecosystem for users.
Our approach to auditing Pluto Fi involved a combination of threat modeling, a security-first mindset, and extensive testing. We used both white-box and black-box testing methods to ensure a thorough assessment, maintaining transparency and clear communication with the Pluto Fi team throughout the process.
Prior to commencing the security assessment of Pluto decentralized Smart Contracts, the development team highlighted several critical areas of concern that warranted thorough examination. Their primary focus centered around:
The Pluto team specifically requested thorough testing against several high-priority attack vectors:
Based on all Checkpoints from Pluto Team and On our Own Indepth Analysis, we performed a comprehensive audit of Pluto Smart Contracts, which revealed a total of 14 issues, categorised by severity:
The critical issues discovered during the audit are particularly interesting and demonstrate the complexity of the Pluto Smart Contracts.
We identified multiple critical vulnerabilities, including:
Mitigating Pyth Price Feed Vulnerability
To address the risks associated with using Pyth price feeds without confidence intervals, we enforced a stricter validation mechanism.
This included integrating confidence intervals into price calculations, ensuring that liquidation and leverage decisions consider potential price fluctuations.
Additionally, we introduced safeguards to reject prices with excessive uncertainty, reducing manipulation risks.
Reducing Liquidation Risk Post-Freeze
To prevent unfair liquidations after an unfreeze event, we introduced a cooldown period, allowing borrowers a grace period to adjust their positions before liquidations resume.
This ensures fairer liquidation mechanics while maintaining protocol safety.
Furthermore, automated position risk monitoring was enhanced to provide users with alerts when nearing critical thresholds.
Preventing Liquidation Fee Bypass
We restructured the liquidation process to ensure that fee deductions occur before closing instructions.
This was achieved by enforcing transaction sequencing rules at the smart contract level, preventing liquidators from bypassing fees.
Additionally, we introduced logging mechanisms to detect and flag irregular liquidation attempts.
Fixing Inaccurate Fractional Arithmetic
We corrected the implementation of fractional arithmetic functions by explicitly enforcing correct flooring and ceiling logic.
Instead of relying on Rust's default integer truncation, we utilized precise rounding mechanisms that accurately perform division and multiplication operations, ensuring consistent and expected outcomes in all financial calculations.
Validating Leverage Vault in Earn Vault Index Setting
To prevent unauthorized or incorrect vault assignments, we implemented strict validation checks when setting the Earn vault index.
The function now verifies that the specified Leverage vault exists and is correctly registered within the protocol. Any attempts to provide invalid or malicious vaults are rejected, ensuring calculation accuracy and system consistency.
Impressed by our findings and recommendations, the Pluto Team developers promptly Fixed all identified vulnerabilities.
Through our collaborative efforts, the Pluto protocol is now significantly more secure, ensuring the protection of user funds.
The Pluto Smart Contract 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 Pluto Team has taken a significant step towards securing its platform and safeguarding user trust.