Referral / Custom Market Fee

Referral program for additional earnings for providing UI for Alcor Swap

Register your market

To receive additional commission as a referral or as an additional UI provider. First, you need to register your account which will receive your additional fee, specifying the amount of the desired fee. The fee will be charged from input token amount and sent to market account.

Call regmarket action on swap.alcor contract with following parameters:

  • marketName: account for receiving fee.

  • marketFee: as part of 10^6

marketFee Percent should be part of the 10^6 number. For example:

1000 will be 0.1%
500 will be 0.05%

and so on.

MAXIMUM fee is: 10000 (1%).

Chose the UI you want to attract users to.

There are few option for you.

1) Land user to Alcor Swap page directly

Simply add your market(from 1 step) as query parameter to swap url and share this as your referal link.


// For example
// The fee will be sent to fees.alcor account

2) User Swap Widget(Iframe) on your web site

Add widget to your site

Swap Widget

And add the market query parameter to your iframe URL

<iframe src="<marketAccount>"></iframe>

3) Create custom UI and add your market to swap memo, use following format:

<swapexactin/swapexactout>#<Pool ID's>#<Recipient>#<Output Token>#<Deadline>#<marketAccount>

// Example | fees.alcor is market account thar receives fee
swapexactin#401,1212#alcordexfund#5.3645 USDT@usdt.alcor#0#fees.alcor

Last updated