Skip to content

Latest commit

 

History

History
221 lines (196 loc) · 7 KB

ICompoundERC20DelegatorLike.md

File metadata and controls

221 lines (196 loc) · 7 KB

ICompoundERC20DelegatorLike.sol

View Source: contracts/dependencies/compound/ICompoundERC20DelegatorLike.sol

↘ Derived Contracts: FakeCompoundDaiDelegator, FaultyCompoundDaiDelegator

ICompoundERC20DelegatorLike

Functions

mint

Sender supplies assets into the market and receives cTokens in exchange

function mint(uint256 mintAmount) external nonpayable
returns(uint256)

Arguments

Name Type Description
mintAmount uint256 The amount of the underlying asset to supply

Returns

uint 0=success, otherwise a failure (see ErrorReporter.sol for details)

Source Code
function mint(uint256 mintAmount) external returns (uint256);

redeem

Sender redeems cTokens in exchange for the underlying asset

function redeem(uint256 redeemTokens) external nonpayable
returns(uint256)

Arguments

Name Type Description
redeemTokens uint256 The number of cTokens to redeem into underlying

Returns

uint 0=success, otherwise a failure (see ErrorReporter.sol for details)

Source Code
function redeem(uint256 redeemTokens) external returns (uint256);

Contracts