Created
July 23, 2021 08:14
-
-
Save percybolmer/a9b26a94ad2c0fa41bbdbe77d9377aea to your computer and use it in GitHub Desktop.
This file contains hidden or 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 withdrawStake is used to withdraw stakes from the account holder | |
*/ | |
function withdrawStake(uint256 amount, uint256 stake_index) public { | |
uint256 amount_to_mint = _withdrawStake(amount, stake_index); | |
// Return staked tokens to user | |
_mint(msg.sender, amount_to_mint); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment