Skip to content

Commit b29c10f

Browse files
authored
fix: atoken eip domain (#634)
* fix: atoken eip domain * fix: gas limits * fix: gas limits
1 parent eb9702b commit b29c10f

File tree

2 files changed

+13
-13
lines changed
  • packages/contract-helpers/src

2 files changed

+13
-13
lines changed

packages/contract-helpers/src/commons/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export const gasLimitRecommendations: GasRecommendationType = {
139139
recommended: '1000000',
140140
},
141141
[ProtocolAction.batchMetaDelegate]: {
142-
limit: '200000',
143-
recommended: '200000',
142+
limit: '400000',
143+
recommended: '400000',
144144
},
145145
[ProtocolAction.updateRepresentatives]: {
146146
limit: '60000',

packages/contract-helpers/src/governance-v3/delegate-helper/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,24 @@ export class MetaDelegateHelperService {
121121
const typeData = {
122122
domain: {
123123
name: governanceTokenName,
124-
version: '2',
124+
version: governanceTokenName === 'Aave Ethereum AAVE' ? '1' : '2',
125125
chainId: connectedChainId,
126126
verifyingContract: underlyingAsset,
127127
},
128128
types: isAllDelegate
129129
? {
130-
...eIP712DomainType,
131-
Delegate: [...sigParametersType, ...sigBaseType],
132-
}
130+
...eIP712DomainType,
131+
Delegate: [...sigParametersType, ...sigBaseType],
132+
}
133133
: {
134-
...eIP712DomainType,
134+
...eIP712DomainType,
135135

136-
DelegateByType: [
137-
...sigParametersType,
138-
...sigDelegationTypeType,
139-
...sigBaseType,
140-
],
141-
},
136+
DelegateByType: [
137+
...sigParametersType,
138+
...sigDelegationTypeType,
139+
...sigBaseType,
140+
],
141+
},
142142
primaryType: isAllDelegate ? 'Delegate' : 'DelegateByType',
143143
message: isAllDelegate
144144
? { ...typesData }

0 commit comments

Comments
 (0)