refactor xmr rate module to exchange rate module for multi crypto support
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { ExchangeRatePaymentMethod } from './exchangeRatePaymentMethods';
|
||||
import { PaymentMethod } from '../../payment/types/PaymentMethod';
|
||||
|
||||
export const COINPAPRIKA_ID_BY_PAYMENT_METHOD = {
|
||||
[PaymentMethod.Xmr]: 'xmr-monero',
|
||||
[PaymentMethod.Btc]: 'btc-bitcoin'
|
||||
} as const satisfies Record<ExchangeRatePaymentMethod, string>;
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { ExchangeRatePaymentMethod } from './exchangeRatePaymentMethods';
|
||||
import { PaymentMethod } from '../../payment/types/PaymentMethod';
|
||||
|
||||
export const COINGECKO_ID_BY_PAYMENT_METHOD = {
|
||||
[PaymentMethod.Xmr]: 'monero',
|
||||
[PaymentMethod.Btc]: 'bitcoin'
|
||||
} as const satisfies Record<ExchangeRatePaymentMethod, string>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import { PaymentMethod } from '../../payment/types/PaymentMethod';
|
||||
|
||||
export const EXCHANGE_RATE_PAYMENT_METHODS = [PaymentMethod.Xmr, PaymentMethod.Btc] as const;
|
||||
|
||||
export type ExchangeRatePaymentMethod = (typeof EXCHANGE_RATE_PAYMENT_METHODS)[number];
|
||||
Reference in New Issue
Block a user