mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-27 16:17:47 +03:00
Fix price conversion
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user