@riocrypto/common-server 1.0.1011 → 1.0.1012

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Fiat } from "@riocrypto/common";
2
- export declare const getExchangeRates: (from: Fiat, to: Fiat, volatilitySafeguard?: boolean) => Promise<{
2
+ export declare const getExchangeRates: (from: Fiat, to: Fiat, volatilitySafeguard: boolean) => Promise<{
3
3
  conversionRate: number;
4
4
  conversionRateWithVolatilityMarkup: number;
5
5
  conversionRateWithRioMarkup: number;
@@ -14,7 +14,7 @@ const common_1 = require("@riocrypto/common");
14
14
  const currency_api_client_1 = require("../clients/currency-api-client");
15
15
  const kapstar_client_1 = require("../clients/kapstar-client");
16
16
  const QUOTE_DURATION_MINUTES = 10;
17
- const getExchangeRates = (from, to, volatilitySafeguard = true) => __awaiter(void 0, void 0, void 0, function* () {
17
+ const getExchangeRates = (from, to, volatilitySafeguard) => __awaiter(void 0, void 0, void 0, function* () {
18
18
  const currencyAPIClient = yield (0, currency_api_client_1.buildCurrencyAPIClient)();
19
19
  const kapstarClient = yield (0, kapstar_client_1.buildKapstarClient)();
20
20
  const conversionRate = to === common_1.Fiat.BRL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1011",
3
+ "version": "1.0.1012",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",