bitshares / bitshares/bitshares-core

Core Exchange Rate (CER) of bitAssets whose BSRM is individual_settlement_to_fund or no_settlement?

Open
#2,581 0 comments 0 reactions 0 assignees View on GitHub
2a Discussion Needed
Dominant language
C++
Stars
1.2k
Forks
660
Avg merge
8h 17m
Merged PRs (30d)
26

Description

For a bitAsset whose backing asset is the core asset (BTS) and BSRM is `individual_settlement_to_fund` or `no_settlement`, when price of the core asset falls, essentially there is a floor for `current_feed.settlement_price`, however, `current_feed.core_exchange_rate` does not stop falling.

![image](https://user-images.githubusercontent.com/9946777/150646367-24459072-dd6e-44ac-9db1-37668bbceaa7.png)

In practice, when a bitAsset is globally settled, price feeder producers are asked to feed CER with `max(gs_price, feed_price * a multiplier)`. I think the same can be applied to the bitAsset whose BSRM is `individual_settlement_to_fund` or `no_settlement` too.

![image](https://user-images.githubusercontent.com/9946777/150646386-8068dd0e-6e6e-430e-8e53-2803444a16db.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the described core-asset price decline for a bitAsset using individual_settlement_to_fund or no_settlement, then compare current_feed.settlement_price with current_feed.core_exchange_rate. Trace the existing globally-settled CER handling and verify that the affected modes apply the proposed floor behavior without changing unrelated feeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.