0.0.10-development • Published 1 month ago

vinuswap-sdk v0.0.10-development

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

vinuswap-sdk

Wrapper for VinuSwap contracts, based on Uniswap v3 SDK.

Install

npm install vinuswap-sdk

Usage

import VinuSwap from 'vinuswap-sdk';

const sdk = await VinuSwap.create(
    tokenAAddress,
    tokenBAddress,
    poolAddress,
    quoterAddress,
    routerAddress,
    positionManagerAddress,
    signerOrProvider
);

IMPORTANT: Uniswap (and, therefore, VinuSwap) uses an address-based ordering for tokens that does not necessarily match the order in which they are passed to the constructor. Therefore, be sure to check which token is token0 and which token is token1 with sdk.token0Address and sdk.token1Address.