MMashDiv

Commission conditions

The rules that decide what earns a commission — the two programs they belong to, the two engines that pay them, how often a condition pays (every time, every N days against a target, or once), reward types and minimums, the currency trap that stops a rule paying anyone, and the overlap guard that keeps you from paying 8% when you meant 5%.

15 min readUpdated 20 October 2026conditions, commission, cron, overlap, currency, schedule, interval, one-time, referral program

A condition is one commission rule. It says what activity pays, how much, to whom, how often, in what currency, above what minimum, and whether it is switched on. Everything your programme costs is the sum of the conditions you leave active.

They live on Admin → Affiliate → Program → Conditions and in the mlm_referral_condition table. Forty ship with the platform; fifteen are active on a fresh install. Three of the forty belong to the Referral Program and ship switched off, like every condition that spends money you have not chosen to spend.

What a condition is made of

  1. The rule's own rate
Field What it does
name The system name: upper-case letters, digits and underscores, starting with a letter, 3 to 64 characters. Unique, set when the condition is created, and never editable afterwards. For the seeded rules it is also the key the engine pays at — see below.
title / description What members read on the commission-rates page.
program Affiliate Program (AFFILIATE, the default) or Referral Program (REFERRAL). Decides who the rule pays — see Programs and applications.
firesOn The event the rule is paid at when that is not its own name — Paid when on the screen. Empty means "its own name, if that is an event, otherwise on a schedule from the ledger".
type The activity family. One of 16 values. For a rule paid at an event it follows the event; for a scheduled rule it chooses which ledger entries are summed.
reward The number. A percentage, or an absolute amount. It may be zero when the friend's share is set (a bonus for the friend only).
rewardType PERCENTAGE or FIXED.
referredReward Friend's share: what the referred member earns as well, in the same type and currency. Zero pays them nothing.
rewardWalletType FIAT, SPOT or ECO — where the money lands.
rewardCurrency The unit the commission is worth, and paid in unless the settings pay every reward in one ecosystem token.
rewardChain Optional, for ECO rewards on a specific chain.
minAmount A floor on each qualifying transaction. Below it the activity does not count. For a scheduled rule it is in rewardCurrency, and each wallet's amounts are converted to it; for a rule paid at an event it is compared with the transaction's own amount, in whatever currency the transaction was made, with no conversion.
scheduleType How often it pays: LIFETIME, INTERVAL or ONE_TIME.
period DAILY, WEEKLY or MONTHLY — the calendar window of a scheduled LIFETIME rule.
intervalDays / intervalCount For INTERVAL: the length of one window in days (1 to 3,650) and how many windows may pay (0 is no limit, to 1,200).
targetAmount What the referred member's activity has to add up to inside one window before it pays, in rewardCurrency. 0 pays on any qualifying activity.
status Active or not. Inactive rules pay nothing and are hidden from members.

The event-driven reward engine looks a rule up by the event's name (WELCOME_BONUS, COPY_TRADING, …) and refuses a name it does not recognise. So a seeded event rule must keep its name and you change its rate, not its name.

A rule you create yourself is not subject to that, because it is paid one of two ways that do not depend on its name: at an event, by naming the event in Paid when (the engine then asks for it by firesOn), or on a schedule, by the hourly job that reads the ledger by the rule's type. The form offers only the activity types the hourly job can read, so a rule built on the screen is always paid one way or the other.

Creating a condition

On the Conditions screen choose New condition. The sidebar has a tab for each program, Affiliate Program and Referral Program, each listing its rules grouped by activity, with how many are active. New conditions are created switched off, and you turn them on when you are ready, which runs the overlap guard below.

  1. Program. Affiliate Program for approved affiliates, Referral Program for everyone else. Choosing the Referral Program fixes the schedule to One time and, for a rule paid from the ledger, the reward to a fixed amount.

  2. Paid when. Pick an event — a friend's first deposit, a friend starts copy trading, a stake, a P2P trade, a purchase in the store, an ICO contribution, an AI or general investment, a futures trade, an NFT purchase or sale, a binary win — or On a schedule, from the referred user's activity. The screen files an event rule under that event's type. For a scheduled rule you also choose the Activity counted, such as deposits or spot trades.

  3. Name, title and description. The name is the system name and cannot be changed later; type the title and the screen suggests one. Write the description for the member: the commission-rates page shows it.

  4. Reward. The amount, a percentage or a fixed sum, the Friend's share if the bonus is shared, and the minimum amount per transaction.

  5. How often it pays. See the next section.

  6. Wallet and currency. Where the reward lands. New conditions default to a Spot wallet in USDT.

  7. Read In plain words, at the foot of the Program and schedule card (above the Wallet card) — it restates the amounts and the schedule in a sentence — press Create condition, and turn the condition on.

