Skip to content

Commit

Permalink
描述性訊息
Browse files Browse the repository at this point in the history
  • Loading branch information
rayliao1031 committed Apr 3, 2024
1 parent 8f6c683 commit ba19350
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>
> tokenB->tokenA->tokenD->tokenB<br>
> Swap details:<br>
> tokenB->tokenA: amountIn = 5.0, amountOut = 5.655321988655322<br>
> tokenA->tokenD: amountIn = 5.655321988655322, amountOut = 2.4587813170979333<br>
> tokenD->tokenB: amountIn = 2.4587813170979333, amountOut = 3.7707653049598298<br>
> 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.

Expand Down

0 comments on commit ba19350

Please sign in to comment.