position-uni-v3

Made with create-react-library


License
MIT
Install
npm install position-uni-v3@3.1.3

Documentation

position-uni-v3

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save position-uni-v3

Usage

import React,{useState,useEffect} from 'react'

import {  useFullPosition} from 'position-uni-v3'
const ExamplePosition=()=>{
  //code ...
   const {
    symbol,
    priceLower,
    priceUpper,
    base,
    quote,
    liquidity,
    unClaimFee,
    position,
    poolHook,
    tokenPre,
    tokenSub,
    positionBasic,
    inRange,
    loading,
    priceTokenPair
  } = useFullPosition({
    idPool: id,
    chainId,
    listAllTokenSupport: listToken,
    web3: Web3Services.createWeb3Provider(),
    callback: null
  })
  //code....
  liquidity.liquidityPre
  ///.....
}

export default ExamplePosition

License

MIT © HoDienCong12c5