Made with create-react-library
npm install --save position-uni-v3@2.2.5
npm install --save position-uni-v3@3.0.5
npm install --save position-uni-v3
//for version 3.0.5
import React,{useState,useEffect} from 'react'
import { useFullListPosition} from 'position-uni-v3'
const ExamplePosition=()=>{
//code ...
const {isFinish,listData,resetHook} = useFullListPosition(address, chainId, listTokenPool)
//code....
///.....
}
//use for version laster
import React,{useState,useEffect} from 'react'
import { useFullPosition} from 'position-uni-v3'
const ExamplePosition=()=>{
//code ...
const listChainSupport = [1,2,4,6]
const {isFinish,listData,resetHook} = useFullPosition(
address,
chainId,
createWeb3NewBasic('your rpc'),
listTokenPool,
listChainSupport
)
//code....
///.....
}
export default ExamplePosition
MIT © HoDienCong12c5