The current pool design likely enforces an immutable token list after pool creation. The system specifies tokens during initialization through the params.tokenConfig array, with no apparent functionality for adding tokens post-creation. This design, while simplifying operational complexity, restricts pool flexibility and limits adaptability to future requirements.
Immutability of Token List:
The params.tokenConfig array defines the tokens for the pool at creation. Without a function to modify or add tokens later, the token list is effectively immutable.
Likely Reasons for Immutability:
Weight Balancing: Adding tokens requires recalculating and rebalancing the pool's weights, which could disrupt its functioning.
Contract Assumptions: Hooks or strategies tied to the pool might assume a fixed token set, risking breakage if tokens are modified.
Security Concerns: Adding tokens dynamically may introduce vulnerabilities if token validation is inadequate.
Implications:
This rigidity could limit the protocol's utility, as pools are unable to adapt to changes like adding new tokens or responding to market demands.
Flexibility: Users are restricted to the initially defined tokens, limiting the protocol's ability to evolve or adapt pools to new assets or market conditions.
Usability: Potential use cases, such as dynamically evolving pools or expanding pools to include new tokens, are not feasible.
Competitive Advantage: Protocols with flexible pool designs may attract more users due to greater adaptability.
Manual Review
Introduce a Token Addition Mechanism:
Consider implementing a controlled mechanism to allow token additions to existing pools while addressing associated risks. This functionality should include:
Proper validation of new tokens to ensure compliance with pool rules.
Recalibration of weights to maintain balance.
Ensuring compatibility with existing contracts and strategies.
Example implementation:
Alternative Solutions:
Create new pools with the desired token configurations.
Offer guidelines or tools to migrate liquidity to a new pool.
This highlights the importance of balancing security and usability in pool design. While immutability simplifies operations and reduces risks, incorporating a controlled token addition mechanism could enhance the protocol's functionality and appeal.
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.