The server judges every save on the whole merged row, not on the fields you changed, and answers a 400 that says what is wrong. A rule that the engine could not pay is refused: an interval on a rule paid at an event, a one-time percentage on a scheduled rule, a target on an event rule, a Referral Program rule that is not one-time, a negative amount, a rule with no reward for either the referrer or the friend, an event it does not know, or a firesOn that names the rule itself.

How often a condition pays

Every condition is evaluated per referred member, and scheduleType says how often one referred member can make it pay.

Schedule Pays Typical use
Every time (LIFETIME; the screen reads Every period on a scheduled rule) On every qualifying event, or — for a scheduled rule — once for every calendar period (day, week or month) in which the referred member qualifies, for as long as the referral lasts A per-trade commission; "2% of deposits"
Every N days (INTERVAL) Once per N-day window in which the referred member's activity reaches the target, up to intervalCount windows "50 USDT every 30 days a friend trades 10,000"
One time (ONE_TIME) Once per referred member, ever A welcome or first-deposit bonus; "a one-time copy-trading bonus"

Windows for INTERVAL are counted from UTC midnight of the day each referral began, so each referred member has their own cycle: window 0 is their first N days, window 1 the next N, and so on, with no gap and no overlap. A reward is one row per (condition, referrer, referred member, window), so a window pays at most once, however many times the hourly job reads it. intervalCount caps how many windows from the start can ever pay; 0 is no cap.

The target is the referred member's own activity, not the referrer's total across everybody they invited. For a PERCENTAGE rule on a scheduled schedule the percentage is of that window's summed volume; for a FIXED rule it is one payment per window.

ONE_TIME on a scheduled rule pays the first time the referred member's qualifying activity since they joined reaches the target (or at their first qualifying transaction when there is no target). It must be a fixed amount: a percentage of a total that keeps growing would be topped up for ever, which is not one-time. A member who has been settled is dropped from the hourly job's reading before it touches the ledger, so a programme whose rewards have mostly been paid costs the job almost nothing.

Two seeded rules are one-time by their very definition, whatever their schedule column says: WELCOME_BONUS and FIRST_DEPOSIT_BONUS. The code that fires them asks first whether the bonus was already paid for any of the member's deposits, so the screen shows them as One time and does not let you change it. The Referral Program's rules that ride those events (firesOn) are separate rows with their own history, and use the ordinary once-per-member key.

minAmount is a floor on each transaction: ten deposits of 4 do not qualify under a minimum of 5, however much they add up to. targetAmount is what the transactions that clear that floor must add up to inside one window.

The three volume bonuses (SPOT_TRADE_VOLUME, MONTHLY_TRADE_VOLUME, FUTURES_VOLUME) used to carry their 500 or 1,000 in minAmount, which meant a single trade of 500 paid the "monthly total" bonus, and every rule meant to be monthly was seeded with a daily period. A fresh install now seeds the figure as the target and the monthly rules as monthly. An existing install keeps what it was seeded with, because the seeder does not change the values of a row that exists (its one exception is setting WELCOME_BONUS and FIRST_DEPOSIT_BONUS to one time): open those three rules, set the calendar period to Monthly and move the figure into Target. BINARY_WIN_COMMISSION is meant to be monthly too, and needs only its calendar period set; its minimum really is a floor on each win. All four are off by default.

Two engines, and which one pays your rule

This is the single most important distinction on this page. It changes how fast a commission appears, what a percentage is a percentage of, and which schedules a rule can have.

Event-driven — paid at the moment of the transaction

Twenty event names are triggered directly by the code that processed the activity. The commission row exists within seconds, and the percentage is applied to that one transaction's amount.

WELCOME_BONUS · FIRST_DEPOSIT_BONUS · ECOMMERCE_PURCHASE · ICO_CONTRIBUTION · STAKING · STAKING_LOYALTY · AI_INVESTMENT · INVESTMENT · GENERAL_INVESTMENT · FOREX_INVESTMENT · NFT_PURCHASE · NFT_SALE · P2P_TRADE · P2P_TRADE_COMPLETION · COPY_TRADING · FUTURES_TRADE · BINARY_WIN · BINARY_TRADE_VOLUME · FX_TRADE_COMMISSION · FX_TRADE_VOLUME

