Skip to content

Commit

Permalink
chore: add EURXOF pair
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Aug 21, 2023
1 parent 66563c9 commit 705c0b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export DEVMODE=true
export HTTP_RPC_PROVIDER_URL=https://forno.celo.org
export HTTP_RPC_PROVIDER_URL=https://baklava-forno.celo-testnet.org
export WS_RPC_PROVIDER_URL=wss://forno.celo.org/ws
export PRICE_SOURCES=$(cat devPriceSourcesConfig.txt)
export OVERRIDE_INDEX=1
Expand Down
16 changes: 3 additions & 13 deletions devPriceSourcesConfig.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
[
[
{exchange: 'COINBASE', symbol: 'CELOUSD', toInvert: false},
{exchange: 'ALPHAVANTAGE', symbol: 'USDXOF', toInvert: false}
],
[
{exchange: 'COINBASE', symbol: 'CELOEUR', toInvert: false},
{exchange: 'ALPHAVANTAGE', symbol: 'XOFEUR', toInvert: true}
],
[
{exchange: 'COINBASE', symbol: 'CELOBTC', toInvert: false},
{exchange: 'COINBASE', symbol: 'BTCUSD', toInvert: false},
{exchange: 'ALPHAVANTAGE', symbol: 'USDXOF', toInvert: false}
[
[
{exchange: 'ALPHAVANTAGE', symbol: 'EURXOF', toInvert: false}
]
]
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export enum OracleCurrencyPair {
EUROCUSDC = 'EUROCUSDC',
XOFEUR = 'XOFEUR',
USDXOF = 'USDXOF',
EURXOF = 'EURXOF',
}

export const CoreCurrencyPair: OracleCurrencyPair[] = [
Expand Down Expand Up @@ -129,6 +130,7 @@ export const CurrencyPairBaseQuote: Record<
[OracleCurrencyPair.EUROCUSDC]: { base: ExternalCurrency.EUROC, quote: ExternalCurrency.USDC },
[OracleCurrencyPair.XOFEUR]: { base: ExternalCurrency.XOF, quote: ExternalCurrency.EUR },
[OracleCurrencyPair.USDXOF]: { base: ExternalCurrency.USD, quote: ExternalCurrency.XOF },
[OracleCurrencyPair.EURXOF]: { base: ExternalCurrency.EUR, quote: ExternalCurrency.XOF },
}

export enum AggregationMethod {
Expand Down

0 comments on commit 705c0b1

Please sign in to comment.