position-uni-v3
Made with create-react-library
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