order-search - user performed an order search, this event can have next statuses: "success", "no-liquidity", "cant-fill", "out-of-limits"
Order search event structure:
type FonbnkEvent = {
type: "order-search";
source: "fonbnk";
data: {
status:
| "success" // user found an offer
| "no-liquidity" // no offers found because there is no liquidity at all for selected parameters
| "cant-fill" // no offers found because there is no enough liquidity for selected parameters
| "out-of-limits", // no offers found because the amount is out of limits
params: {
country: string; // country iso code
carrierId?: string;
amount: number;
provider:
| "carrier"
| "mpesa"
| "mobile_money"
| "bank_transfer";
walletType:
| "POLYGON"
| "ETHEREUM"
| "STELLAR"
| "AVALANCHE"
| "SOLANA"
| "ALGORAND"
| "TRON"
| "CELO"
| "LISK";
currency: "airtime" | "usdc";
trafficSource?: string; // query "source" param
address?: string;
},
message?: string; // error message displayed to a user
}
}