// function getLpNumber(address lpAddr)public view returns(uint112 ,uint112){ // uint112 token0Num; // uint112 token1Num; // (token0Num,token1Num,) = Pair(lpAddr).getReserves(); // if(_usdt == Pair(lpAddr).token0()){ // return(token0Num,token1Num); // } // return(token1Num,token0Num); // } // function getLpPrice(address lpAddr)public view returns(uint){ // uint balanceQs ; // uint balanceUsdt ; // (balanceUsdt,balanceQs) = getLpNumber(lpAddr); // uint total = IERC20(lpAddr).totalSupply(); // return balanceUsdt*2/total; // }
标签:uint112,随写,LP,token1Num,balanceUsdt,lpAddr,uint,token0Num,本人 From: https://www.cnblogs.com/hushuning/p/17347301.html