const e=require(`../constants/chains.constants.cjs`),t=require(`../constants/server.constants.cjs`),n=require(`./getServerURL.cjs`),r=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);async function i(i,a){return[e.chainIds.base,e.chainIds.localhost].includes(i)||(a.referralCode=`702077826`),r.httpClient.post(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.callOdosAPI}`,a)}var a=async(e,i)=>{try{return(await r.httpClient.get(`${n.SERVER_URL}${t.API_CONFIG.ROUTES.getOdosPriceForToken(e,i)}`)).price}catch{return}};exports.callOdosAPI=i,exports.getOdosPriceForToken=a;