@renegade-fi/core
Version:
VanillaJS library for Renegade
16 lines • 589 B
JavaScript
import { ADMIN_MATCHING_POOL_DESTROY_ROUTE } from "../constants.js";
import { postRelayerWithAdmin } from "../utils/http.js";
export async function destroyMatchingPool(config, parameters) {
const { matchingPool } = parameters;
const { getBaseUrl } = config;
try {
await postRelayerWithAdmin(config, getBaseUrl(ADMIN_MATCHING_POOL_DESTROY_ROUTE(matchingPool)));
}
catch (error) {
console.error(`Failed to destroy matching pool ${matchingPool}`, {
error,
});
throw error;
}
}
//# sourceMappingURL=destroyMatchingPool.js.map