import { chainIds as e } from "../constants/chains.constants.mjs";
import { API_CONFIG as t } from "../constants/server.constants.mjs";
import { SERVER_URL as n } from "./getServerURL.mjs";
import { httpClient as r } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
//#region libs/shared/common/src/API/callOdosAPI.ts
async function i(i, a) {
	return [e.base, e.localhost].includes(i) || (a.referralCode = "702077826"), r.post(`${n}${t.ROUTES.callOdosAPI}`, a);
}
var a = async (e, i) => {
	try {
		return (await r.get(`${n}${t.ROUTES.getOdosPriceForToken(e, i)}`)).price;
	} catch {
		return;
	}
};
//#endregion
export { i as callOdosAPI, a as getOdosPriceForToken };
