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

constructor

constructor(contract IPool pool) public

Constructor.

Parameters

delegateUnderlyingTo

function delegateUnderlyingTo(address delegatee) external

Delegates voting power of the underlying asset to a delegatee address

Parameters

getXTokenType

function getXTokenType() external pure returns (enum XTokenType)

return token type`of xToken