
Spark · Reads onchain state
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.
On other protocols · 1