Skip to content

Instantly share code, notes, and snippets.

@hellwolf
Created August 6, 2019 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellwolf/2eb4ef230224a463be9a32059d832eb8 to your computer and use it in GitHub Desktop.
Save hellwolf/2eb4ef230224a463be9a32059d832eb8 to your computer and use it in GitHub Desktop.
rtoken sinippet
/**
* @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