fix
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user