Skip to content

Commit

Permalink
fix: replace native token symbol/name at Sonic
Browse files Browse the repository at this point in the history
  • Loading branch information
JhChoy committed Dec 18, 2024
1 parent b5ac260 commit 63dab33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Token,
} from '../generated/schema'

import { BERA_TESTNET, getChainId, MITOSIS_TESTNET } from './addresses'
import { BERA_TESTNET, getChainId, MITOSIS_TESTNET, SONIC_MAINNET } from './addresses'

export const ADDRESS_ZERO = '0x0000000000000000000000000000000000000000'

Expand Down Expand Up @@ -123,6 +123,8 @@ function getNativeTokenSymbol(chainId: BigInt): string {
return 'BERA'
} else if (chainId == MITOSIS_TESTNET) {
return 'MITO'
} else if (chainId == SONIC_MAINNET) {
return 'S'
} else {
return 'ETH'
}
Expand All @@ -133,6 +135,8 @@ function getNativeTokenName(chainId: BigInt): string {
return 'BERA Token'
} else if (chainId == MITOSIS_TESTNET) {
return 'MITO Token'
} else if (chainId == SONIC_MAINNET) {
return 'S Token'
} else {
return 'Ether'
}
Expand Down

0 comments on commit 63dab33

Please # to comment.