moving deposit group fee into taler util
This commit is contained in:
parent
26cf19ab6c
commit
2caef6dcf2
@ -1343,6 +1343,11 @@ export interface GetFeeForDepositRequest {
|
|||||||
amount: AmountString;
|
amount: AmountString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DepositGroupFees {
|
||||||
|
coin: AmountJson;
|
||||||
|
wire: AmountJson;
|
||||||
|
refresh: AmountJson;
|
||||||
|
}
|
||||||
export interface CreateDepositGroupRequest {
|
export interface CreateDepositGroupRequest {
|
||||||
depositPaytoUri: string;
|
depositPaytoUri: string;
|
||||||
amount: AmountString;
|
amount: AmountString;
|
||||||
|
@ -27,6 +27,7 @@ import {
|
|||||||
ContractTerms,
|
ContractTerms,
|
||||||
CreateDepositGroupRequest,
|
CreateDepositGroupRequest,
|
||||||
CreateDepositGroupResponse,
|
CreateDepositGroupResponse,
|
||||||
|
DepositGroupFees,
|
||||||
durationFromSpec,
|
durationFromSpec,
|
||||||
encodeCrock,
|
encodeCrock,
|
||||||
GetFeeForDepositRequest,
|
GetFeeForDepositRequest,
|
||||||
@ -568,12 +569,6 @@ export async function getEffectiveDepositAmount(
|
|||||||
return Amounts.sub(Amounts.sum(amt).amount, Amounts.sum(fees).amount).amount;
|
return Amounts.sub(Amounts.sum(amt).amount, Amounts.sum(fees).amount).amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DepositGroupFees {
|
|
||||||
coin: AmountJson;
|
|
||||||
wire: AmountJson;
|
|
||||||
refresh: AmountJson;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the fee amount that will be charged when trying to deposit the
|
* Get the fee amount that will be charged when trying to deposit the
|
||||||
* specified amount using the selected coins and the wire method.
|
* specified amount using the selected coins and the wire method.
|
||||||
|
Loading…
Reference in New Issue
Block a user