Skip to content

Latest commit

 

History

History
223 lines (198 loc) · 7.14 KB

ICompoundERC20DelegatorLike.md

File metadata and controls

223 lines (198 loc) · 7.14 KB

ICompoundERC20DelegatorLike.sol

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

↘ Derived Contracts: FakeCompoundStablecoinDelegator, FaultyCompoundStablecoinDelegator

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