Weekly Dev Update #38

THORChain Weekly Dev Update for Week 07–14 Apr 2020; THORChain Fees and Rewards; Bitcoin Support ; THORChain Byzantine Module

THORChain
THORChain
4 min readApr 14, 2020

--

Summary

The team refactored parts of the THORChain Fees and Rewards logic, as well as beginning to support Ethereum and Bitcoin. Bifrost has been completely refactored with better abstraction.

Asgard Wallet is being prepared for Mainnet, and the @thorchain/byzantine-module has been published to NPM.

THORChain Fees and Rewards

This is an integral part of the protocol and ensures that liquidity providers and nodes are paid every block. It is carefully designed to ensure correct economic incentivisation, as well as being as simple as possible.

Fees and Reward Flow Diagram

THORNode

Bugfixes found in testing, as well as a small refactor of the of Fee and Reward flow to remove redundant code.

Ethereum

Ethereum support is on track, with the block scanner being added to the Bifröst. Initial logic is to process only ETH.ETH transactions and only after 1 confirmation. Re-org and double-spend resilience logic will be added later.

Bitcoin

Bitcoin is more tricky, since the network needs to become aware of UTXOs and ensure consensus over which UTXOs to spend. Each time a vault spends, it will consolidate all UTXOs known to it, up until a cut-off point.

UTXO flow diagram for Bitcoin

Bifrost

The Bifröst module was completely re-written to be better-abstracted and support the multi-chain environment.

THORChain TSS

Work continues to integrate TSS blame — this will ensure a malicous actor who intentionally halts a TSS session can be blamed and churned out.

Midgard

Work continues to mature the code base and respond to iterative requests from the front-end team.

BEPSwap Client

Transaction page UX tweaks, as well as integration of the new Byzantine Module. All work has been merged into master and this is the primary branch.

Asgard Wallet

The Asgard Wallet has completed the React/Antd refactor and is now being prepared for mainnet release.

THORChain Byzantine Module

The THORChain Byzantine Module has now been published and will be integrated in both BEPSwap and Asgard Wallet:

https://www.npmjs.com/package/@thorchain/byzantine-module

Bounty Program

Enquire with the team about bounties for THORChain development.

Audit

Code Review: Complete

Economic Review: Completed most of THORChain's economic architecture

TSS Audit: kickoff

Next Milestones

The updated testnet is in the final stages of testing. Chaosnet is expected once testnet has been fully-validated in several environments. There currently isn’t any known blockers to Chaosnet release.

Community

To keep up to date, please monitor community channels, particularly Telegram and Twitter:

--

--

THORChain
THORChain

The official team for THORChain — the decentralized liquidity network.