fee calculation

This commit is contained in:
Kirill Litvinov
2023-08-01 16:19:52 +03:00
parent b32957f528
commit 7eebb2bb9e
7 changed files with 34 additions and 20 deletions

View File

@@ -140,6 +140,8 @@ export default async function getSwapInfo({
baseCurrencyPriceInQuoteAsset,
gasPriceGwei,
feePercent,
feeAssetAddress,
allPrices.prices,
);
return {

View File

@@ -388,6 +388,8 @@ export default async function swapLimit({
baseCurrencyPriceInQuoteAsset,
gasPriceGwei,
feePercent,
feeAsset,
allPrices.prices,
);
if (feeAsset === assetOut) {

View File

@@ -346,6 +346,8 @@ export default async function swapMarket({
baseCurrencyPriceInQuoteAsset,
gasPriceGwei,
feePercent,
feeAsset,
allPrices.prices,
);
if (feeAsset === assetOut) {