diff --git a/server/api/swagger/swagger.yaml b/server/api/swagger/swagger.yaml index da6b4af4c0..239a78fa26 100644 --- a/server/api/swagger/swagger.yaml +++ b/server/api/swagger/swagger.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: "2.0.13" + version: "2.0.14" title: HollaEx Kit host: api.hollaex.com basePath: /v2 diff --git a/server/package.json b/server/package.json index 35d5176567..2bca5ec4f6 100644 --- a/server/package.json +++ b/server/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.13", + "version": "2.0.14", "private": false, "description": "HollaEx Kit", "keywords": [ diff --git a/server/tools/nginx/logs/nginx.pid b/server/tools/nginx/logs/nginx.pid new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/server/tools/nginx/logs/nginx.pid @@ -0,0 +1 @@ +1 diff --git a/version b/version index 476ede462b..5ad8f21ac9 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.13 \ No newline at end of file +2.0.14 \ No newline at end of file diff --git a/web/package-lock.json b/web/package-lock.json index 347972c397..1e1cd97a2d 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,6 +1,6 @@ { "name": "hollaex-kit", - "version": "2.0.12", + "version": "2.0.13", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -10608,11 +10608,6 @@ "verror": "1.10.0" } }, - "jssha": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/jssha/-/jssha-2.3.1.tgz", - "integrity": "sha1-FHshJTaQNcpLL30hDcU58Amz3po=" - }, "jsx-ast-utils": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.4.1.tgz", @@ -20166,15 +20161,6 @@ "makeerror": "1.0.x" } }, - "wallet-address-validator": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/wallet-address-validator/-/wallet-address-validator-0.2.4.tgz", - "integrity": "sha512-3fp0pVdhaCA6UoPK3CQFx9Y+ckQgFlCa9rOQ7DZr2Uzlh0kYKs3NaSwIDn4FSceDsi1g6W28EWDrlr9Pr3mI3Q==", - "requires": { - "base-x": "^3.0.4", - "jssha": "2.3.1" - } - }, "warning": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", diff --git a/web/package.json b/web/package.json index 638b7d57aa..094ff8b235 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "hollaex-kit", - "version": "2.0.13", + "version": "2.0.14", "private": true, "dependencies": { "@ant-design/compatible": "1.0.5", diff --git a/web/src/components/Form/validations.js b/web/src/components/Form/validations.js index c3e3620a99..e4639396e4 100644 --- a/web/src/components/Form/validations.js +++ b/web/src/components/Form/validations.js @@ -4,6 +4,7 @@ import math from 'mathjs'; import bchaddr from 'bchaddrjs'; import { roundNumber } from '../../utils/currency'; import STRINGS from '../../config/localizedStrings'; +import { getDecimals } from 'utils/utils'; const passwordRegEx = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/; const usernameRegEx = /^[a-z0-9_]{3,15}$/; @@ -241,10 +242,16 @@ export const normalizeInt = (value) => { return ''; } }; -export const normalizeFloat = (value) => { +export const normalizeFloat = (value = '', increment = 0.01) => { if (validator.isFloat(value)) { + const incrementPrecision = getDecimals(increment); + const valuePrecision = (value + '.').split('.')[1].length; + const precision = math.min(valuePrecision, incrementPrecision); if (validator.toFloat(value)) { - return math.format(validator.toFloat(value), { notation: 'fixed' }); + return math.format(validator.toFloat(value), { + notation: 'fixed', + precision, + }); } else { return 0; } diff --git a/web/src/containers/Admin/Tiers/Fees.js b/web/src/containers/Admin/Tiers/Fees.js index 7f187ca004..c85efa7c3c 100644 --- a/web/src/containers/Admin/Tiers/Fees.js +++ b/web/src/containers/Admin/Tiers/Fees.js @@ -15,6 +15,8 @@ const getHeaders = (userTiers, ICONS, onEditFees) => { title: 'Pairs', dataIndex: 'pair_base', key: 'pair_base', + width: 150, + fixed: 'left', render: (pair_base, { name }) => (