Description

Cryptocurrencies like Bitcoin have developed free and decentralized tools to run currencies according to the free software way of life. They inspire the Duniter project, but Duniter adopts an egalitarian monetary creation based on The Relative Theory of Money, an article published in 2010 by Stéphane Laborde.

Challenge

The project (version 2) is based on the Substrate framework written in Rust. Substrate provides a flexible framework for developing blockchain logic. Substrate uses a weight-based model to limit on-chain resources. Each on-chain action will consume a certain amount of weight, and this weight should be converted to a fee that the user will pay.

Solution

We first perform an analysis in terms of the number of transactions and users on the network, as well as the recommended machine, to determine a function for converting raw weights to fees. See https://git.duniter.org/nodes/rust/duniter-v2s/-/merge_requests/227.