Skip to content

Commit

Permalink
Add ETHFI logo and prettier fix in advanced tools (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna authored Nov 27, 2024
1 parent 8cea998 commit b1cb2ea
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/config/transferRules.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
14 changes: 10 additions & 4 deletions src/hooks/useHandleTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
})
),
}));
Expand Down
15 changes: 15 additions & 0 deletions src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,21 @@ export const logoOverrides = new Map<string, string>([
"0x727f064a78dc734d33eec18d5370aef32ffd46e4",
"https://orion.money/assets/[email protected]",
],
// 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) => {
Expand Down

0 comments on commit b1cb2ea

Please sign in to comment.