Acala
Acala copied to clipboard
Swap fee referral cut
After https://github.com/AcalaNetwork/Acala/issues/2299
Update module-aggregated-dex to take an additional swap fee and send it to module-partner. The swap fee should be stored in storage and allow governance to update it.
In swap_with_exact_target/supply, after swap is completed, take some result token as fee and send it to module-partner