This commit is contained in:
owen05
2021-02-13 11:48:06 +08:00
parent acd1b32277
commit 1360f60d60

View File

@@ -188,12 +188,14 @@ contract vDODOToken is InitializableOwnable {
_redeem(user, stakingPower);
(uint256 dodoReceive, uint256 burnDodoAmount, uint256 withdrawFeeDodoAmount) =
getWithdrawResult(dodoAmount);
(uint256 dodoReceive, uint256 burnDodoAmount, uint256 withdrawFeeDodoAmount) = getWithdrawResult(dodoAmount);
IERC20(_DODO_TOKEN_).transfer(msg.sender, dodoReceive);
if (burnDodoAmount > 0) {
IERC20(_DODO_TOKEN_).transfer(address(0), burnDodoAmount);
}
if (withdrawFeeDodoAmount > 0) {
alpha = uint112(
uint256(alpha).add(