serp-tes

Crates.ioserp-tes
lib.rsserp-tes
version0.5.3
sourcesrc
created_at2021-03-28 10:00:33.139554
updated_at2021-03-28 10:00:33.139554
descriptionSetheum Elastic Reserve Protocol (SERP) Token Elasticity of Supply (TES) -- (SERP-TES) Pallet
homepagehttps://setheum.xyz
repositoryhttps://github.com/Setheum-Labs/serp-tes/
max_upload_size
id374602
size59,803
Muhammad-Jibril (JBA-Khalifa)

documentation

https://wiki.setheum.xyz

README

Setheum Elastic Reserve Protocol - TES (SERP-TES)

SERP-TES Pallet -- SERP-Token Elasticity of Supply (SERP-TES) Serp Pallet.

Overview

The SERP-TES (Setheum Elastic Reserve Protocol - Token Elasticity of Supply) module provides a token elasticity system for the SERP-STP258 mixed stablecoin system, by configuring an expansion which implements a supply_change to calculate supply_change and an on_serp_block which determines if it is time to Serp / adjust supply or not.

Then to determine whether the SERP should expand or contract supply, the TES provides a serp_elast to tell the TES when to expand and when to contract supply depending on the outcome of the price of the stablecoin / settcurrency.

The serp-tes module provides functionality of both the Stp258 module that needs to contract and expand the supply of its currencies for its stablecoin stability system through the SerpTes and the SerpMarket module that needs to serp-trade the currencies expanded and contracted by the SerpTes module, which it has to do with the SerpStaking module to be built in the next Milestone of the Serp Modules.

Test & Build

Run cargo build to build.

Run cargo test to test.

''' build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install toolchain
  uses: actions-rs/toolchain@v1
  with:
    profile: minimal
    toolchain: nightly-2021-02-17
    target: wasm32-unknown-unknown
    default: true
- name: Install Wasm toolchain
  run: rustup target add wasm32-unknown-unknown
- name: Install clippy
  run: rustup component add clippy
- name: Build
  run: cargo build --verbose
- name: Run tests
  run: cargo test --verbose
Commit count: 65

cargo fmt