Skip to content

Commit

Permalink
Merge pull request #16 from clober-dex/fix/native
Browse files Browse the repository at this point in the history
fix: replace native token symbol/name at Sonic
  • Loading branch information
Dorvin authored Dec 18, 2024
2 parents b5ac260 + 63dab33 commit 68f7bf1
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 68f7bf1

Please # to comment.