💰Monetization
How to enable affiliate in Rango Widget?
Last updated
How to enable affiliate in Rango Widget?
Last updated
You can charge widget users a fee for any of their successful transactions performed through the widget. Below, we present a detailed tutorial on activating affiliate functionality for your decentralized application (dApp) using the Rango Widget Config.
To begin, you should navigate to the Rango dApp affiliate section and establish a connection with your EVM-compatible wallet. From there, you can generate a referral link by clicking on the "Invite Friends" button.
After creating the link, you will notice that your affiliateRef
code is located at the end of the link, similar to the illustration provided. By default, Rango will utilize the wallet address you used during the link creation process to deliver your affiliate reward.
By utilizing the affiliateRef
that you generated in step 1, you can enable the fee collection feature within the widget by passing this parameter to the widget configuration as shown below:
Whenever a user initiates a swap using the Rango Widget, you will receive a referral percent of 0.1% from the input amount. If desired, you can customize the affiliate percent by including the parameter "affiliate.percent" in the configuration. Please note that the maximum allowed value for the affiliate percent is 3 percent.