mirror of
https://github.com/tornadocash/tornado-aggregator.git
synced 2024-12-04 23:15:03 +01:00
fix bugs
This commit is contained in:
parent
95bdacc19b
commit
6f21597bfc
@ -60,7 +60,7 @@ contract GovernanceAggregator {
|
|||||||
returns (
|
returns (
|
||||||
uint256 balance,
|
uint256 balance,
|
||||||
uint256 latestProposalId,
|
uint256 latestProposalId,
|
||||||
uint256 latestProposalIdState
|
uint256 latestProposalIdState,
|
||||||
uint256 timelock,
|
uint256 timelock,
|
||||||
address delegatee
|
address delegatee
|
||||||
)
|
)
|
||||||
@ -68,8 +68,8 @@ contract GovernanceAggregator {
|
|||||||
// Core core = Core(address(governance));
|
// Core core = Core(address(governance));
|
||||||
balance = governance.lockedBalance(account);
|
balance = governance.lockedBalance(account);
|
||||||
latestProposalId = governance.latestProposalIds(account);
|
latestProposalId = governance.latestProposalIds(account);
|
||||||
if(latestProposalId != 0) {
|
if (latestProposalId != 0) {
|
||||||
latestProposalIdState = governance.state(latestProposalId)
|
latestProposalIdState = uint256(governance.state(latestProposalId));
|
||||||
}
|
}
|
||||||
timelock = governance.canWithdrawAfter(account);
|
timelock = governance.canWithdrawAfter(account);
|
||||||
delegatee = governance.delegatedTo(account);
|
delegatee = governance.delegatedTo(account);
|
||||||
|
Loading…
Reference in New Issue
Block a user