
Curve · 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.