From 7af1a02ef97bf48eacb11061b73e6983090de03a Mon Sep 17 00:00:00 2001 From: rayliao1031 <139314154+rayliao1031@users.noreply.github.com> Date: Wed, 3 Apr 2024 21:22:58 +0800 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e21214a..b7c13da 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ Please complete the report problem below: Provide your profitable path, the amountIn, amountOut value for each swap, and your final reward (your tokenB balance). > Solution +>profitable path : 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.