fix: trades not working under ccxt

This commit is contained in:
Rafael Taranto 2023-09-26 11:56:42 +01:00
parent ba19ae327a
commit e3421a33a7
4 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@ const DEFAULT_PRICE_PRECISION = 2
const DEFAULT_AMOUNT_PRECISION = 8
function trade (side, account, tradeEntry, exchangeName) {
const { cryptoAtoms, fiatCode, _cryptoCode, tradeId } = tradeEntry
const { cryptoAtoms, fiatCode, cryptoCode: _cryptoCode, tradeId } = tradeEntry
try {
const cryptoCode = coinUtils.getEquivalentCode(_cryptoCode)
const exchangeConfig = ALL[exchangeName]

View file

@ -4,7 +4,7 @@
"license": "unlicense",
"dependencies": {
"@apollo/react-hooks": "^3.1.3",
"@lamassu/coins": "v1.3.2",
"@lamassu/coins": "v1.3.3",
"@material-ui/core": "4.11.0",
"@material-ui/icons": "4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",

6
package-lock.json generated
View file

@ -6869,9 +6869,9 @@
}
},
"@lamassu/coins": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/@lamassu/coins/-/coins-1.3.2.tgz",
"integrity": "sha512-74GMEaVLpUhxW321UTDH0Ot9oNcoC4yEEeN1F91SU9ug8Jbsrp/KlsMgOWvc0EbRZF0YbsU3dj54i7+4dvLVfQ==",
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/@lamassu/coins/-/coins-1.3.3.tgz",
"integrity": "sha512-BduHgzPMlwf9PrTNgnhXmuzTiO5hjlV19Y64SfMb4Ng8AGkI5YXzNpmOE4VhSunJMB8fl0rNC89zVMRuunIzQg==",
"requires": {
"bech32": "2.0.0",
"big-integer": "^1.6.48",

View file

@ -9,7 +9,7 @@
"@ethereumjs/common": "^2.6.4",
"@ethereumjs/tx": "^3.5.1",
"@graphql-tools/merge": "^6.2.5",
"@lamassu/coins": "v1.3.2",
"@lamassu/coins": "v1.3.3",
"@simplewebauthn/server": "^3.0.0",
"@vonage/auth": "^1.5.0",
"@vonage/sms": "^1.7.0",