@@ -252,13 +252,8 @@ export const useGovernanceDelegate = (
252252
253253 const unsignedPayloads : string [ ] = [ ] ;
254254 for ( const tx of delegationParameters ) {
255- if ( delegationType !== DelegationType . ALL ) {
256- const payload = await delegationTokenService . prepareV3DelegateByTypeSignature ( tx ) ;
257- unsignedPayloads . push ( payload ) ;
258- } else {
259- const payload = await delegationTokenService . prepareV3DelegateByTypeSignature ( tx ) ;
260- unsignedPayloads . push ( payload ) ;
261- }
255+ const payload = await delegationTokenService . prepareV3DelegateByTypeSignature ( tx ) ;
256+ unsignedPayloads . push ( payload ) ;
262257 }
263258 try {
264259 const signedPayload : SignatureLike [ ] = [ ] ;
@@ -303,7 +298,6 @@ export const useGovernanceDelegate = (
303298 } else {
304299 let txs : EthereumTransactionTypeExtended [ ] = [ ] ;
305300 if ( delegationType === DelegationType . ALL ) {
306- // TODO check if this is working as normal
307301 txs = await delegate ( {
308302 delegatee,
309303 governanceToken :
@@ -312,13 +306,8 @@ export const useGovernanceDelegate = (
312306 : delegationTokenType === DelegationTokenType . STKAAVE
313307 ? governanceV3Config . votingAssets . stkAaveTokenAddress
314308 : governanceV3Config . votingAssets . aAaveTokenAddress ,
315- // delegationTokenType === DelegationTokenType.AAVE
316- // ? governanceConfig.aaveTokenAddress
317- // : governanceConfig.stkAaveTokenAddress,
318309 } ) ;
319310 } else {
320- // TODO check if this is working as normal
321-
322311 txs = await delegateByType ( {
323312 delegatee,
324313 delegationType : delegationType . toString ( ) ,
@@ -328,9 +317,6 @@ export const useGovernanceDelegate = (
328317 : delegationTokenType === DelegationTokenType . STKAAVE
329318 ? governanceV3Config . votingAssets . stkAaveTokenAddress
330319 : governanceV3Config . votingAssets . aAaveTokenAddress ,
331- // delegationTokenType === DelegationTokenType.AAVE
332- // ? governanceConfig.aaveTokenAddress
333- // : governanceConfig.stkAaveTokenAddress,
334320 } ) ;
335321 }
336322 setActionTx ( txs [ 0 ] ) ;
0 commit comments