Skip to content

Commit

Permalink
Disable the proof of funds. Temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
skubarenko committed Aug 30, 2022
1 parent 8546efa commit 2f9bb6e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/exchange/exchangeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,19 +307,21 @@ export class ExchangeManager implements AtomexService {
if (!authToken)
throw new Error(`Cannot find auth token for address: ${accountAddress}`);

const currency: Currency['id'] = ordersHelper.isOrderPreview(newOrderRequest.orderBody)
const _currency: Currency['id'] = ordersHelper.isOrderPreview(newOrderRequest.orderBody)
? newOrderRequest.orderBody.from.currencyId
: symbolsHelper.convertSymbolAndSideToFromAndToCurrencies(newOrderRequest.orderBody.symbol, newOrderRequest.orderBody.side)[0];

return [{
address: accountAddress,
currency,
timeStamp: authToken.request.timeStamp,
message: authToken.request.message,
publicKey: authToken.request.publicKey,
signature: authToken.request.signature,
algorithm: authToken.request.algorithm
}];
return [
// {
// address: accountAddress,
// currency,
// timeStamp: authToken.request.timeStamp,
// message: authToken.request.message,
// publicKey: authToken.request.publicKey,
// signature: authToken.request.signature,
// algorithm: authToken.request.algorithm
// }
];
}

protected getCachedOrderBook(symbol: string): Promise<OrderBook | undefined> {
Expand Down

0 comments on commit 2f9bb6e

Please sign in to comment.