adapter for uniswap contracts
Here is an adapter for UniswapV2Router02
Its implements functions:
-
getPair
-
createPair
-
allPairsLength
-
addLiquidity
-
removeLiquidity
-
swapExactTokensForTokens
-
swapTokensForExactTokens
-
getAmountsOut
-
getAmountsIn
Also for testings was made wraped ethereum token (WETH) based on IERC20
Tests was done on fork of eth-mainnet, blockNumber: 12883802.