CompoundModule

WETH

deposit

function deposit() external payable

withdraw

function withdraw(uint256) external

CompoundModule

ErrorOnRedeem

event ErrorOnRedeem(bytes32 olKeyHash, uint256 offerId, uint256 amount, uint256 errorCode)

ErrorOnMint

event ErrorOnMint(bytes32 olKeyHash, uint256 offerId, uint256 amount, uint256 errorCode)

ComptrollerError

event ComptrollerError(address comp, uint256 errorCode)

overlyings

mapping(contract IERC20 => contract IcERC20) overlyings

comptroller

oracle

weth

constructor

isCeth

underlying

_approveLender

_enterMarkets

_exitMarket

_claimComp

isPooled

Heap

struct to circumvent stack too deep error in maxGettableUnderlying function

maxGettableUnderlying

Computes maximal maximal redeem capacity (R) and max borrow capacity (B|R) after R has been redeemed returns (R, B|R)

compoundRedeem

_mint

compoundMint