update vDODO: const ratio 1 vDODO = 100 DODO
This commit is contained in:
@@ -57,6 +57,7 @@ contract vDODOToken is InitializableOwnable {
|
||||
uint32 public _LAST_REWARD_BLOCK_;
|
||||
|
||||
uint256 public _TOTAL_BLOCK_REWARD_;
|
||||
|
||||
uint256 public _TOTAL_STAKING_POWER_;
|
||||
mapping(address => UserInfo) public userInfo;
|
||||
|
||||
@@ -355,7 +356,6 @@ contract vDODOToken is InitializableOwnable {
|
||||
|
||||
to.stakingPower = uint128(uint256(to.stakingPower).add(stakingPower));
|
||||
to.superiorSP = uint128(uint256(to.superiorSP).add(superiorIncreSP));
|
||||
|
||||
superior.stakingPower = uint128(uint256(superior.stakingPower).add(superiorIncreSP));
|
||||
superior.credit = uint128(uint256(superior.credit).add(superiorIncreCredit));
|
||||
|
||||
@@ -395,7 +395,6 @@ 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];
|
||||
|
||||
Reference in New Issue
Block a user