Skip to content

Commit

Permalink
feat: fixing nebula currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenDurnford committed Jul 11, 2024
1 parent 87a23f1 commit e1987b5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
10 changes: 9 additions & 1 deletion hooks/useChainCurrency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mainnet, sepolia } from 'wagmi/chains'
import { mainnet, sepolia, skaleNebula } from 'wagmi/chains'
import { useMarketplaceChain } from 'hooks'
import { zeroAddress } from 'viem'

Expand All @@ -14,6 +14,14 @@ export default function () {
address: zeroAddress,
chainId: chain?.id || mainnet.id,
}
} else if (chain.id === skaleNebula.id) {
return {
name: 'Europa ETH',
symbol: 'ETH',
decimals: 18,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
chainId: 1482601649,
}
} else {
return {
...chain.nativeCurrency,
Expand Down
16 changes: 6 additions & 10 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,25 +423,21 @@ export default [
community: process.env.NEXT_PUBLIC_NEBULA_COMMUNITY,
listingCurrencies: [
{
chainId: 1482601649,
address: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
contract: '0xab01bad2c86e24d371a13ed6367bdca819589c5d',
symbol: 'ETH',
name: 'Europa ETH',
decimals: 18,
},
{
chainId: 1482601649,
address: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
contract: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
symbol: 'USDC',
name: 'USDC',
decimals: 18,
decimals: 6,
coinGeckoId: 'usd-coin',
},
{
chainId: 1482601649,
address: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
contract: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
symbol: 'SKL',
name: 'SKL',
decimals: 18,
coinGeckoId: 'skale',
},
],
oracleBidsEnabled: true,
Expand Down
6 changes: 3 additions & 3 deletions utils/paymentTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,14 +641,14 @@ export const chainPaymentTokensMap = {
chainId: 1482601649,
address: '0xcc205196288b7a26f6d43bbd68aaa98dde97276d',
symbol: 'USDC',
name: 'USDC',
decimals: 18,
name: 'Europa USDC',
decimals: 6,
},
{
chainId: 1482601649,
address: '0x7f73b66d4e6e67bcdeaf277b9962addcdabbfc4d',
symbol: 'SKL',
name: 'SKL',
name: 'Europa SKL',
decimals: 18,
},
],
Expand Down

0 comments on commit e1987b5

Please sign in to comment.