@@ -200,6 +200,7 @@ export const GovVoteActions = ({
200
200
const estimateGasLimit = useRootStore ( ( store ) => store . estimateGasLimit ) ;
201
201
const { sendTx, signTxData } = useWeb3Context ( ) ;
202
202
const queryClient = useQueryClient ( ) ;
203
+
203
204
const tokenPowers = useGovernanceTokensAndPowers ( proposal . subgraphProposal . snapshotBlockHash ) ;
204
205
const [ signature , setSignature ] = useState < string | undefined > ( undefined ) ;
205
206
const proposalId = + proposal . subgraphProposal . id ;
@@ -212,22 +213,24 @@ export const GovVoteActions = ({
212
213
213
214
const assets : Array < { underlyingAsset : string ; isWithDelegatedPower : boolean } > = [ ] ;
214
215
215
- if ( tokenPowers ?. aAave !== '0' ) {
216
+ if ( tokenPowers && tokenPowers . aAaveTokenPower . votingPower . toString ( ) !== '0' ) {
216
217
assets . push ( {
217
218
underlyingAsset : governanceV3Config . votingAssets . aAaveTokenAddress ,
218
- isWithDelegatedPower : tokenPowers ? .isAAaveTokenWithDelegatedPower || false ,
219
+ isWithDelegatedPower : tokenPowers . isAAaveTokenWithDelegatedPower || false ,
219
220
} ) ;
220
221
}
221
- if ( tokenPowers ?. stkAave !== '0' ) {
222
+
223
+ if ( tokenPowers && tokenPowers . stkAaveTokenPower . votingPower . toString ( ) !== '0' ) {
222
224
assets . push ( {
223
225
underlyingAsset : governanceV3Config . votingAssets . stkAaveTokenAddress ,
224
- isWithDelegatedPower : tokenPowers ? .isStkAaveTokenWithDelegatedPower || false ,
226
+ isWithDelegatedPower : tokenPowers . isStkAaveTokenWithDelegatedPower || false ,
225
227
} ) ;
226
228
}
227
- if ( tokenPowers ?. aave !== '0' ) {
229
+
230
+ if ( tokenPowers && tokenPowers . aaveTokenPower . votingPower . toString ( ) !== '0' ) {
228
231
assets . push ( {
229
232
underlyingAsset : governanceV3Config . votingAssets . aaveTokenAddress ,
230
- isWithDelegatedPower : tokenPowers ? .isAaveTokenWithDelegatedPower || false ,
233
+ isWithDelegatedPower : tokenPowers . isAaveTokenWithDelegatedPower || false ,
231
234
} ) ;
232
235
}
233
236
0 commit comments