Skip to main content

Documentation Index

Fetch the complete documentation index at: https://staging-docs.orderly.network/llms.txt

Use this file to discover all available pages before exploring further.

1. Overview

Orderly adds a brand new affiliate programme that allows DEXs and their affiliates to configure referral commission sharing, including the base commission that guarantees earnings from direct referrals. The core model is a funneled and multilevel referral system:
  • Builders work with their direct affiliates to grow their trading platform, with attractive referral commissions for the direct affiliates to build their own multilevel referral networks.
  • Affiliates higher up the hierarchy can set higher commission sharing ratios and pass a portion of their commissions down to referees, subject to the base commission minimum pass-down rate.

2. Prerequisites

Only DEXs with a valid Broker ID can enable the affiliate program. This applies to all DEXs built with SDK, API, and low-code solution powered by Orderly One. Builders must first graduate to obtain a Broker ID before they are eligible to enable the affiliate program.

3. New vs. legacy affiliate programs

The key differences between the legacy and new affiliate programs are summarized below:
DetailsLegacyNew
Referral networkSingle-level, only direct referralsMultilevel (up to 15 levels), direct and indirect referrals
Referral commissionAffiliates earn commissions from direct referees onlyAffiliates earn commissions from both direct and indirect referees down the referral chain, with base commission guaranteed for direct referrals
Commission configurationSingle-level commission up to 100%, decided by builderBuilder configures base commission B, then optionally assigns additional multilevel referral commission M individually. The top-level total rate is X_1 = B + M.
Referral code creationCreated primarily by the builder or qualified affiliates upon meeting the applicable trading volume requirements.Qualified affiliates can create codes after meeting the required trading volume (where applicable). Affiliates may only create one unique referral code.

4. Coexistence of legacy affiliate program

This new affiliate program is a multilevel referral system which supersedes the legacy affiliate program. Existing builders who have enabled the legacy affiliate program could choose to keep the legacy system or upgrade to the new one.
  1. For new builders or existing builders who did not enable the legacy affiliate program:
    • The new system will take place when the builders enable the affiliate program.
    • The legacy system is not available.
  2. For existing builders who enabled the legacy affiliate program, they can either:
    • Keep the legacy affiliate program; or
    • Upgrade to the new affiliate program which incorporates a multilevel referral structure. Please note that the upgrade is irreversible. All legacy referral codes remain valid and functional after the upgrade, but no legacy referral codes can be further created.

5. Referral commission structure

Builders configure the base commission BB for direct referrals. They can optionally assign a custom additional multilevel referral commission MM to each L1L_1 affiliate, making that affiliate’s top-level total rate X1=B+MX_1 = B + M. These L1L_1 affiliates are the initial referrers who establish a multilevel network and do not report to any referrer above them.

5.1 Builder’s margin

Affiliates receive their referral commissions from the builder fees shared by builders. This commission is paid out for every trade executed on the DEX. (Fee)Builder=(Trading fee)N(Base fee)Builder\text{(Fee)}_\text{Builder} = \text{(Trading fee)}_N - \text{(Base fee)}_\text{Builder} The builder’s margin from each trade within the multilevel referral network is determined after reserving base commission BB and allocating additional multilevel referral commission MM to the L1L_1 affiliate’s referral chain. (Margin)Builder=(Fee)Builder×(1X1)=(Fee)Builder×(1BM)=[(Trading fee)N(Base fee)Builder]×(1BM)\text{(Margin)}_\text{Builder} = \text{(Fee)}_\text{Builder} \times (1 - X_1) = \text{(Fee)}_\text{Builder} \times (1 - B - M) = \big[\text{(Trading fee)}_N - \text{(Base fee)}_\text{Builder}\big] \times (1 - B - M) where BB is the base commission, MM is the additional multilevel referral commission assigned to the L1L_1 affiliate’s referral chain, X1=B+MX_1 = B + M, and (Base fee)Builder\text{(Base fee)}_\text{Builder} depends on the builder fee tier. Custom X1X_1 cannot be lower than the base commission BB and cannot exceed 100% of (Fee)Builder\text{(Fee)}_\text{Builder}.

5.2 Base commission

Base commission is the guaranteed commission rate a referrer earns from trades executed by their direct referrals. Base commission also defines the required minimum pass-down rate. When a referrer sets a total commission rate XX for a direct referral, that rate must be at least the base commission BB. Any rate above BB comes from the additional multilevel referral commission MM assigned to that referral chain. Builders configure the base commission rate BB to establish the minimum guaranteed earnings from direct referrals. We recommend starting with B=10%B = 10\%, or another value in the 5% to 10% range, because base commission guarantees referrer earnings from direct referrals and makes referral promotion easier to explain. Builders can then assign a custom MM to each strategic affiliate when needed. Since MM is additional commission on top of base commission, changing BB changes the top-level total commission rate X1=B+MX_1 = B + M unless MM is adjusted.

