wallet-core: get rid of AmountJson in public API
This commit is contained in:
parent
d50294f76e
commit
8442452c33
@ -1614,9 +1614,9 @@ export interface GetFeeForDepositRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface DepositGroupFees {
|
export interface DepositGroupFees {
|
||||||
coin: AmountJson;
|
coin: AmountString;
|
||||||
wire: AmountJson;
|
wire: AmountString;
|
||||||
refresh: AmountJson;
|
refresh: AmountString;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateDepositGroupRequest {
|
export interface CreateDepositGroupRequest {
|
||||||
|
@ -646,8 +646,10 @@ export async function getTotalFeesForDepositAmount(
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
coin: Amounts.sumOrZero(total.currency, coinFee).amount,
|
coin: Amounts.stringify(Amounts.sumOrZero(total.currency, coinFee).amount),
|
||||||
wire: Amounts.sumOrZero(total.currency, wireFee).amount,
|
wire: Amounts.stringify(Amounts.sumOrZero(total.currency, wireFee).amount),
|
||||||
refresh: Amounts.sumOrZero(total.currency, refreshFee).amount,
|
refresh: Amounts.stringify(
|
||||||
|
Amounts.sumOrZero(total.currency, refreshFee).amount,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user