Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
/ swap-widget Public archive

A widget for projects to embed Pangolin's Swap functionality within their dApp

License

Notifications You must be signed in to change notification settings

pangolindex/swap-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gelato Limit Order SDK

A widget for projects to embed Pangolin's Swap functionality within their dApp

Getting Started

Instantiate PangolinSwap

import {
  PangolinSwap,
  utils,
} from "@pangolindex/swap-widget";

// Supported networks: Mainnet = 1; Ropsten = 3; Polygon = 137; Fantom = 250; Avalanche = 43114;  BSC = 56
const chainId = 1;
const signerOrProvider = await provider.getSigner();

const pangolinSwap = new PangolinSwap(
  chainId as ChainId,
  signerOrProvider, // optional
  handler // optional
);

About

A widget for projects to embed Pangolin's Swap functionality within their dApp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published