Referral Program on Tsunami Exchange

Introduction

Referral programs are an important way to attract new users to the product. Running a referral program on Tsunami Exchange motivates users to bring in new members, help them use the exchange, and get rewarded for it based on trading volume.

The Tsunami team aims to build long-term relationships with Waves ambassadors and content creators, helping each other to share experiences and expand the user base.

How does it work?

You've probably heard about the concept of referral system before, its principle is very simple and in Tsunami Exchange:

  • The referrer, i.e. the inviting user must first register himself in the referral program.

  • Referrer generates a unique referral link. The link is stored on the blockchain and is visible in the referrer's user interface.

  • The link is transferred to the referral (invited user). It is stored in the referral's local vault.

  • When the referrer performs the first transaction (`increasePosition`), with the link passed to the contract call, a link is formed between the referrer and the referrer.

  • Then the referee starts to receive 20% of all the referral’s fees in $TSN tokens.

Contract

A separate contract is implemented for handling referral system. Contract implements the following methods:

  • acceptPaymentWithLink - from AMM only - accepts payment with referral link;

  • acceptPayment - from AMM only - accepts payment with referral only;

  • createReferralLink - from anyone - creates new referral link and stores it on blockchain;

  • claimRewards - user claims pending rewards from protocol in $TSN tokens.

UI

Referral link is passed in query parameters (parameter refLink=code).

Ref link is stored in subdomain cookie.

Ref code is passed to increasePosition contract method.

After the first call to `increasePosition` with the refLink parameter, the user is once by code bound to the referrer. After that, the user will not be able to change his referrer, regardless of the passed refLink parameter.

Conclusion

Let's summarize. As you can see, the principle of the referral program at Tsunami is very simple. All you have to do is register and start inviting referrals. By inviting new users, you help us develop, while earning income.

Twitter | Chat | News

Subscribe to Tsunami Exchange
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.