Created
August 6, 2019 11:25
-
-
Save hellwolf/2eb4ef230224a463be9a32059d832eb8 to your computer and use it in GitHub Desktop.
rtoken sinippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @notice Sender supplies assets into the market and receives rTokens in exchange | |
* @param mintAmount The amount of the underlying asset to supply | |
* @return uint 0=success, otherwise a failure | |
*/ | |
function mint(uint256 mintAmount) external returns (bool); | |
/** | |
* @notice Sender redeems rTokens in exchange for the underlying asset | |
* @param redeemTokens The number of rTokens to redeem into underlying | |
* @return uint 0=success, otherwise a failure | |
*/ | |
function redeem(uint256 redeemTokens) external returns (bool); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment