moving deposit group fee into taler util

This commit is contained in:
Sebastian 2022-09-21 15:43:12 -03:00
parent 26cf19ab6c
commit 2caef6dcf2
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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.