mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-18 03:45:02 +03:00
fee calculation
This commit is contained in:
@@ -140,6 +140,8 @@ export default async function getSwapInfo({
|
||||
baseCurrencyPriceInQuoteAsset,
|
||||
gasPriceGwei,
|
||||
feePercent,
|
||||
feeAssetAddress,
|
||||
allPrices.prices,
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
@@ -388,6 +388,8 @@ export default async function swapLimit({
|
||||
baseCurrencyPriceInQuoteAsset,
|
||||
gasPriceGwei,
|
||||
feePercent,
|
||||
feeAsset,
|
||||
allPrices.prices,
|
||||
);
|
||||
|
||||
if (feeAsset === assetOut) {
|
||||
|
||||
@@ -346,6 +346,8 @@ export default async function swapMarket({
|
||||
baseCurrencyPriceInQuoteAsset,
|
||||
gasPriceGwei,
|
||||
feePercent,
|
||||
feeAsset,
|
||||
allPrices.prices,
|
||||
);
|
||||
|
||||
if (feeAsset === assetOut) {
|
||||
|
||||
Reference in New Issue
Block a user