taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit df78b4db6eb5820cd3f2eab592c329777bbc28fd
parent b19e504c032db698b73c20b3fb9871d51789da40
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Fri, 15 Mar 2024 10:10:48 +0100

DD46: remove limits struct

Diffstat:
Mdesign-documents/046-mumimo-contracts.rst | 35+----------------------------------
1 file changed, 1 insertion(+), 34 deletions(-)

diff --git 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 };