Skip to content

Commit

Permalink
fix: add CELOXOF as core pair
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Taveras committed Aug 17, 2023
1 parent 5734be7 commit 66563c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const CoreCurrencyPair: OracleCurrencyPair[] = [
OracleCurrencyPair.CELOEUR,
OracleCurrencyPair.CELOUSD,
OracleCurrencyPair.CELOBRL,
OracleCurrencyPair.CELOXOF,
]

export const CurrencyPairBaseQuote: Record<
Expand Down Expand Up @@ -168,6 +169,8 @@ export async function reportTargetForCurrencyPair(
} else if (pair === OracleCurrencyPair.CELOBRL) {
// Workaround until StableTokenBRL makes it fully to ContractKit.
return kit.registry.addressFor('StableTokenBRL' as CeloContract)
} else if (pair === OracleCurrencyPair.CELOXOF) {
return kit.registry.addressFor('StableTokenXOF' as CeloContract)
} else {
throw new Error(`${pair} can not be converted to a ReportTarget`)
}
Expand Down

0 comments on commit 66563c9

Please sign in to comment.