@@ -46,7 +46,6 @@ import {
46
46
type EthereumTxOtherParams ,
47
47
type EthereumWalletOtherData ,
48
48
type LastEstimatedGasLimit ,
49
- type MetaToken ,
50
49
type MetaTokenMap ,
51
50
asEthereumFees ,
52
51
asMetaTokenMap
@@ -209,23 +208,7 @@ export class EthereumEngine extends CurrencyEngine {
209
208
const valid = asMaybe ( asMetaTokenMap ) ( jsonObj ) != null
210
209
211
210
if ( valid ) {
212
- for ( const contractAddress in jsonObj ) {
213
- const { name, symbol, decimals, iconUrl } : MetaToken =
214
- jsonObj [ contractAddress ]
215
-
216
- this . allTokens . push ( {
217
- currencyCode : symbol ,
218
- currencyName : name ,
219
- denominations : [
220
- {
221
- name : symbol ,
222
- multiplier : Math . pow ( 10 , decimals ) . toString ( )
223
- }
224
- ] ,
225
- symbolImage : iconUrl ,
226
- contractAddress
227
- } )
228
- }
211
+ this . allTokens . push ( ...jsonObj )
229
212
} else {
230
213
this . log . error (
231
214
`Error: Fetched invalid metaTokens ${ JSON . stringify ( jsonObj ) } `
@@ -244,13 +227,13 @@ export class EthereumEngine extends CurrencyEngine {
244
227
245
228
Formula:
246
229
fee = baseMultiplier * baseFee + minPriorityFee
247
-
230
+
248
231
Where:
249
232
minPriorityFee = <minimum priority fee from info server>
250
233
baseFee = <latest block's base fee>
251
234
baseMultiplier = <multiplier from info server for low, standard, high, etc>
252
235
253
- Reference analysis for choosing 2 gwei minimum priority fee:
236
+ Reference analysis for choosing 2 gwei minimum priority fee:
254
237
https://hackmd.io/@q8X_WM2nTfu6nuvAzqXiTQ/1559-wallets#:~:text=2%20gwei%20is%20probably%20a%20very%20good%20default
255
238
*/
256
239
0 commit comments