TRX1 Dev Blog #13 (January 2022)
In the first month of the year, I focused on further developing the new web-based settings panel. Also, since many new features were recently added to the THORChain core, it was necessary to provide support for them in the bot.
Affiliate fee
In the THORChain (and Midgard) perspective, an affiliate fee is accomplished by splitting swap or liquidity addition transaction into two unequal ones. Originally, my code mistakenly considered them as two independent actions. This led to incorrect display of large transactions.
To correct this behavior, an algorithm has been proposed to detect pairs of such actions and merge them into a single action with proper annotations. As a bonus, we got the affiliate fee displayed in the text of the whale activity messages.
BEP2 Rune transfers
This feature was added at the request of our users and traders. Every meaningful movement of BEP2 Rune tokens will be reported in the notification channel.
Additionally, all the transfers from or to centralized exchanges are summed up over the day to form a daily report on BEP2 Rune token flows.
Mimir control
I eliminated the word “team” from the text of the notifications of changes to Mimir constants. Instead, messages about Mimir changes are accompanied by an indication of the actor: administrator or automatic solvency checker.
In a future update, a “node voting” option will also be added to this list.
Free space in pools
While we are in ChaosNet, the addition of liquidity to the system is capped. Many folks would like to be aware of when the liquidity pools free up some space. Well, there’s the wake-up call for them now.
Bond net change
Node churn notification will include active bond net change like it is shown on a picture below.
Doge support
The code has incorporated basic Doge support, namely the correct display of the asset, new constants names and block explorer links.
Telegram bot’s menu changes
We already have quite a few various metrics and statistics to fit them into a single menu screen. The metrics menu in the Telegram bot was split to Financial and Network operation. See the pictures below.
NodeOp web settings panel
The implementation of all the API paths to manage settings and the watchlist has finally been completed.
Also, a few more steps have been taken to enhance the UI part:
— Non-linear sliders
— Controls for managing all available types of notifications
— Secret link revocation functionality
— Unsaved changes detection and prevention of page closing
— Bug and error fixing
It remains to put everything together and run this panel to production.
Miscellaneous
- Fixed formatting of small Rune amounts
- The Mimir tracker has been rewritten to fit the changes in the API
- Better bot’s start up routines
- Added the percentage of switched runes of the total supply
- Fixed a bug in Net Stats in the inline mode
- Created a script to purge erroneous price peaks. Of course, it has been executed and there is already no such peaks in the price history.
- The way settings are stored in DB has been changed to be compatible with all notification distribution channels, not just Telegram
- Dependencies updated, solved version conflicts
- More unit-tests and debugging scenarios
- All unnecessary services have been transferred from the production server machine to other server instances.
Links
MCCN Alert channel (English): https://t.me/thorchain_alert
MCCN Alert channel (Russian): https://t.me/thorchain_alert_rus
MCCN Bot: https://t.me/thor_infobot
Source code: https://github.com/tirinox/thorchainmonitorbot
Conclusion
This bot will be always ready to assist THORChain community on THORChain’s way to MainNet and beyond into maturity of ThorFi.
Ahead are the support of Synthetics, Terra and THORNames.
In fact, I still need to finish the module for Slack as soon as possible.
I’m not sure to make it in February, since I’ll be on a long-awaited vacation for at least half the month.
See you later!
P. S. You can always write to me and suggest some new features for my products (https://t.me/account1242).