From 0297bb9294f3c12795db45c9a2c6b3ca915b2ba3 Mon Sep 17 00:00:00 2001 From: mingda Date: Thu, 4 Feb 2021 19:22:00 +0800 Subject: [PATCH] require vDODO transfer from!=to --- contracts/DODOToken/vDODOToken.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/DODOToken/vDODOToken.sol b/contracts/DODOToken/vDODOToken.sol index 3432e66..83db230 100644 --- a/contracts/DODOToken/vDODOToken.sol +++ b/contracts/DODOToken/vDODOToken.sol @@ -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];