Added details

This commit is contained in:
Aleksandr Kraiz
2022-08-31 16:17:22 +04:00
parent 8cf0e5f963
commit dcbd07572d

View File

@@ -568,13 +568,13 @@ const data = utils.parseExchangeTradeTransaction({
});
switch (data.type) {
case "fillOrders":
case "fillOrders": // through aggregator — CEX
console.log(data.args.orders.buyOrder);
break;
case "fillThroughOrionPool":
case "fillThroughOrionPool": // through aggregator — DEX (pools)
console.log(data.args.order);
break;
case "swapThroughOrionPool":
case "swapThroughOrionPool": // through DEX (pools) directly
console.log(data.args.amount_spend);
break;
}