Handle affiliate fees correctly on actions page
Theorethically affiliate swaps have one inbound but two outbound transactions with two outgoing fee events.
We should handle this in actions endpoint well. There are several issues:
- Currently we show two separate swaps, but they are joined incorrectly, the affiliate fee can be joined together with the second leg.
- both fees show up for both transactions.
- both outbounds show up for both transactions.
- refunds may have affiliate fees too.
We should make it clear from the actions page what's happening. The suggested solution is to show one swap only with adding a metadata item about affiliate fees.
A second solution might be to show two separate action with the same ID(e.g. two swaps) but make sure that the each fee and outbound shows up only once.
Edited by Muninn Raven