diff --git a/README.md b/README.md index 2701683..7ec5d13 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,16 @@ Please complete the report problem below: ## Problem 1 Provide your profitable path, the amountIn, amountOut value for each swap, and your final reward (your tokenB balance). -> Solution -> tokenB->tokenA->tokenD->tokenB -> Swap details: -> tokenB->tokenA: amountIn = 5.0, amountOut = 5.655321988655322 -> tokenA->tokenD: amountIn = 5.655321988655322, amountOut = 2.4587813170979333 -> tokenD->tokenB: amountIn = 2.4587813170979333, amountOut = 3.7707653049598298 +> Solution
+> tokenB->tokenA->tokenD->tokenB
+> Swap details:
+> tokenB->tokenA: amountIn = 5.0, amountOut = 5.655321988655322
+> tokenA->tokenD: amountIn = 5.655321988655322, amountOut = 2.4587813170979333
+> tokenD->tokenB: amountIn = 2.4587813170979333, amountOut = 3.7707653049598298
> Final reward (tokenB balance): 3.7707653049598298 + ## Problem 2 What is slippage in AMM, and how does Uniswap V2 address this issue? Please illustrate with a function as an example.