Skip to content

Commit 3d5a464

Browse files
authored
Merge pull request #229 from bitholla/hotfix-1.5.10
Hotfix 1.5.10
2 parents 5ea4144 + 41a2f00 commit 3d5a464

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

plugins/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ exports.ERC_TOKENS = [
5959
'leo',
6060
'xaut',
6161
'busd'
62-
];
62+
];
63+
64+
exports.VAULT_ENDPOINT = 'https://api.vault.bitholla.com/v1';

plugins/vault/crons/checkWithdrawals.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const { Deposit, User, sequelize } = require('../../../db/models');
44
const rp = require('request-promise');
55
const { each } = require('lodash');
66
const { all, delay } = require('bluebird');
7-
const { VAULT_ENDPOINT, GET_CONFIGURATION, GET_SECRETS } = require('../../../constants');
7+
const { GET_CONFIGURATION, GET_SECRETS } = require('../../../constants');
8+
const { VAULT_ENDPOINT } = require('../../constants');
89
const mathjs = require('mathjs');
910
const { loggerDeposits } = require('../../../config/logger');
1011
const VAULT_NAME = () => GET_SECRETS().vault.name;
@@ -67,7 +68,7 @@ const checkWithdrawals = () => {
6768
qs: {
6869
txid
6970
},
70-
uri: `${VAULT_ENDPOINT}/${VAULT_WALLET(txids[txid][0].currency)}/transactions`,
71+
uri: `${VAULT_ENDPOINT}/wallet/${VAULT_WALLET(txids[txid][0].currency)}/transactions`,
7172
json: true
7273
};
7374
return delay(500 * i)

plugins/vault/crons/processWithdrawals.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const { Deposit, sequelize, User, Sequelize } = require('../../../db/models');
44
const rp = require('request-promise');
55
const { each } = require('lodash');
66
const { all, delay } = require('bluebird');
7-
const { VAULT_ENDPOINT, GET_CONFIGURATION, GET_SECRETS } = require('../../../constants');
8-
const { ERC_TOKENS } = require('../../constants');
7+
const { GET_CONFIGURATION, GET_SECRETS } = require('../../../constants');
8+
const { ERC_TOKENS, VAULT_ENDPOINT } = require('../../constants');
99
const moment = require('moment');
1010
const { loggerDeposits } = require('../../../config/logger');
1111
const mathjs = require('mathjs');
@@ -134,7 +134,7 @@ const processWithdrawals = () => {
134134
amount: getAmount(withdrawal.amount, withdrawal.fee)
135135
}
136136
},
137-
uri: `${VAULT_ENDPOINT}/${VAULT_WALLET(withdrawal.currency)}/withdraw/simple`,
137+
uri: `${VAULT_ENDPOINT}/wallet/${VAULT_WALLET(withdrawal.currency)}/withdraw/simple`,
138138
json: true
139139
},
140140
dbWithdrawals: [withdrawal]
@@ -167,7 +167,7 @@ const processWithdrawals = () => {
167167
};
168168
})
169169
},
170-
uri: `${VAULT_ENDPOINT}/${VAULT_WALLET('btc')}/withdraw/batch`,
170+
uri: `${VAULT_ENDPOINT}/wallet/${VAULT_WALLET('btc')}/withdraw/batch`,
171171
json: true,
172172
},
173173
dbWithdrawals: btcWithdrawals
@@ -189,7 +189,7 @@ const processWithdrawals = () => {
189189
};
190190
})
191191
},
192-
uri: `${VAULT_ENDPOINT}/${VAULT_WALLET('bch')}/withdraw/batch`,
192+
uri: `${VAULT_ENDPOINT}/wallet/${VAULT_WALLET('bch')}/withdraw/batch`,
193193
json: true
194194
},
195195
dbWithdrawals: bchWithdrawals

plugins/vault/helpers.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
const { VAULT_ENDPOINT, API_HOST, GET_CONFIGURATION, GET_SECRETS } = require('../../constants');
3+
const { API_HOST, GET_CONFIGURATION, GET_SECRETS } = require('../../constants');
4+
const { VAULT_ENDPOINT } = require('../constants');
45
const rp = require('request-promise');
56
const { intersection, union, each } = require('lodash');
67
const WEBHOOK_URL = (coin) => `${API_HOST}/v1/deposit/${coin}`;
@@ -151,7 +152,7 @@ const checkWebhook = (wallet, vaultConfig) => {
151152
body: {
152153
url: WEBHOOK_URL(wallet.currency)
153154
},
154-
uri: `${VAULT_ENDPOINT}/${wallet.name}/webhook`,
155+
uri: `${VAULT_ENDPOINT}/wallet/${wallet.name}/webhook`,
155156
json: true
156157
};
157158
return rp(options);

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.9
1+
1.5.10

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hollaex-kit",
3-
"version": "1.5.9",
3+
"version": "1.5.10",
44
"private": true,
55
"dependencies": {
66
"@material/button": "0.7.0",

web/src/config/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export const EXCHANGE_EXPIRY_DAYS = 15;
520520
export const EXCHANGE_EXPIRY_SECONDS = EXCHANGE_EXPIRY_DAYS * 86400;
521521
export const SUPPORT_HELP_URL =
522522
'https://info.hollaex.com/hc/en-us/requests/new';
523-
export const REQUEST_VAULT_SUPPORTED_COINS = 'https://api.bitholla.com/v1/vault/coins';
523+
export const REQUEST_VAULT_SUPPORTED_COINS = 'https://api.vault.bitholla.com/v1/coins';
524524
export const ADMIN_GUIDE_DOWNLOAD_LINK = 'https://bitholla.s3.ap-northeast-2.amazonaws.com/kit/Admin+panel+manual.pdf';
525525

526526
export const MAX_NUMBER_BANKS = 3;

0 commit comments

Comments
 (0)