The depositRAACFromPool
function in the Stability Pool is designed to receive raacToken
deposits from the Liquidity Pool and distribute them to managers based on their allocation. However, the logic for distributing funds to managers is not implemented, as indicated by the TODO
comment. As a result, funds deposited into the Stability Pool are not distributed to managers as intended. Instead, these funds remain in the Stability Pool and may be incorrectly distributed as rewards, deviating from the protocol's design and disrupting the intended fund allocation.
StabilityPool::depositRAACFromPool
The depositRAACFromPool
function is as follows:
Missing Distribution Logic:
The function includes a TODO
comment indicating that the logic for distributing funds to managers based on their allocation is not implemented.
As a result, funds deposited into the Stability Pool are not distributed to managers as intended.
Incorrect Fund Usage:
Funds that should be allocated to managers remain in the Stability Pool and may be incorrectly distributed as rewards.
This deviates from the protocol's design and disrupts the intended fund allocation.
Impact on Managers:
Managers do not receive their allocated funds, leading to potential financial losses and dissatisfaction.
Deposit: The Liquidity Pool deposits 1000 raacToken
into the Stability Pool.
Intended Behavior:
The funds should be distributed to managers based on their allocation.
Actual Behavior:
The funds remain in the Stability Pool and may be distributed as rewards, disrupting the intended fund allocation.
Disrupted Fund Allocation: Funds intended for managers are not distributed, leading to potential financial losses for managers.
Incorrect Reward Distribution: Funds meant for managers may be incorrectly distributed as rewards, inflating user rewards and depleting funds allocated for other purposes.
Protocol Integrity: The protocol's functionality is compromised, leading to a loss of trust among managers and users.
Manual code review
The depositRAACFromPool
function should include logic to distribute funds to managers based on their allocation. Here’s an example implementation:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.