A condition is paid at an event when its own name is one of these or its firesOn is. Event rules cannot be INTERVAL and cannot have a target — they pay on the event itself, and the minimum amount is the floor. A rule can ride an event it does not own: a custom 2% copy-trading tier beside the stock COPY_TRADING rule, or the Referral Program's bonus beside the Affiliate Program's. Each gets its own reward row.

Cron-driven — paid hourly, from the ledger

Everything else is evaluated by Process MLM Referral Conditions, an hourly job visible in Admin → System → Cron under the mlm category. Each run:

  1. Loads every active condition and every ACTIVE referral.
  2. Skips the event-paid conditions, so no activity is ever paid twice, and the Referral Program's conditions while applications are not required.
  3. For each remaining condition, reads the referred member's qualifying, completed transactions in the window its schedule defines: the current calendar period and the one before it, the member's current and previous N-day window, or everything since they joined for a one-time rule.
  4. Creates at most one reward per condition, per referrer, per referred user, per window.

The percentage is applied to the summed window volume, not to a single transaction. A 3% monthly rule on a member who deposits ten times is 3% of the month's total, once. The reward cron covers the run in detail.

Reward types

PERCENTAGE — reward is a percentage of the qualifying amount. Under BINARY or UNILEVEL that result is then split by your level percentages (Affiliate Program only).

FIXED — reward is an absolute amount in rewardCurrency, paid on every qualifying event, or once per window for a scheduled rule; only the One time schedule pays once. Under a multi-level structure each level receives its configured percentage of the fixed amount — so a 50 USDT fixed reward with levels of 50/30/20 pays 25 / 15 / 10, not 50 each.

Friend's share — referredReward is paid to the referred member in the same type and unit under its own key, on top of the referrer's. A 5% reward with a 5% friend's share is a 10% bonus shared between the two, and it is the way to build "5% each" deposit bonuses. The share is not a level: it is paid once per event whatever the structure. A rule can be all friend's share (a welcome bonus for the friend only) or all referrer.

Two seeded rules do something less obvious. FX_TRADE_VOLUME is stored as PERCENTAGE with a value of 100, which the Forex Trading addon reads as 1.00 per lot — not 100%. Its partner FX_TRADE_COMMISSION is a genuine percentage of the commission the trader paid. They are the two halves of one introducing-broker rebate and are meant to run together.

Minimums and the currency trap

On a scheduled rule minAmount is expressed in the condition's reward currency, and this is where most "nobody ever qualifies" reports come from. (A rule paid at an event does no conversion: it compares minAmount with the transaction's own amount, in the currency of the transaction.)

Transactions on Bicrypto carry no currency of their own — an amount is denominated by the wallet it sits on. The hourly evaluator therefore builds a conversion table into the reward currency, converts the threshold into each wallet's currency to filter rows in SQL, and converts the resulting sums back before comparing and paying.

Three ways that goes wrong:

  • The reward currency cannot be priced. With no rate for the target currency there is no denominator, so nothing can be valued against it — including activity already in that currency. Every condition paying in it stops. The cron log says so explicitly, rate-limited to a few times a day so it does not bury the rest of the log.
  • A referred user's wallet currency cannot be priced. That volume is excluded rather than counted 1:1 — counting an unpriced token at parity is how 0.4 BTC becomes 0.40. The job logs which currencies it skipped.
  • Nobody holds a wallet yet. A referred user with no wallets has no transactions to sum. The job says so rather than reporting a clean run.

New conditions are seeded as SPOT / USDT, which matches how a Bicrypto install actually denominates activity. Older installs may still be on the original FIAT / USD default, which also puts the commission into a fiat wallet most members cannot withdraw from. There is a script for that:

# Report only — shows which conditions would move and the unclaimed exposure
node backend/scripts/affiliate-condition-currency.mjs

# Apply
node backend/scripts/affiliate-condition-currency.mjs --apply

It only touches rows still matching the seeded FIAT/USD default, so a rate you have deliberately set is left alone. It does not touch existing reward rows, and from Core 6.8.6 each reward records its own currency, so retargeting a condition changes new rewards only.

Paying conditions in your own token

To pay the programme in an ecosystem token such as PBX, use Pay Rewards In on Programme settings rather than editing every condition. The conditions keep their currencies, which now say what a reward is worth, and the token's price converts that value when the reward is earned. A condition can also name the token directly as its own currency; its percentage is then valued through the token's price as well.

