update vDODO: const ratio 1 vDODO = 100 DODO

This commit is contained in:
mingda
2021-02-07 15:23:39 +08:00
committed by owen05
parent 0297bb9294
commit ac332eb60f

View File

@@ -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];