Merge branches 'feature/V2' and 'feature/V2' of github.com:DODOEX/contractV2 into feature/V2
This commit is contained in:
@@ -147,7 +147,7 @@ contract vDODOToken is InitializableOwnable, ReentrancyGuard {
|
||||
_mint(user, newVdodoAmount);
|
||||
|
||||
uint256 superiorVDODO;
|
||||
if (user.superior == address(0) && _superiorAddress != address(0)) {
|
||||
if (user.superior == address(0) && _superiorAddress != address(0) && _superiorAddress != msg.sender ) {
|
||||
require(_superiorAddress != msg.sender, "COULD NOT SET SELF AS SUPERIOR");
|
||||
superiorVDODO = DecimalMath.divFloor(user.VDODOAmount, _SUPERIOR_RATIO_);
|
||||
user.superior = _superiorAddress;
|
||||
|
||||
Reference in New Issue
Block a user