Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: medium
Valid

Missing actual transfer of RAAC tokens to the managers in the StabilityPool contract

Summary

In StabilityPoolL326, the comment implies that the alloocation of RAAC for different managers logic will be implemented in the depositRAACFromPool function however, this not designed that way.

Vulnerability Details

In the depositRAACFromPool function, the logic todo comment attached within the function expected to disperse the RAAC token allocations to the managers. This is not integrated into the function. see:

https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/pools/StabilityPool/StabilityPool.sol#L326

It is important to note that there is no current liquidityPool address that is permissioned to invoke the depositRAACFroomPool function. This is not so much an issue since only owner can easily update a smart contract address to serve as the liquidity pool. This liquidity pool only provides RAAC tokens into the StabilityPool contract without actually sending to the managers.

The protocol documentation states:

  • Manage allocation of funds across different markets and managers

https://docs.raac.io/core/pools/StabilityPool/StabilityPool

Impact

Inconsistency between documentation and code implementation.

Tools Used

Manual review.

Recommendations

Remove comment

Updates

Lead Judging Commences

inallhonesty Lead Judge about 2 months ago
Submission Judgement Published
Validated
Assigned finding tags:

StabilityPool::calculateRaacRewards uses contract balance for reward calculation, incorrectly including tokens meant for manager allocation - Manager allocation not implemented

inallhonesty Lead Judge about 2 months ago
Submission Judgement Published
Validated
Assigned finding tags:

StabilityPool::calculateRaacRewards uses contract balance for reward calculation, incorrectly including tokens meant for manager allocation - Manager allocation not implemented

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.