Skip to content

Commit

Permalink
Merge pull request #1078 from ai16z/fix/plugin-near
Browse files Browse the repository at this point in the history
fix: errors in swap action in plugin-near
  • Loading branch information
shakkernerd authored Dec 14, 2024
2 parents 40e1a2b + 9052409 commit 9ee1b86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/plugin-near/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ async function swapToken(
runtime.getSetting("RPC_URL") || "https://rpc.testnet.near.org";

// Get all pools for estimation
const { ratedPools, unRatedPools, simplePools } = await fetchAllPools();
// ratedPools, unRatedPools,
const { simplePools } = await fetchAllPools();
const swapTodos = await estimateSwap({
tokenIn,
tokenOut,
Expand Down Expand Up @@ -95,7 +96,7 @@ async function swapToken(
const hasStorageIn = await checkStorageBalance(account, inputTokenId);
const hasStorageOut = await checkStorageBalance(account, outputTokenId);

let transactions = await instantSwap({
const transactions = await instantSwap({
tokenIn,
tokenOut,
amountIn: amount,
Expand Down

0 comments on commit 9ee1b86

Please sign in to comment.