Browse Source

chore(order.service): support creating "DRIP" order

pull/1963/head
raskanskyz 2 years ago
parent
commit
cdf6b01a85
  1. 2
      apps/api/src/app/order/order.service.ts

2
apps/api/src/app/order/order.service.ts

@ -178,7 +178,7 @@ export class OrderService {
.plus(data.fee) .plus(data.fee)
.toNumber(); .toNumber();
if (data.type === 'BUY') { if (data.type === 'BUY' || data.type === 'DRIP') {
amount = new Big(amount).mul(-1).toNumber(); amount = new Big(amount).mul(-1).toNumber();
} }

Loading…
Cancel
Save