The metauniverse is an immersive digital world created by the combination of virtual reality,augmented reality and the Internet.
The connotation and key technologies of the metauniverse require further breaking the space-time limit(5G and the Internet of Things),real immersion(VR),and value transmission(Web 3.0,blockchain).
//LIBRARY FUNCTIONS
//以下方法,都是library里面的方法,代调用UniswapV2Library
function quote(uint amountA,uint reserveA,uint reserveB)public pure virtual override returns(uint amountB){
return UniswapV2Library.quote(amountA,reserveA,reserveB);
}
function getAmountOut(uint amountIn,uint reserveIn,uint reserveOut)
public
pure
virtual
override
returns(uint amountOut)
{
return UniswapV2Library.getAmountOut(amountIn,reserveIn,reserveOut);
}
function getAmountIn(uint amountOut,uint reserveIn,uint reserveOut)
public
pure
virtual
override
returns(uint amountIn)
{
return UniswapV2Library.getAmountIn(amountOut,reserveIn,reserveOut);
}
function getAmountsOut(uint amountIn,address[]memory path)
public
view
virtual
override
returns(uint[]memory amounts)
{
return UniswapV2Library.getAmountsOut(factory,amountIn,path);
}
function getAmountsIn(uint amountOut,address[]memory path)
public
view
virtual
override
returns(uint[]memory amounts)
{
return UniswapV2Library.getAmountsIn(factory,amountOut,path);
}
}
//a library for performing overflow-safe math,courtesy of DappHub
library SafeMath{
function add(uint x,uint y)internal pure returns(uint z){
require((z=x+y)>=x,'ds-math-add-overflow');
}
function sub(uint x,uint y)internal pure returns(uint z){
require((z=x-y)<=x