@renegade-fi/core
Version:
VanillaJS library for Renegade
16 lines • 722 B
JavaScript
import { ADMIN_GET_ORDER_MATCHING_POOL_ROUTE } from "../constants.js";
import { getRelayerWithAdmin } from "../utils/http.js";
export async function getOrderMatchingPool(config, parameters) {
const { orderId } = parameters;
const { getBaseUrl } = config;
const logger = config.getLogger("core:actions:getOrderMatchingPool");
try {
const res = await getRelayerWithAdmin(config, getBaseUrl(ADMIN_GET_ORDER_MATCHING_POOL_ROUTE(orderId)));
return res.matching_pool;
}
catch (error) {
logger.error(`Failed to get matching pool: ${error instanceof Error ? error.message : String(error)}`, { orderId });
throw error;
}
}
//# sourceMappingURL=getOrderMatchingPool.js.map