mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-25 23:27:41 +03:00
Fix: pools instead ORION_POOL
This commit is contained in:
@@ -126,7 +126,7 @@ export default async function swapMarket({
|
||||
assetOut,
|
||||
amount.toString(),
|
||||
options?.instantSettlement,
|
||||
options?.poolOnly ? ['ORION_POOL'] : undefined,
|
||||
options?.poolOnly ? 'pools' : undefined,
|
||||
);
|
||||
|
||||
const { exchanges: swapExchanges } = swapInfo;
|
||||
|
||||
14
src/constants/exchanges.ts
Normal file
14
src/constants/exchanges.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export default [
|
||||
// CEXes
|
||||
'ASCENDEX',
|
||||
'OKX',
|
||||
'BINANCE',
|
||||
'KUCOIN',
|
||||
|
||||
// DEXes
|
||||
'SPOOKYSWAP',
|
||||
'PANCAKESWAP',
|
||||
'UNISWAP',
|
||||
'QUICKSWAP',
|
||||
'ORION_POOL',
|
||||
] as const;
|
||||
@@ -1,4 +1,5 @@
|
||||
import BigNumber from 'bignumber.js';
|
||||
import exchanges from './constants/exchanges';
|
||||
import orderStatuses from './constants/orderStatuses';
|
||||
import subOrderStatuses from './constants/subOrderStatuses';
|
||||
|
||||
@@ -197,6 +198,4 @@ export type BalanceIssue = {
|
||||
readonly fixes?: Fix[],
|
||||
}
|
||||
|
||||
const availableExchanges = ['ORION_POOL', 'ASCENDEX', 'BINANCE', 'KUCOIN'] as const;
|
||||
|
||||
export type Exchange = typeof availableExchanges[number];
|
||||
export type Exchange = typeof exchanges[number];
|
||||
|
||||
Reference in New Issue
Block a user