require vDODO transfer from!=to

This commit is contained in:
mingda
2021-02-04 19:22:00 +08:00
committed by owen05
parent 6185fa8ef2
commit 0297bb9294

View File

@@ -395,6 +395,7 @@ contract vDODOToken is InitializableOwnable {
require(to != address(0), "transfer to the zero address");
require(from != to, "transfer from same with to");
uint256 stakingPower = DecimalMath.divFloor(vDODOAmount * _DODO_RATIO_, alpha);
UserInfo storage fromUser = userInfo[from];