Skip to content

Commit

Permalink
Update specification and wording of BSIP 81
Browse files Browse the repository at this point in the history
It's found that the specification was not clear enough.
See also: bitshares/bitshares-core#2136 (comment)
  • Loading branch information
abitmore committed Apr 15, 2020
1 parent 4f897cf commit f60735c
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions bsip-0081.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,28 @@ them to attract trading activities.

There is already a flag `market_fee_percent` in asset options.

Add a new flag `taker_fee_percent` into asset options, assign
`market_fee_percent` to `taker_fee_percentage` at the consensus
upgrade time for existing assets. The new flag can only be set
Add a new optional flag `taker_fee_percent` into asset options,
which can only be set
or updated by asset owners after the consensus upgrade.
The valid range of the new flag is `[0%, 100%]`.

Before the consensus upgrade, when an order buying that asset
got filled, the amount `bought_amount * market_fee_percent`
will go to the asset's accumulated fees.
(capped by `max_market_fee`)
will enter the asset's market fee sharing process.

After the consensus upgrade, when an order buying the asset
got filled,
* if the order is a *maker*, the amount
`bought_amount * market_fee_percent` will go to the
asset's accumulated fees;
* otherwise (if the order is a *taker*), the amount
`bought_amount * taker_fee_percent` will go to the
asset's accumulated fees.
* if the order is a *maker*, or the `taker_fee_percent` flag
is not set in the asset, the amount
`bought_amount * market_fee_percent`
(capped by `max_market_fee`)
will enter the asset's market fee sharing process;
* otherwise (if the order is a *taker* and the
`taker_fee_percent` is set in the asset), the amount
`bought_amount * taker_fee_percent`
(capped by `max_market_fee`)
will enter the asset's market fee sharing process.

# Copyright
This document is placed in the public domain.

0 comments on commit f60735c

Please sign in to comment.