Aggregator UI Widget
Advanced Configuration
A few widget parameters you should know about
Setup widget referral
If you are a unique referral you can specify your referral as a parameter in the widget’s creator function createSwapWidget
To pass the referral we have a widgetReferral
configuration parameter
You can do it in a similar way:
Setup widget custom fees
If you are an partner of swap.coffee
and have a unique referral you can pass custom fee settings directly into the widget configuration
- You can read more about the concept of partner custom commissions 👉 here
To pass the referral we have a customFeeSettings
configuration parameter
You can do it in a similar way:
- So, passing instead of
TEST_WIDGET_REFERRAL
your referral the widget will recognize your referral(only if it is valid)
and share the profit with the widget integrator.
Conclusion
To receive profit from the protocol, you must have an ACTIVE referral
and complete the custom fee settings
.
💡 Tip: If you are interested in creating a unique referral for your integration, contact 👉 Lizard.