Crates.io | serp-tes |
lib.rs | serp-tes |
version | 0.5.3 |
source | src |
created_at | 2021-03-28 10:00:33.139554 |
updated_at | 2021-03-28 10:00:33.139554 |
description | Setheum Elastic Reserve Protocol (SERP) Token Elasticity of Supply (TES) -- (SERP-TES) Pallet |
homepage | https://setheum.xyz |
repository | https://github.com/Setheum-Labs/serp-tes/ |
max_upload_size | |
id | 374602 |
size | 59,803 |
SERP-TES Pallet -- SERP-Token Elasticity of Supply (SERP-TES) Serp Pallet.
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.
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