Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/freedomswaps/freedom-swaps.ts>FreedomSwaps

🦕 module to simplify uniswap interactions
Latest
class FreedomSwaps
import { FreedomSwaps } from "https://deno.land/x/freedomswaps@v1.11.1/freedom-swaps.ts";

Constructors

new
private
FreedomSwaps(logger: any, provider: any)

Properties

private
logger
private
provider

Methods

getPrice(
tokenContractAddress1: string,
tokenContractAddress2: string,
poolFee: number,
pkTestWallet: string,
): Promise<number>
swap(
tokenIn: string,
tokenOut: string,
amountIn: bigint,
poolFee: number,
slippage: number,
pkTestWallet: string,
)
swapExactOutput(
tokenIn: string,
tokenOut: string,
amountOut: bigint,
poolFee: number,
slippage: number,
pkTestWallet: string,
)
unwrap(pkTestWallet: string)