Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ETHFI logo and prettier fix in advanced tools #1200

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading