-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): remove circular reference in tokens env file
- Loading branch information
1 parent
8c5a293
commit de5c6de
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { SUPPORTED_BITCOIN_TOKENS } from '$env/tokens.btc.env'; | ||
import { BTC_MAINNET_ENABLED } from '$env/networks.btc.env'; | ||
import { BTC_MAINNET_TOKEN, BTC_REGTEST_TOKEN, BTC_TESTNET_TOKEN } from '$env/tokens.btc.env'; | ||
import { SUPPORTED_ETHEREUM_TOKENS } from '$env/tokens.env'; | ||
import type { Token } from '$lib/types/token'; | ||
|
||
export const [DEFAULT_ETHEREUM_TOKEN, _rest] = SUPPORTED_ETHEREUM_TOKENS; | ||
|
||
// The following tokens are used as fallback for any Bitcoin token defined in the token store. | ||
// That means that the order of the tokens in the array is important, to have a correct fallback chain. | ||
export const SUPPORTED_BITCOIN_TOKENS: [...Token[], Token] = [ | ||
...(BTC_MAINNET_ENABLED ? [BTC_MAINNET_TOKEN] : []), | ||
BTC_TESTNET_TOKEN, | ||
BTC_REGTEST_TOKEN | ||
]; | ||
|
||
export const [DEFAULT_BITCOIN_TOKEN, _] = SUPPORTED_BITCOIN_TOKENS; |