Skip to content

Commit e85195f

Browse files
merge
2 parents bdbaba5 + 83106a2 commit e85195f

24 files changed

+1575
-41605
lines changed

core/src/actions/swapUtils.ts

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1+
import { getAssociatedTokenAddress } from "@solana/spl-token";
12
import {
2-
PublicKey,
3-
Keypair,
3+
BlockhashWithExpiryBlockHeight,
44
Connection,
5-
VersionedTransaction,
6-
LAMPORTS_PER_SOL,
5+
Keypair,
6+
PublicKey,
77
RpcResponseAndContext,
8-
TokenAmount,
98
SimulatedTransactionResponse,
10-
Blockhash,
11-
BlockhashWithExpiryBlockHeight,
9+
TokenAmount,
10+
VersionedTransaction
1211
} from "@solana/web3.js";
13-
import { getAssociatedTokenAddress } from "@solana/spl-token";
14-
import settings from "../core/settings";
12+
import settings from "../core/settings.ts";
1513

1614
const solAddress = settings.SOL_ADDRESS;
1715
const SLIPPAGE = settings.SLIPPAGE;
18-
const connection = new Connection(settings.RPC_URL!);
16+
const connection = new Connection(settings.RPC_URL || "https://api.mainnet-beta.solana.com");
1917
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
2018

2119
export async function delayedCall<T>(

0 commit comments

Comments
 (0)