RHEA Dex Referral Setup
Command-Line Interface Referral Integration Guide
Command-line interface usage for referral setup on:
REF_EX
REF_DCL
The following guide will help you register, verify, and check referral-related data via CLI.
We will use:
$REF_EXfor the REF_EX contract account$REF_DCLfor the REF_DCL contract account$USER_IDfor the user account$REFERRAL_IDfor the referral account or referral identifier$POOL_TOKEN_IDfor the pool MFT token ID
REF_EX
Command-line interface usage for referral setup on REF_EX. For a referral to work on REF_EX, the referral must first be registered in the contract. After that, the referral account must also register the corresponding pool MFT.
Referrals
To view the current list of registered referrals:
near view $REF_EX list_referralsRegister
If the referral has not been added yet, please reach out to RHEA Finance to submit an application.
MFT Status
After the referral is registered, the corresponding pool MFT must also be registered for the referral account.
To check whether the MFT has already been registered:
MFT Register
If the MFT has not been registered yet, the referral account must register it manually:
This step should be completed by the referral account owner.
Check Balance
To query the MFT balance for the referral account:
Flow
A typical REF_EX referral setup flow is:
Check whether the referral already exists
Register the referral if needed
Check whether the related pool MFT is registered
Register the pool MFT if needed
Query the referral MFT balance
REF_DCL
Command-line interface usage for referral setup on REF_DCL.
For a referral to work on REF_DCL, the referral account must first be added to the whitelist. Once it is valid, the referral can be included in swap calls and its internal asset balance can be checked later.
Whitelist
To view the current referral whitelist:
Validate
To check whether a referral account is already approved:
Register
If the referral has not been added yet, please reach out to RHEA Finance to submit an application.
Result
Upon completion of registration, enter the parameters as shown below.
Check Balance
To view the internal asset balance for a referral account
Flow
A typical REF_DCL referral setup flow is:
Query the current whitelist
Check whether the referral account is valid
Register the referral if needed
Include the referral_id in the swap call
Query the referral account’s internal assets
Last updated
Was this helpful?