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;
|
||||
}
|
||||
|
||||
export interface DepositGroupFees {
|
||||
coin: AmountJson;
|
||||
wire: AmountJson;
|
||||
refresh: AmountJson;
|
||||
}
|
||||
export interface CreateDepositGroupRequest {
|
||||
depositPaytoUri: string;
|
||||
amount: AmountString;
|
||||
|
@ -27,6 +27,7 @@ import {
|
||||
ContractTerms,
|
||||
CreateDepositGroupRequest,
|
||||
CreateDepositGroupResponse,
|
||||
DepositGroupFees,
|
||||
durationFromSpec,
|
||||
encodeCrock,
|
||||
GetFeeForDepositRequest,
|
||||
@ -568,12 +569,6 @@ export async function getEffectiveDepositAmount(
|
||||
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
|
||||
* specified amount using the selected coins and the wire method.
|
||||
|
Loading…
Reference in New Issue
Block a user