Alcor
  • Alcor.exchange
  • What is Alcor Exchange?
  • Home Page Overview
    • Swap
      • Swap Charts
      • Add Liquidity
      • Manage Liquidity
    • Markets
      • Market Exchange
        • Order Books
        • Graph
        • Open Orders
        • Placing Trades
    • OTC
    • NFT
    • Wallet
  • Developers API
    • Amm Swap Contract API
      • Formulas
      • Contracts
      • Examples
    • Market creation
      • Open new market
    • Contract actions
    • Contract Tables
    • API
      • Markets API
      • Account
      • WebSocket
      • Node API
    • Public Alcor Data Access
  • Alcor Swap
    • Referral / Custom Market Fee
    • Introduction
    • Swap Page
    • Locking Liquidity
    • Providing liquidity
      • How to Add Liquidity on Alcor Exchange
    • Ranges: Everything you need to know
      • How to set a Range for your Liquidity position
    • Pool Page
    • Liquidity Provider FAQ
    • Concentrated liquidity FAQ
    • AlcorSwap v2 Price Oracles
      • Alcor Price Oracle vs DelphiOracle
      • Expanding Price Availability with RAM Purchase
      • How to Use Alcor Price Oracle
  • Alcor Farms: Unlocking DeFi Opportunities
    • Creating Farm Incentives - Quick Tutorial
    • Project Farms Unique Link
    • Technical details
  • LSW- Liquid Staked WAX
    • How it works
    • Exchange rate
    • Withdrawal process
  • Adding Token Information
    • Token logo
    • USD Price
  • Swap Widget
    • Swap Chart Widget
  • Networks Features
    • WAX
      • Alcor USDT
  • Additional Docs
  • Definitions
  • FAQ
    • Does Alcor Exchange Have Fees?
    • Whats the difference between using Swap, Market Trade, and OTC?
    • What is a liquidity Pool?
  • Social Media/Contact
Powered by GitBook
On this page

Was this helpful?

  1. Alcor Swap

Referral / Custom Market Fee

Referral program for additional earnings for providing UI for Alcor Swap

PreviousAlcor SwapNextIntroduction

Last updated 1 year ago

Was this helpful?

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.

(for example WAX contract)

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.

&market=<marketName>

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

https://alcor.exchange/swap?market=fees.alcor

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

Add widget to your site

And add the market query parameter to your iframe URL

<iframe src="http://alcor.exchange/swap-widget?market=<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
Swap Widget
https://wax.bloks.io/account/swap.alcor?loadContract=true&tab=Actions&account=swap.alcor&scope=swap.alcor&limit=100&action=regmarket