Skip to main content

CToken

Functions

redeemUnderlying

function redeemUnderlying(
uint256 redeemAmount
) external returns (uint256)

Parameters

NameTypeDescription
redeemAmountuint256

exchangeRateStored

function exchangeRateStored() external returns (uint256)

balanceOf

function balanceOf(
address account
) external returns (uint256)

Parameters

NameTypeDescription
accountaddress

isCToken

function isCToken() external returns (bool)

isCEther

function isCEther() external returns (bool)

CompoundPCVDepositBase

Functions

constructor

function constructor(
address _core,
address _cToken
) internal

Compound PCV Deposit constructor

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_cTokenaddressCompound cToken to deposit

withdraw

function withdraw(
address to,
uint256 amountUnderlying
) external

withdraw tokens from the PCV allocation

Parameters

NameTypeDescription
toaddressthe address to send PCV to
amountUnderlyinguint256of tokens withdrawn

balance

function balance() public returns (uint256)

returns total balance of PCV in the Deposit excluding the FEI

returns stale values from Compound if the market hasn't been updated

_transferUnderlying

function _transferUnderlying(
address to,
uint256 amount
) internal

Parameters

NameTypeDescription
toaddress
amountuint256