This commit is contained in:
owen05
2021-02-07 16:27:01 +08:00
parent e1e24f8007
commit 53dad7cadb
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ import {InitializableOwnable} from "../lib/InitializableOwnable.sol";
//todo //todo
contract Governance is InitializableOwnable { contract Governance is InitializableOwnable {
function getLockedDODO(address account) external pure returns (uint256 lockedDODO) { function getLockedvDODO(address account) external pure returns (uint256 lockedvDODO) {
lockedDODO = 0;//todo for test lockedvDODO = 0;//todo for test
} }
} }

View File

@@ -15,7 +15,7 @@ import {SafeERC20} from "../lib/SafeERC20.sol";
import {IDODOApproveProxy} from "../SmartRoute/DODOApproveProxy.sol"; import {IDODOApproveProxy} from "../SmartRoute/DODOApproveProxy.sol";
interface IGovernance { interface IGovernance {
function getLockedDODO(address account) external view returns (uint256); function getLockedvDODO(address account) external view returns (uint256);
} }
interface IDODOCirculationHelper { interface IDODOCirculationHelper {
@@ -66,7 +66,7 @@ contract vDODOToken is InitializableOwnable {
// ============ Events ============ // ============ Events ============
event MintVDODO(address user, address superior, uint256 amount); event MintVDODO(address user, address superior, uint256 mintDODO);
event RedeemVDODO(address user, uint256 receiveDODO, uint256 burnDODO, uint256 feeDODO); event RedeemVDODO(address user, uint256 receiveDODO, uint256 burnDODO, uint256 feeDODO);
event SetCantransfer(bool allowed); event SetCantransfer(bool allowed);
@@ -268,7 +268,7 @@ contract vDODOToken is InitializableOwnable {
if (_DOOD_GOV_ == address(0)) { if (_DOOD_GOV_ == address(0)) {
balance = balanceOf(account); balance = balanceOf(account);
} else { } else {
uint256 lockedBalance = IGovernance(_DOOD_GOV_).getLockedDODO(account); uint256 lockedBalance = IGovernance(_DOOD_GOV_).getLockedvDODO(account);
balance = balanceOf(account).sub(lockedBalance); balance = balanceOf(account).sub(lockedBalance);
} }
} }