Overlap — the reason your programme costs more than you think

  1. The rule's own rate

Several conditions can collect on one piece of activity, and not only when they share a type. TRADE, SPOT_TRADE, COPY_TRADING and TOKEN_PURCHASE are four different types that all resolve to the same EXCHANGE_ORDER ledger entry. Leave all four active and a single spot fill pays all four.

Which ledger entries each type is evaluated against:

Condition type Transaction types
DEPOSIT DEPOSIT
TRADE, SPOT_TRADE, COPY_TRADING, TOKEN_PURCHASE EXCHANGE_ORDER
BINARY_WIN BINARY_ORDER
INVESTMENT INVESTMENT, INVESTMENT_ROI
AI_INVESTMENT AI_INVESTMENT, AI_INVESTMENT_ROI
FOREX_INVESTMENT FOREX_INVESTMENT, FOREX_INVESTMENT_ROI
FOREX_TRADING none — settled by the Forex Trading addon at trade time
ICO_CONTRIBUTION ICO_CONTRIBUTION
STAKING STAKING, STAKING_REWARD
ECOMMERCE_PURCHASE ECOMMERCE_PURCHASE
P2P_TRADE P2P_TRADE
NFT_TRADE NFT_PURCHASE, NFT_SALE
FUTURES_TRADE FUTURES_ORDER

The conditions list computes this for you. Every row carries the other active conditions that compete with it, the ledger types they share, and an effective percentage rate — what a referrer actually earns once every overlapping percentage rule has paid.

Conditions of different programs never compete. A referrer is paid under one program, so an Affiliate Program rule and a Referral Program rule on the same activity do not add up for anybody, and the guard compares only rules of the same program.

Turning on a condition that overlaps an already-active one returns a 409 naming the competitor and quoting the combined rate. Re-send with acknowledgeOverlap: true — which the admin screen does when you confirm the warning — to enable it anyway. The same guard runs when you create a condition already switched on.

Disabling is never guarded. Turning payouts off cannot cost anyone money.

Three pairs are exempt because they are not double payment:

  • NFT_PURCHASE / NFT_SALE — one trade, two different people paid (the buyer's referrer and the seller's).
  • P2P_TRADE / P2P_TRADE_COMPLETION — the same, on a P2P release.
  • FX_TRADE_COMMISSION / FX_TRADE_VOLUME — one rebate paid off two different bases.

The commission ceiling

Admin → Affiliate → Settings → Maximum Commission Rate is a real limit, not a display. Saving a PERCENTAGE condition above it is rejected with a message naming both numbers, and it applies to the friend's share as well as the referrer's reward — a ceiling on one side of 5% + 5% would be no ceiling. Raise the ceiling first if you genuinely want the higher rate.

It does not apply to FIXED rewards — an absolute amount is not a rate — so a fixed reward of 10,000 saves happily under a 30% ceiling. Watch those by hand.

What members can see

  1. Each active condition's title and description

The public commission-rates page (/affiliate/condition) lists the active Affiliate Program conditions only, and filters out any rule belonging to an addon you do not have enabled. Someone without the NFT addon never sees NFT commissions advertised. Rules backed by core features — deposits, spot and binary trading, investments — are always shown. It is shown to whoever Show Commissions allows.

The page prints each rule's title, description and reward. It does not print the schedule, the target or the interval, so put the terms that matter to the member — "paid every 30 days you trade 10,000" — into the description. The Referral Program's rules are on a page of their own, which does say "one time" and shows both halves of the reward.

Changing and removing conditions

  • Edit anything except the system name and the activity. Reward, currency, schedule, program, target and the rest are all editable on a saved condition. Paid when and the activity the rule is filed under are fixed when you create it: the screen shows them read-only afterwards. Editing the currency of a condition that still has unclaimed rewards with no stored currency asks you to confirm first, as before.
  • Delete a condition that never paid. The Delete button on a condition's header removes it for good, but only when it is switched off and has no reward written under it — claimed, unclaimed or soft-deleted. A condition that has paid is history the affiliates' earnings point at, and deleting it would delete every reward written under it, so it can only be switched off. Deleting needs edit.affiliate.condition; there is no separate delete key.
  • Create with a minimum. minAmount is accepted when you create a condition, as are the target, schedule and the rest.
  • Rename name. You cannot: the update endpoint does not accept it, because the event engine finds a seeded rule by its name.

Next: Rewards and payouts — what happens between a commission being earned and money reaching a wallet.