@nimiq/fastspot-api
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -30,3 +30,5 @@ import { SwapAsset, } from './types'; | ||
fee: coinsToUnits(asset, from.fundingNetworkFee.total, true), | ||
feePerUnit: coinsToUnits(asset, from.fundingNetworkFee.perUnit, true), | ||
...(from.fundingNetworkFee.perUnit ? { | ||
feePerUnit: coinsToUnits(asset, from.fundingNetworkFee.perUnit, true), | ||
} : {}), | ||
serviceNetworkFee: coinsToUnits(asset, from.finalizeNetworkFee.total, true), | ||
@@ -42,3 +44,5 @@ serviceEscrowFee: coinsToUnits(asset, from.operatingNetworkFee.total, true), | ||
fee: coinsToUnits(asset, to.finalizeNetworkFee.total, true), | ||
feePerUnit: coinsToUnits(asset, to.finalizeNetworkFee.perUnit, true), | ||
...(to.finalizeNetworkFee.perUnit ? { | ||
feePerUnit: coinsToUnits(asset, to.finalizeNetworkFee.perUnit, true), | ||
} : {}), | ||
serviceNetworkFee: coinsToUnits(asset, to.fundingNetworkFee.total, true), | ||
@@ -45,0 +49,0 @@ serviceEscrowFee: coinsToUnits(asset, to.operatingNetworkFee.total, true), |
@@ -27,3 +27,3 @@ export declare enum SwapAsset { | ||
export declare type FastspotFee = { | ||
perUnit: string; | ||
perUnit?: string; | ||
total: string; | ||
@@ -37,3 +37,3 @@ totalIsIncluded: boolean; | ||
fundingNetworkFee: FastspotFee; | ||
operatingNetworkFee: Omit<FastspotFee, 'perUnit'>; | ||
operatingNetworkFee: FastspotFee; | ||
finalizeNetworkFee: FastspotFee; | ||
@@ -126,3 +126,3 @@ }; | ||
fee: number; | ||
feePerUnit: number; | ||
feePerUnit?: number; | ||
serviceNetworkFee: number; | ||
@@ -129,0 +129,0 @@ serviceEscrowFee: number; |
{ | ||
"name": "@nimiq/fastspot-api", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Typescript library to interact with the Fastspot API", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:nimiq/fastspot-api.git", |
28470
491