Get pool balance

Get pool balance on Stargate

Base
Base

Reads onchain state

Reads the token a Stargate pool holds on this chain. The pool balance moves with deposits and redemptions and with every transfer that leaves or arrives, so set against the total value locked it shows whether the pool is running a surplus or a deficit that its fee curve is pricing in. Reach for it to watch a pool drain ahead of a large transfer, or to time a deposit for when the pool is short and transfers into it earn rewards.

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 Stargate · 7

On other protocols · 3