@@ -200,6 +200,7 @@ export const GovVoteActions = ({
200200 const estimateGasLimit = useRootStore ( ( store ) => store . estimateGasLimit ) ;
201201 const { sendTx, signTxData } = useWeb3Context ( ) ;
202202 const queryClient = useQueryClient ( ) ;
203+
203204 const tokenPowers = useGovernanceTokensAndPowers ( proposal . subgraphProposal . snapshotBlockHash ) ;
204205 const [ signature , setSignature ] = useState < string | undefined > ( undefined ) ;
205206 const proposalId = + proposal . subgraphProposal . id ;
@@ -212,22 +213,24 @@ export const GovVoteActions = ({
212213
213214 const assets : Array < { underlyingAsset : string ; isWithDelegatedPower : boolean } > = [ ] ;
214215
215- if ( tokenPowers ?. aAave !== '0' ) {
216+ if ( tokenPowers && tokenPowers . aAaveTokenPower . votingPower . toString ( ) !== '0' ) {
216217 assets . push ( {
217218 underlyingAsset : governanceV3Config . votingAssets . aAaveTokenAddress ,
218- isWithDelegatedPower : tokenPowers ? .isAAaveTokenWithDelegatedPower || false ,
219+ isWithDelegatedPower : tokenPowers . isAAaveTokenWithDelegatedPower || false ,
219220 } ) ;
220221 }
221- if ( tokenPowers ?. stkAave !== '0' ) {
222+
223+ if ( tokenPowers && tokenPowers . stkAaveTokenPower . votingPower . toString ( ) !== '0' ) {
222224 assets . push ( {
223225 underlyingAsset : governanceV3Config . votingAssets . stkAaveTokenAddress ,
224- isWithDelegatedPower : tokenPowers ? .isStkAaveTokenWithDelegatedPower || false ,
226+ isWithDelegatedPower : tokenPowers . isStkAaveTokenWithDelegatedPower || false ,
225227 } ) ;
226228 }
227- if ( tokenPowers ?. aave !== '0' ) {
229+
230+ if ( tokenPowers && tokenPowers . aaveTokenPower . votingPower . toString ( ) !== '0' ) {
228231 assets . push ( {
229232 underlyingAsset : governanceV3Config . votingAssets . aaveTokenAddress ,
230- isWithDelegatedPower : tokenPowers ? .isAaveTokenWithDelegatedPower || false ,
233+ isWithDelegatedPower : tokenPowers . isAaveTokenWithDelegatedPower || false ,
231234 } ) ;
232235 }
233236
0 commit comments