bsip35: more settling rules after globally settled

Add description for the old total supply rule (no change).
bsip53
abitmore 2018-02-23 19:11:07 +00:00
parent 8a06150338
commit 485df5cd4f
1 changed files with 4 additions and 1 deletions

View File

@ -240,6 +240,8 @@ The detailed rules proposes in this BSIP (new rules highlighted):
nothing, let it pay 1 Satoshi (round up).**
* when paying a settle order from global settlement fund, in favor of global
settlement fund, round down receiving collateral amount
* If the settling amount is equal to total supply of that asset, pay the
whole remaining settlement fund to the settle order;
* **when the asset is not a prediction market, if the settle order would
receive nothing, raise an exception (aka let the operation fail).**
@ -319,7 +321,8 @@ once it's zero, and the asset is not a prediction market, let it be `1`.
## When Paying A Settle Order From Global Settlement Fund
In `do_apply(...)` function of `asset_settle_evaluator` class,
after calculated `settled_amount`, check if it is zero. If the answer is `true`,
after calculated `settled_amount` and adjusted it according to the "total
supply" rule, check if it's zero. If the answer is `true`,
and the asset is not a prediction maket, throw a `fc::exception`.
# Discussion