summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-03-15 10:10:48 +0100
committerChristian Blättler <blatc2@bfh.ch>2024-03-15 10:10:48 +0100
commitdf78b4db6eb5820cd3f2eab592c329777bbc28fd (patch)
treedd4a7723805654e8cfbb41291f8886571881ba97
parentb19e504c032db698b73c20b3fb9871d51789da40 (diff)
downloaddocs-df78b4db6eb5820cd3f2eab592c329777bbc28fd.tar.gz
docs-df78b4db6eb5820cd3f2eab592c329777bbc28fd.tar.bz2
docs-df78b4db6eb5820cd3f2eab592c329777bbc28fd.zip
DD46: remove limits struct
-rw-r--r--design-documents/046-mumimo-contracts.rst35
1 files changed, 1 insertions, 34 deletions
diff --git a/design-documents/046-mumimo-contracts.rst b/design-documents/046-mumimo-contracts.rst
index 4daa7465..7d234110 100644
--- a/design-documents/046-mumimo-contracts.rst
+++ b/design-documents/046-mumimo-contracts.rst
@@ -214,47 +214,14 @@ The contract terms v1 will have the following structure:
// contract without storing it separately in their database.
extra?: any;
- // Fee limits and wire account details by currency.
- limits: { [currency: string]: CurrencyLimit };
- }
-
-.. ts:def:: CurrencyLimit
-
- interface CurrencyLimit {
-
- // The hash of the merchant instance's wire details.
- h_wire: HashCode;
-
- // Wire transfer method identifier for the wire method associated with ``h_wire``.
- // The wallet may only select exchanges via a matching auditor if the
- // exchange also supports this wire method.
- // The wire transfer fees must be added based on this wire transfer method.
- wire_method: string;
-
// Maximum total deposit fee accepted by the merchant for this contract.
max_fee: Amount;
- // Maximum wire fee accepted by the merchant (customer share to be
- // divided by the ``wire_fee_amortization`` factor, and further reduced
- // if deposit fees are below ``max_fee``). Default if missing is zero.
- max_wire_fee?: Amount;
-
- // Over how many customer transactions does the merchant expect to
- // amortize wire fees on average? If the exchange's wire fee is
- // above ``max_wire_fee``, the difference is divided by this number
- // to compute the expected customer's contribution to the wire fee.
- // The customer's contribution may further be reduced by the difference
- // between the ``max_fee`` and the sum of the actual deposit fees.
- // Optional, default value if missing is 1. 0 and negative values are
- // invalid and also interpreted as 1.
- wire_fee_amortization?: number;
-
// Exchanges that the merchant accepts for this currency.
exchanges: Exchange[];
}
-
.. ts:def:: ContractChoice
interface ContractChoice {
@@ -267,7 +234,7 @@ The contract terms v1 will have the following structure:
// once the contract is paid.
outputs: ContractOutput[];
- // Map from authority labels to meta data abou the
+ // Map from authority labels to meta data about the
// respective token authority.
token_types: { [authority_label: string]: TokenAuthority };