Background
calc_withdraw_one_coin and calc_add_liquidity are currently only implemented for StableSwapV1 (PR #66), motivated by meta pool exchange_underlying simulation against 3pool/sBTC bases. Other variants miss this math.
Use case
Solvers that need LP token to single underlying coin (yield strategy unwind, meta pool unwrap, direct LP burn routing).
Coverage gap
Registry scan across chains 1, 8453, 42161:
| Variant |
Pools blocked |
Reason |
| StableSwapV2 |
154 |
48 meta pools with FRAX/USDC or 2CRV base, 106 direct V2 pools (Eth+Arb+Base) |
| StableSwapNG |
730 |
direct LP burn for the dominant pool family (548 Eth, 107 Arb, 75 Base) |
| StableSwapALend |
2 |
low priority |
| StableSwapV0 |
1 |
low priority |
Tasks
Out of scope
V0 and ALend variants (combined: 3 pools, low ROI).
Background
calc_withdraw_one_coinandcalc_add_liquidityare currently only implemented forStableSwapV1(PR #66), motivated by meta poolexchange_underlyingsimulation against 3pool/sBTC bases. Other variants miss this math.Use case
Solvers that need LP token to single underlying coin (yield strategy unwind, meta pool unwrap, direct LP burn routing).
Coverage gap
Registry scan across chains 1, 8453, 42161:
Tasks
get_y_d,calc_withdraw_one_coin,calc_add_liquiditytocore::stableswap_v2andswap::stableswap_v2stableswap_ng(different fee model: dynamic fee, oracle rates)Poolenum dispatchersdocs/integration.mdwith V2 and NG meta unwrap examplesOut of scope
V0 and ALend variants (combined: 3 pools, low ROI).