5.3 Affiliate commission

L1L_1 affiliates may distribute a portion of their commission to their direct referees (L2L_2). This process can be extended further, as L2L_2 affiliates can further sub-divide their allocation to their direct referees (L3L_3), establishing a multilevel structure. This multilevel referral network can extend up to a total of 15 levels. Let BB be the base commission, MM be the additional multilevel referral commission assigned to the L1L_1 affiliate’s referral chain, and XiX_i be the total commission rate at level ii. The top-level total rate is X1=B+MX_1 = B + M. Each downstream total rate must be between BB and the upstream total rate, for example X2[B,X1]X_2 \in [B, X_1]. For every trade executed by a user (LN)(L_N) on the DEX, the affiliates within the multilevel referral network can earn the following commission:
RoleAffiliate commission rateAffiliate commission
L1L_1 affiliateX1X2X_1 - X_2 where X2[B,X1]X_2 \in [B, X_1](X1X2)×FeeBuilder(X_1 - X_2) \times \text{Fee}_\text{Builder}
L2L_2 affiliateX2X3X_2 - X_3 where X3[B,X2]X_3 \in [B, X_2](X2X3)×FeeBuilder(X_2 - X_3) \times \text{Fee}_\text{Builder}
L3L_3 affiliateX3X4X_3 - X_4 where X4[B,X3]X_4 \in [B, X_3](X3X4)×FeeBuilder(X_3 - X_4) \times \text{Fee}_\text{Builder}
LN1L_{N-1} user (direct referrer)XN1X_{N-1} where XN1[B,XN2]X_{N-1} \in [B, X_{N-2}]XN1×FeeBuilderX_{N-1} \times \text{Fee}_\text{Builder} — Direct referrer earns base commission plus any remaining additional multilevel referral commission passed down
Note: Direct referrers earn the base commission rate from trades executed by their direct referrals.

Example: 3-Level Referral Network

Consider a trade where Builder revenue for a given trade = $100, with the following commission rates:
  • B=10%B = 10\% (base commission configured by builder)
  • M=40%M = 40\% (additional multilevel referral commission assigned by builder)
  • X1=B+M=50%X_1 = B + M = 50\% (L1L_1 total rate)
  • X2=35%X_2 = 35\% (L2L_2 total rate set by L1L_1, where X2[B,X1]X_2 \in [B, X_1])
  • X3=25%X_3 = 25\% (L3L_3 total rate set by L2L_2, where X3[B,X2]X_3 \in [B, X_2])
Commission distribution for $100 Builder revenue:
RoleCalculationCommission
L1L_1 affiliate(50%35%)×100(50\% - 35\%) \times 100$15
L2L_2 affiliate(35%25%)×100(35\% - 25\%) \times 100$10
L3L_3 affiliate (direct referrer)25%×10025\% \times 100$25
Total distributed$50
In this example, when L4L_4 (the trader) executes a trade, L3L_3 earns X3=25%X_3 = 25\%, which includes the 10%10\% base commission plus 15%15\% of the additional multilevel referral commission passed down the chain. The total distributed rate is 50%=B+M50\% = B + M. The L4L_4 trader does not earn commission from their own trade.

5.4 L1 affiliate commission rate adjustments

Admin console: https://admin.orderly.network/referral

5.4.1 Base commission

Builders configure base commission to set the guaranteed earnings rate for direct referrals. This configuration becomes the minimum pass-down rate throughout the multilevel referral network. Recommended starting point: set base commission to 10%, or choose a value between 5% and 10% depending on the builder’s growth strategy. A higher base commission gives every direct referrer a clearer guaranteed incentive. Builders can change base commission BB at any time, but the 100% total commission cap must still be respected. If increasing BB would cause any affected affiliate’s total commission rate X1=B+MX_1 = B + M to exceed 100%, the action will be rejected.

5.4.2 Custom affiliate commission rate

After setting base commission BB, builders can optionally assign a custom additional multilevel referral commission MM to individual strategic affiliates who work with the builder to grow the user base. The affiliate’s total top-level rate is X1=B+MX_1 = B + M, and the affiliate can redistribute part of that total rate down the chain subject to the base commission minimum.
  • Custom X1=B+MX_1 = B + M cannot be lower than the base commission BB and cannot exceed 100%. MM must be equal to or greater than 0.
  • If the affiliate has not created referral codes or has no direct referees under the rate, the builder can adjust MM up or down within the allowed range.
  • Once referral codes are claimed, the builder may only increase the rate, applying changes to all direct referees on that rate. This restriction protects existing referrals and prevents unfavourable downstream changes.