fix
This commit is contained in:
@@ -12,7 +12,7 @@ import {InitializableOwnable} from "../lib/InitializableOwnable.sol";
|
||||
//todo
|
||||
contract Governance is InitializableOwnable {
|
||||
|
||||
function getLockedDODO(address account) external pure returns (uint256 lockedDODO) {
|
||||
lockedDODO = 0;//todo for test
|
||||
function getLockedvDODO(address account) external pure returns (uint256 lockedvDODO) {
|
||||
lockedvDODO = 0;//todo for test
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import {SafeERC20} from "../lib/SafeERC20.sol";
|
||||
import {IDODOApproveProxy} from "../SmartRoute/DODOApproveProxy.sol";
|
||||
|
||||
interface IGovernance {
|
||||
function getLockedDODO(address account) external view returns (uint256);
|
||||
function getLockedvDODO(address account) external view returns (uint256);
|
||||
}
|
||||
|
||||
interface IDODOCirculationHelper {
|
||||
@@ -66,7 +66,7 @@ contract vDODOToken is InitializableOwnable {
|
||||
|
||||
// ============ 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 SetCantransfer(bool allowed);
|
||||
|
||||
@@ -268,7 +268,7 @@ contract vDODOToken is InitializableOwnable {
|
||||
if (_DOOD_GOV_ == address(0)) {
|
||||
balance = balanceOf(account);
|
||||
} else {
|
||||
uint256 lockedBalance = IGovernance(_DOOD_GOV_).getLockedDODO(account);
|
||||
uint256 lockedBalance = IGovernance(_DOOD_GOV_).getLockedvDODO(account);
|
||||
balance = balanceOf(account).sub(lockedBalance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user