fix: params count in swap funct; feat: added comments

This commit is contained in:
Alex Kraiz
2023-12-11 13:39:23 +04:00
parent 14998f2531
commit 47d671a9f7
4 changed files with 11 additions and 4 deletions

View File

@@ -426,7 +426,6 @@ export default async function swapLimit({
walletAddress,
matcherAddress,
feeAssetAddress,
false,
signer,
chainId,
);

View File

@@ -45,6 +45,7 @@ export default async function swapMarket({
options,
}: SwapMarketParams): Promise<Swap> {
if (options?.developer) options.logger?.('YOU SPECIFIED A DEVELOPER OPTIONS. BE CAREFUL!');
if (amount === '') throw new Error('Amount can not be empty');
if (assetIn === '') throw new Error('AssetIn can not be empty');
if (assetOut === '') throw new Error('AssetOut can not be empty');
@@ -384,7 +385,6 @@ export default async function swapMarket({
walletAddress,
matcherAddress,
feeAssetAddress,
false,
signer,
chainId,
);