tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

Update MarketReport to v2 #697

Closed altafan closed 1 year ago

altafan commented 1 year ago

Before this, the trading fees returned by the GetMarketReport response were always calculated on the input amount of the swap transaction.

Since now the trade domain contains the explicit fee asset and amount paid by the trader, this introduces changes to use them instead of inferring the trading fees.

This also changes the FeeInfo proto message to contain info about percentage and fixed fees, and the total trading fee amount.

Closes #692.