This contains changes to make the daemon (v1) supporting ONLY the new tdex-protobuf and tdex-daemon v2 protos, where:
from trader POV, he can now select the asset in which paying the trading fees applied by a provider. The provider returns both a preview amount and a fee amount. These amounts, along with the one of the request message, should be used in the swap request message, which now contains 2 new fields string fee_asset and uint64 fee_amount. It's also up to the trader to correctly charge the fee to either the input or output amount when crafting the swap request tx.
from operator POV, he can now set percentage fees on both assets on the market just like the fixed one (we'll add fee policies in future PR). Given this change, the env var for the default percentage fee has been dropped.
He can also set an optional name for a market. In the future, he will be able to refer to a market with this name, as an alternative to using both assets.
This contains changes to make the daemon (v1) supporting ONLY the new tdex-protobuf and tdex-daemon v2 protos, where:
string fee_asset
anduint64 fee_amount
. It's also up to the trader to correctly charge the fee to either the input or output amount when crafting the swap request tx.Closes #670.
Please @sekulicd @tiero review this.