Fix price conversion

This commit is contained in:
Aleksandr Kraiz
2023-08-05 01:10:20 +04:00
parent 230c399bdc
commit b6cb9ae1a1
5 changed files with 26 additions and 26 deletions

View File

@@ -3,8 +3,8 @@ import convertPrice from './convertPrice.js';
export default function calculateServiceFeeInFeeAsset(
amount: BigNumber.Value,
baseAssetAddress: string,
feeAssetAddress: string,
baseAssetName: string,
feeAssetName: string,
feePercent: BigNumber.Value,
prices: Partial<Record<string, string>>
) {
@@ -12,8 +12,8 @@ export default function calculateServiceFeeInFeeAsset(
const feeAssetAmount = convertPrice(
feeAmount,
baseAssetAddress,
feeAssetAddress,
baseAssetName,
feeAssetName,
prices
);