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