Skip to content

[feature] AffiliateCollector Module + Preferred Asset Swap #check-lint-warning

Eridanus (9R) requested to merge eridanus/1000-issue into develop

Closes #1000 (closed)

  • Adds a AffiliateCollector module, which keeps track of earned $RUNE for affiliates with a PreferredAsset 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 than outbound_fee(preferred_asset.chain) * multiplier, the preferred asset swap is triggered
  • #check-lint-warning added as THORName parsing was added to the SwapMemo struct and the NewSwapMemo function signature changed
Edited by Eridanus (9R)

Merge request reports

Loading