Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ 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.
Expand Down