


Reads onchain state
Reads the LP tokens a Curve pool would mint right now for a single-coin deposit. The pool's calc_token_amount is called with the amount in the chosen coin's slot as a deposit, returning the LP at 18 decimals. Depending on the pool generation the quote may exclude fees, so treat it as an upper estimate. Reach for it to set a floor for add liquidity, applying a slippage haircut before coiling it into min_lp, or to compare pools by how much LP a deposit buys.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
Provide liquidity on Base · 6 plugs
More on Curve · 11