Skip to main content

22. Button Exchange-2 (Course)

[BUTTONS] 22. BUTTON EXCHANGE-2 (Course)

Allows users to exchange funds within the bot at an admin-set course by transferring a user-specified amount from one variable to another (from wallet to wallet).

〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
🆙 Simplified Variant:
«Button Exchange-1 (Fixed)» - exchange amount defined by admin
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
🔌 Plugins:
➕ 13. Bonus to Ref. Parent
➕ 14. Macros and Expressions for Buttons
➕ 38. Bonus in a Global Variable
➕ 25. Conditions
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️

☞ To add or edit «Button Exchange-2 (Course)» button go:
🎛 Buttons Editor
⚪️ Select the button
⚪️ Press *️⃣ (Settings)
⚪️ Set Exchange-2 (Course)
▪️ Adding new button and editing an existing one is done by step-by-step wizard.
▪️ User must press the button in order to receive the bonus.
▪️ In button messages, you can use variable macros and mathematical expressions.
▪️ The exchange amount can be a decimal fraction (0.01).
➠ Example: 0.01
❗️ Here and in any bot's functions use a period ( . ) to separate the decimal part.
▪️ To set-up a button you need:
▫️ Select "Sell" or "Buy" currency.
▫️ Select a variable for deduction.
▫️ Select variable for increment.
▫️ Specify variable for currency rate.
▫️ Inter a message for a case of a successful exchange.
▫️ Inter a message for a case when exchange was not successful for one reason or another.
▪️ Macros which showing entered data to the user.
%charge%
Amount of charge
%topup%
Amount of Top Up
%course%
Showing current rate
▪️ Following macros available for button's Actions:
%charge_sum_v%
%topup_sum_v%
macros store the amounts of charge and accrual, respectively.

▪️ Each button provided separately for one bot.

To add feature go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Buttons
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
👾 For 1 Bot (individually)