[feature] AffiliateCollector Module + Preferred Asset Swap #check-lint-warning
Closes #1000 (closed)
- Adds a
AffiliateCollector
module, which keeps track of earned $RUNE for affiliates with aPreferredAsset
set on their THORName. - $RUNE is accrued, associated with the THORName's owner address, in the
AffiliateCollector
module - New constant:
PreferredAssetOutboundFeeMultiplier
(initially set at 100): When the accrued RUNE is greater thanoutbound_fee(preferred_asset.chain) * multiplier
, the preferred asset swap is triggered -
#check-lint-warning
added as THORName parsing was added to theSwapMemo
struct and theNewSwapMemo
function signature changed
Edited by Eridanus (9R)