@riocrypto/common 1.0.588 → 1.0.590
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.
|
@@ -191,7 +191,7 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
191
191
|
// return "Dai is a stablecoin cryptocurrency on the Ethereum blockchain which aims to keep its value as close to one United States dollar as possible through a system of smart contracts and the decentralized participants which those contracts incentivize to perform maintenance and governance functions.";
|
|
192
192
|
}
|
|
193
193
|
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
194
|
-
return "USD Coin is a digital stablecoin pegged to the United States dollar.
|
|
194
|
+
return "USD Coin is a digital stablecoin pegged to the United States dollar.";
|
|
195
195
|
}
|
|
196
196
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
197
197
|
return "USDC on the Polygon chain.";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { Fiat } from "../types/fiat";
|
|
1
2
|
import { CustomError } from "./custom-error";
|
|
2
3
|
export declare class InvalidOrderSizeError extends CustomError {
|
|
3
4
|
private minAmount;
|
|
5
|
+
private minAmountFiat;
|
|
4
6
|
statusCode: number;
|
|
5
|
-
constructor(minAmount: number);
|
|
7
|
+
constructor(minAmount: number, minAmountFiat: Fiat);
|
|
6
8
|
serializeErrors(): {
|
|
7
9
|
message: string;
|
|
8
10
|
minAmount: number;
|
|
11
|
+
minAmountFiat: Fiat;
|
|
9
12
|
}[];
|
|
10
13
|
}
|
|
@@ -3,14 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InvalidOrderSizeError = void 0;
|
|
4
4
|
const custom_error_1 = require("./custom-error");
|
|
5
5
|
class InvalidOrderSizeError extends custom_error_1.CustomError {
|
|
6
|
-
constructor(minAmount) {
|
|
6
|
+
constructor(minAmount, minAmountFiat) {
|
|
7
7
|
super("Invalid order size");
|
|
8
8
|
this.minAmount = minAmount;
|
|
9
|
+
this.minAmountFiat = minAmountFiat;
|
|
9
10
|
this.statusCode = 400;
|
|
10
11
|
Object.setPrototypeOf(this, InvalidOrderSizeError.prototype);
|
|
11
12
|
}
|
|
12
13
|
serializeErrors() {
|
|
13
|
-
return [
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
message: "Invalid order size",
|
|
17
|
+
minAmount: this.minAmount,
|
|
18
|
+
minAmountFiat: this.minAmountFiat,
|
|
19
|
+
},
|
|
20
|
+
];
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
23
|
exports.InvalidOrderSizeError = InvalidOrderSizeError;
|