2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Added support of usd rate for withdrawal from app config.

This commit is contained in:
23rd
2025-06-29 15:44:32 +03:00
parent 9d7aab4326
commit a11d3efed6
7 changed files with 36 additions and 5 deletions

View File

@@ -93,6 +93,10 @@ float64 AppConfig::starsWithdrawRate() const {
return get<float64>(u"stars_usd_withdraw_rate_x1000"_q, 1300) / 1000.;
}
float64 AppConfig::currencyWithdrawRate() const {
return get<float64>(u"ton_usd_rate"_q, 1);
}
bool AppConfig::paidMessagesAvailable() const {
return get<bool>(u"stars_paid_messages_available"_q, false);
}