Get staked balance

Get staked balance on Convex

Ethereum
Ethereum

Reads onchain state

Reads the Curve LP balance the socket has staked in a Convex pool. The reward contract's balanceOf returns the staked amount at 18 decimals, which is what a withdraw can pull. Reach for it to size a withdrawal at the full stake, to compute the position's share of a pool's reward rate, or to require a minimum stake exists before running a harvest.

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.

More on Convex · 8

On other protocols · 4