Skip to content

Commit

Permalink
chore: todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrg committed Jan 3, 2025
1 parent ec2445f commit 5019d4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/hooks/swap/data/use-swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export const useSwap = ({ tokenA, tokenB, direction, slippage, swapFee = 15 }: U
return null;
}

// check this args
if (direction === "EXACT_IN") {
return swapRouterRepository.sendExactInSwapRoute({
inputToken: tokenA,
Expand All @@ -256,6 +257,7 @@ export const useSwap = ({ tokenA, tokenB, direction, slippage, swapFee = 15 }: U
});
}

// check this args
if (direction === "EXACT_OUT") {
return swapRouterRepository.sendExactOutSwapRoute({
inputToken: tokenA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ export class SwapRouterRepositoryImpl implements SwapRouterRepository {
return response.data;
};

//Todo: Implement this code
public getDrySwap = async (request: DrySwapRequest): Promise<number> => {
if (!this.rpcProvider) {
throw new CommonError("FAILED_INITIALIZE_GNO_PROVIDER");
}

// Discuss if needed
if (!PACKAGE_ROUTER_PATH) {
throw new CommonError("FAILED_INITIALIZE_ENVIRONMENT");
}
Expand Down

0 comments on commit 5019d4c

Please sign in to comment.