From 0f52fec3f52a3b8122492b088db3f2c3bb151fd6 Mon Sep 17 00:00:00 2001 From: yuli-ferna Date: Wed, 27 Nov 2024 12:04:52 -0300 Subject: [PATCH 1/3] Add ETHFI logo in advanced tools --- src/utils/consts.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/utils/consts.ts b/src/utils/consts.ts index 14b9ee05..1ba83c22 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -1984,6 +1984,21 @@ export const logoOverrides = new Map([ "0x727f064a78dc734d33eec18d5370aef32ffd46e4", "https://orion.money/assets/ORION-LOGO-2.1-GREEN@256x256.png", ], + // ETHFI ETH + [ + "0xfe0c30065b384f05761f15d0cc899d4f9f9cc0eb", + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" + ], + // ETHFI ARB + [ + "0x7189fb5b6504bbff6a852b13b7b82a3c118fdc27", + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" + ], + // ETHFI BASE + [ + "0x6C240DDA6b5c336DF09A4D011139beAAa1eA2Aa2", + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" + ] ]); export const getHowToAddTokensToWalletUrl = (chainId: ChainId) => { From 26a45c841889aa44dc541277427a92af59c546fa Mon Sep 17 00:00:00 2001 From: yuli-ferna Date: Wed, 27 Nov 2024 12:06:56 -0300 Subject: [PATCH 2/3] fix prettie --- src/utils/consts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/consts.ts b/src/utils/consts.ts index 1ba83c22..57fda0ca 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -1987,18 +1987,18 @@ export const logoOverrides = new Map([ // ETHFI ETH [ "0xfe0c30065b384f05761f15d0cc899d4f9f9cc0eb", - "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562", ], // ETHFI ARB [ "0x7189fb5b6504bbff6a852b13b7b82a3c118fdc27", - "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562", ], // ETHFI BASE [ "0x6C240DDA6b5c336DF09A4D011139beAAa1eA2Aa2", - "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562" - ] + "https://assets.coingecko.com/coins/images/35958/large/etherfi.jpeg?1710254562", + ], ]); export const getHowToAddTokensToWalletUrl = (chainId: ChainId) => { From 96b1ac53b9fda70ea52cfa1d1f07173c44ac58c8 Mon Sep 17 00:00:00 2001 From: yuli-ferna Date: Wed, 27 Nov 2024 12:07:58 -0300 Subject: [PATCH 3/3] fix prettie --- src/config/transferRules.ts | 5 +---- src/hooks/useHandleTransfer.tsx | 14 ++++++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/config/transferRules.ts b/src/config/transferRules.ts index f02f021c..fc5ce5a8 100644 --- a/src/config/transferRules.ts +++ b/src/config/transferRules.ts @@ -1,7 +1,4 @@ -import { - CHAIN_ID_BSC, - CHAIN_ID_ETH, -} from "@certusone/wormhole-sdk"; +import { CHAIN_ID_BSC, CHAIN_ID_ETH } from "@certusone/wormhole-sdk"; // import { terra } from "@certusone/wormhole-sdk"; import { Rule, PredicateArgs } from "../hooks/useWarningRulesEngine"; diff --git a/src/hooks/useHandleTransfer.tsx b/src/hooks/useHandleTransfer.tsx index 8859e96f..55a2a83f 100644 --- a/src/hooks/useHandleTransfer.tsx +++ b/src/hooks/useHandleTransfer.tsx @@ -807,9 +807,9 @@ async function terra( /** * if raw tx logs are not present, add them to the tx object - * @param tx + * @param tx * @returns tx with raw logs - * + * * Note: applied the fix here, since wormhole sdk has been deprecated */ function addInjectiveRawLogsToTx(tx: TxResponse): TxResponse { @@ -820,8 +820,14 @@ function addInjectiveRawLogsToTx(tx: TxResponse): TxResponse { type: event.type, attributes: event.attributes.map( (attr: { key: Uint8Array; value: Uint8Array }) => ({ - key: attr.key instanceof Uint8Array ? decoder.decode(attr.key) : attr.key, - value: attr.value instanceof Uint8Array ? decoder.decode(attr.value) : attr.value, + key: + attr.key instanceof Uint8Array + ? decoder.decode(attr.key) + : attr.key, + value: + attr.value instanceof Uint8Array + ? decoder.decode(attr.value) + : attr.value, }) ), }));