sERC20 takes full control of the router and pair, when initialised we will automatically create the pair address for you. At the moment we only support Uniswap v2 compatible exchanges.
The router address must be passed to the
SERC20 constructormethod upon initialisation. This will create a pair for you using the relevant factory.
The router object can be accessed at any point using the following method. You should NEVER handle this yourself, always refer to our built in methods to maintain your sERC20 implementation integrity.
function _sercRouter() internal view return (IUniswapV2Router02)
The sERC20 library exposes a getPair method for accessing the pair address. You should NEVER handle these yourself, always refer to our built in methods to maintain your sERC20 implementation integrity.
function _sercPair() internal view return (address)