always adjust offer amount

This commit is contained in:
woodser 2025-01-17 10:28:11 -05:00
parent a33c7fd830
commit f6268c4d9f
2 changed files with 10 additions and 14 deletions

View file

@ -808,7 +808,7 @@ export default class HavenoClient {
try {
return (await this._priceClient.getMarketPrice(new MarketPriceRequest().setCurrencyCode(assetCode), {password: this._password})).getPrice();
} catch (e: any) {
if (e.message.indexOf("not found") >= 0) return undefined;
if (e.message.indexOf("not found") >= 0) return undefined; // TODO: return unknown price server side (0?)
throw new HavenoError(e.message, e.code);
}
}