Weekly Dev Update #67
THORChain Weekly Dev Update for Week 67, 27 Oct — 02 Nov; V0.16.1 Chaosnet, V0.5.1 Midgard, Security Audit fixes, RUNEData.info, RUNEBalance.com
Summary
The team worked on Chaosnet stability, testnet fixes, and multi-chain tweaks. Midgard was also updated
Releases
A point release was made for Chaosnet to fix an issue where KVStore information was being returned for a blockheight that was not the latest (default, expected). This was causing arb bots and other infra that was querying the state machine to receive incorrect information. The release was made since it was affecting bots in production.
Midgard V0.5.0 and V0.5.1 was released with some improvements and updates. Details below.
https://gitlab.com/thorchain/midgard/-/releases
THORNode
The team deployed fixes for V0.16.1, as well as multi-chain bug fixes found on testnet. In addition some small changes to THORNode events to allow the new Midgard V2 to more efficiently index events.
- update swap slip formula
- Resolve “[FIX] allow bifrost to spent more than BTC min-relay fee on gas”
- [bugfix] specifying query height no longer persists across queries
- Release 0.16.1 to testnet when query there is no `height` parameter , apply height=0
- [bugfix] query API defaults to height 0 (latest)
- add asset address to stake event
- Resolve “Add context to fee and outbound events to enable them to be handled without cross-referencing”
- Resolve “[ADD] pull latest go-tss and enable prometheus on bifrost”
- Release 0.16.1 to chaosnet
- emit pool event when pool for base asset get created, as base asset are enabled by default
Midgard
Fixes and tweaks for stability, as well as releasing V0.5.0 and V0.5.1. In addition the queue was proxied to allow services to query for outbound queue length, which is somewhat of a measure of the load on the system. If the queue is ever found to be growing steadily with now reductions, then it points to a backlog and an issue with outbound processing. During one TSS-related bug, the queue reached over 300 transactions.
- Resolve “BUG: Invalid stakingTxCount and withdrawTxCount”
- Resolve “BUG: Invalid pool volume in /v1/pools”
- Resolve “Update Midgard api document for /v1/history/pools endpoint”
- Resolve “Update Midgard on develop to 0.5.1”
- Resolve “Add /thorchain/queue to proxied whitelisted endpoints”
Devops
New versions were shipped, as well as a simple fix to the Binance Chain node running out of resources and crashing (being the open file limit). This should make it more stable. In addition, two points from an upcoming infra audit were addressed, which were to remove external dependencies (since they are attack vectors).
- release Testnet 0.16.1
- Update midgard versions
- Update helm repo URL in Makefile
- release 0.16.1 to chaosnet
- multichain-testnet 0.16.1
- Fix open file limit error
- Remove not needed init container for file limit
- Use Thorchain official bitcoin-core image
- Remove kubectl dep
Clients
BEPSwap Client
Numerous UI/UX tweaks based on community feedback
ASGARDEX Client
Work continues to prepare the client for Multichain Chaosnet.
Community Work
The following tools receive regular updates:
Telegram Bot
Twitter Bot
Delphi Defi Dashboard
https://defi.delphidigital.io/thorchain/chaosnet/network
THORChain Network Explorer
THORChain Official Block Explorer
https://viewblock.io/thorchain
RUNEData
View LP data, and predict future returns
RUNEBalance
View current arbitrage opportunities in the pools
https://www.runebalance.com/#/pools
RUNEStake
View your current LP performance in each pool.
Trading Leaderboard
View the current leaderboard for traders on THORChain
https://leaderboard.thornode.org/
Audits
A final security audit report is being prepare for final release.
The gauntlet report on the CLP mechanism is also being finalised.
Next Milestones
Bitcoin public testnet.
Community
To keep up to date, please monitor community channels, particularly Telegram and Twitter:
- Twitter: https://twitter.com/thorchain_org
- Telegram Community: https://t.me/thorchain_org
- Telegram Announcements: https://t.me/thorchain
- Reddit: https://reddit.com/r/thorchain
- Github: https://github.com/thorchain
- Medium: https://medium.com/thorchain