Created
July 30, 2021 05:18
-
-
Save percybolmer/05dea958c597fa8ec8fd7bb695bbee9d to your computer and use it in GitHub Desktop.
Crypto-BEP20-DevToken-WithdrawStake
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