@@ -12,6 +12,7 @@ import saveAs from 'file-saver';
1212import { sendSignedTransaction, hexify } from './txn';
1313import { attemptNetworkSeedDerivation } from './keys';
1414import { addHexPrefix, WALLET_TYPES } from './wallet';
15+import { GAS_LIMITS } from './constants';
1516
1617const INVITE_STAGES = {
1718 INVITE_LOGIN: 'invite login',
@@ -131,7 +132,7 @@ async function claimPointFromInvite({
131132 inviteAddress,
132133 false
133134 );
134− transferTmpTx.gas = 500000; //TODO can maybe be lower?
135+ transferTmpTx.gas = GAS_LIMITS.TRANSFER;
135136
136137 // configure networking public keys
137138
@@ -160,7 +161,7 @@ async function claimPointFromInvite({
160161 1,
161162 false
162163 );
163− keysTx.gas = 150000;
164+ keysTx.gas = GAS_LIMITS.CONFIGURE_KEYS;
164165
165166 // configure management proxy
166167
@@ -169,7 +170,7 @@ async function claimPointFromInvite({
169170 point,
170171 wallet.management.keys.address
171172 );
172− managementTx.gas = 200000;
173+ managementTx.gas = GAS_LIMITS.SET_PROXY;
173174
174175 // set spawn & voting proxies situationally
175176
@@ -182,7 +183,7 @@ async function claimPointFromInvite({
182183 point,
183184 wallet.spawn.keys.address
184185 );
185− spawnTx.gas = 200000;
186+ spawnTx.gas = GAS_LIMITS.SET_PROXY;
186187 txs.push(spawnTx);
187188
188189 if (
@@ -193,7 +194,7 @@ async function claimPointFromInvite({
193194 point,
194195 wallet.voting.keys.address
195196 );
196− votingTx.gas = 200000;
197+ votingTx.gas = GAS_LIMITS.SET_PROXY;
197198 txs.push(votingTx);
198199 }
199200 }
@@ -206,7 +207,7 @@ async function claimPointFromInvite({
206207 wallet.ownership.keys.address,
207208 false
208209 );
209− transferFinalTx.gas = 500000; //TODO can maybe be lower?
210+ transferFinalTx.gas = GAS_LIMITS.TRANSFER;
210211 txs.push(transferFinalTx);
211212
212213 //