Skip to content

Comments

fix: reduce swap amount in UniswapV2Arb1 exercise test to match solution test#44

Merged
t4sk merged 1 commit intoCyfrin:mainfrom
RenchTG:fix/uniswapv2-exercise-arb1-test
Jan 12, 2026
Merged

fix: reduce swap amount in UniswapV2Arb1 exercise test to match solution test#44
t4sk merged 1 commit intoCyfrin:mainfrom
RenchTG:fix/uniswapv2-exercise-arb1-test

Conversation

@RenchTG
Copy link
Contributor

@RenchTG RenchTG commented Dec 20, 2025

Currently, uniswap-v2/exercises/UniswapV2Arb1.test.sol uses an amountIn of 10000 * 1e18. The solution test uses only 10 * 1e18. Even if a correct solution is written for the exercise, the flashSwap test will fail due to an insufficient liquidity error. This fix will ensure the exercise test matches the solution test.

@EngrPips
Copy link

Thanks for the contribution. This will be attended to appropriately as soon as possible.

@t4sk t4sk merged commit 36c92af into Cyfrin:main Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants