Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Freedomswaps

πŸ¦• module to simplify uniswap interactions by leveraging smart contracts like Freedomswaps fostering the adoption of decentralized exchanges.

Thanks to brightinventions.pl.

Usage Example

import { FreedomSwaps } from "https://deno.land/x/freedomswaps/mod.ts"

const tokenIn = Deno.args[0] // e.g. "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270" // Matic on Polygon POS
const tokenOut = Deno.args[1] // e.g. "0x099471B71c9D8b0C6b616eE9A7C645e22cA9cfF7" // Freiheit on Polygon POS
const amountIn = Deno.args[2] // e.g. 1
const poolFee = Deno.args[3] // e.g. 10000
const slippage = Deno.args[4] // e.g. 9
const providerURL = Deno.args[5] // e.g. https://polygon-mainnet.g.alchemy.com/v2/...
const pkTestWallet = Deno.args[6] // e.g. <experiment with small amounts / wallets>

await FreedomSwaps.swapStatic()

Execute Usage Example

deno run --allow-net --allow-read --allow-write --allow-env https://deno.land/x/freedomswaps/usage-example.ts 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270 0x099471B71c9D8b0C6b616eE9A7C645e22cA9cfF7 1 10000 9 https://polygon-mainnet.g.alchemy.com/v2/... <your experimental pk>

About us

We are Friends of Satoshi.

Chancellor on brink of second bailout for banks.

chancellor-on-brink-of-second-bailout-for-banks

chancellor-on-brink-of-second-bailout-for-banks-starter

We are free.