From 485df5cd4f022f8a060c8b28964d45e5ec3f3ce0 Mon Sep 17 00:00:00 2001 From: abitmore Date: Fri, 23 Feb 2018 19:11:07 +0000 Subject: [PATCH] bsip35: more settling rules after globally settled Add description for the old total supply rule (no change). --- bsip-0035.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bsip-0035.md b/bsip-0035.md index c4104bc..dd5ab11 100644 --- a/bsip-0035.md +++ b/bsip-0035.md @@ -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