Get receipt tokens

Get receipt tokens on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

Reads the receipt token addresses a Spark reserve mints against an asset: the spToken that represents a supply and the variable debt token that represents a borrow. The pool's data provider returns the reserve's token addresses whole, and the spToken and variable debt token are lifted out as their own token outputs so they can be handed straight to any step that takes a token. Reach for it when a strategy needs to move, transfer, or read the balance of a Spark position rather than the underlying asset, so the next step can coil the spToken or debt token into its token slot without hardcoding a receipt address per market.

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 Spark · 25

On other protocols · 1