-
Notifications
You must be signed in to change notification settings - Fork 119
req: An order has both a relative and an absolute fee. #334
Comments
Linking to #171 |
I'll go full-retard and suggest that both the As a bare minimum, it should be possible to express:
Let's hope that counterparty gives a profitable minsize... |
I think that makes a lot sense. Make AbsoluteFee() RelativeFee() TxContribution() the simple beginnings of an extensible scripting language. When participants handshake, they can communicate what functions they support. |
Id like to see txfee with the ability to be set relative as well. Perhaps relative to the cjfee being earned. So, txfee contribution is 10% of the cjfee being earned with a min of 10 satosh and a max of 5000 satosh. Also possible is a relorder cjfee that is relative to the amount. So cjfee has a base of 0.005% with +0.001% for every 50 btc in size of the order. |
Another function could be JoinParticipants() which would define requirements for the number of participants to be in a join, and possibly set different fees for different cases. ex: provide a cjfee discount when participating in transactions with more join participants. |
Proposed, txfee contribution can go away. Taker decides miner fee for the transaction, and cost is already accounted for by the cjfee. Txfee is currently needed for relative orders since txfee is per transaction, but once once we have a single order type that supports both a per transaction fee and a % of size fee, then per transaction cost is always available. |
This could be useful if only so that there's no need for two order types. (relorder and absorder today) The coinjoin fee can be A*amount + B, and the order announces the values A and B. |
Have one order type, that has fields for both relative and absolute fees so that an order can have both a fixed per transaction fee and charge a percentage of the transaction size.
The text was updated successfully, but these errors were encountered: