Summary
This proposal seeks to deploy ALE V2 to replace and enhance the existing ALE on FiRM. ALE V2 consolidates our leverage logic into a single, robust contract, supporting both 1inch and Odos aggregators for more efficient and flexible routing. In addition, ALE V2 integrates Pendle PT collateral functionality, simplifying complex leverage actions and enabling users to easily leverage into- and deleverage from yield strategies with PT and YT tokens.
Background
The original ALE was designed to facilitate looping and leveraging for FiRM markets but had limitations in flexibility and required repeated redeployments for new collateral types. Additionally, previous helper contracts required fragmented logic for handling different collateral compositions, resulting in technical debt and deployment friction.
ALE V2 represents a major architectural improvement, merging the previous ALE and undeployed ALEPendle implementations into one contract and updating all associated helpers to a unified interface. The engine now directly supports:
- Pendle PT markets, with helper-based mint/redeem handling for PT and YT tokens.
- Aggregator-based swaps via both 1inch and Odos, allowing for more optimal execution routes and future scalability.
- Cleaner interfaces for dynamic helpers (CurveDolaLPHelper, ERC4626Helper, and YVYCRVHelper), reducing complexity and the risk of errors.
This upgrade significantly reduces maintenance overhead by enabling quicker deployment of new markets and collateral types without repeated code rewrites. Furthermore, it enhances UX by enabling direct DOLA entry for supported markets, eliminating unnecessary pre-zap actions.
Implementation
The following contracts have been deployed and reviewed:
- ALE V2: 0x6218d3d6c01f8077f06519d8f5d31f935f3c3c53
- Pendle PT Helper: 0x68fb58dae2206a145b2ae458942e1f34b6173181
- CurveDolaLPHelperDynamic: 0x20717e5ee263f2418badad9704b88d98caffac8e
- CurveSDolaLPHelperDynamic: 0x50671bf561ed15a84066db2415d1ef55daf35037
- ERC4626Helper: 0xf2f9b6f0b28f77872acd2da4187021b3b8c73ab8
- YVYCRVHelper: 0xa93dac9b38ab4a23f1fa934eabc7f9639a003c4c
ALE V2 will also support governance-defined whitelisting of multiple exchange proxies, enabling greater flexibility in future aggregator integrations. Overall, ALE V2 is a key protocol infrastructure upgrade that streamlines leverage execution, reduces risk, and improves user experience on FiRM.
On-Chain Actions
- Set ALE V2 as the leverage engine for all existing FiRM markets
- Configure each market with the appropriate helper.
- Set exchange proxy addresses for both 1inch and Odos aggregators