Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

DelegationAwareSpToken

DelegationAwareAToken is a subclass of AToken used by reserves whose underlying token exposes the COMP IDelegationToken.delegate(address) interface. Like every AToken on SparkLend, it is deployed with a Spark-branded symbol. These tokens are enabled to delegate the voting power of the underlying asset to a different address.

DelegationAwareSpToken enables/implements all the methods available for spTokens with additional delegateUnderlyingTo method.

Refer to the spToken docs for full list of contract API

delegateUnderlyingTo

function delegateUnderlyingTo(address delegatee)

Delegates voting power of the underlying asset to a delegatee address.

The underlying asset must implement function delegate(address delegatee) (e.g. UNI, AAVE). If the underlying does not implement this, the call reverts.