DelegationAwarePToken

PToken enabled to delegate voting power of the underlying asset to a different address

The underlying asset needs to be compatible with the COMP delegation interface

DelegateUnderlyingTo

event DelegateUnderlyingTo(address delegatee)

Emitted when underlying voting power is delegated

Parameters

NameTypeDescription

delegatee

address

The address of the delegatee

constructor

constructor(contract IPool pool) public

Constructor.

Parameters

NameTypeDescription

pool

contract IPool

The address of the Pool contract

delegateUnderlyingTo

function delegateUnderlyingTo(address delegatee) external

Delegates voting power of the underlying asset to a delegatee address

Parameters

NameTypeDescription

delegatee

address

The address that will receive the delegation

getXTokenType

function getXTokenType() external pure returns (enum XTokenType)

return token type`of xToken