BErc20
Overview
License: MIT
Author: Compound CTokens which wrap an EIP-20 underlying
Functions info
initialize (0x1a31d465)
Initializes the new money market.
Parameters:
underlying_
address
The address of the underlying asset.
comptroller_
contract Bondtroller
The address of the Comptroller.
interestRateModel_
contract InterestRateModel
The address of the interest rate model.
initialExchangeRateMantissa_
uint256
The initial exchange rate, scaled by 1e18.
name_
string
ERC-20 name of this token.
symbol_
string
ERC-20 symbol of this token.
decimals_
uint8
ERC-20 decimal precision of this token.
sweepToken (0x1be19560)
A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to admin (timelock).
Parameters:
token
contract EIP20NonStandardInterface
The address of the ERC-20 token to sweep.
_addReserves (0x3e941010)
The sender adds to reserves.
Parameters:
addAmount
uint256
The amount fo underlying token to add as reserves.
Return values:
[0]
uint256
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details).
Last updated