---
title: "Discussion on \"Ethernaut Level 22 - Dex\" | Hashnode"
description: "Discussion on \"Ethernaut Level 22 - Dex\". Analysis and solution for Ethernaut's Level 22 - Dex, with Solidity and Foundry"
url: "https://hashnode.com/posts/ethernaut-level-22-dex/6316414d360c57fcaa77c1c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ethernaut Level 22 - Dex](https://blog.dixitaditya.com/ethernaut-level-22-dex?utm_source=hashnode&utm_medium=feed)

Analysis and solution for Ethernaut's Level 22 - Dex, with Solidity and Foundry

Sep 5, 2022 · 6 min read · blog.dixitaditya.com  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#ethereum](https://hashnode.com/tag/ethereum)
-   [#ethernaut](https://hashnode.com/tag/ethernaut)
-   [#web3](https://hashnode.com/tag/web3)
-   [#solidity](https://hashnode.com/tag/solidity)

## Written by

[Aditya Dixit](https://hashnode.com/@adityadixit)

@adityadixit · India

  
[View profile](https://hashnode.com/@adityadixit)

Security Researcher

I'm leading the Research at Credshields, and Pentest teams at Cobalt Labs and HackerOne. I occasionally blog about my findings and adventures in pentesting.

## Responses 1

Markdown supported · ⌘↵ to post

[TheDude](https://hashnode.com/@TheDude)

[Jan 29, 2023](https://hashnode.com/posts/ethernaut-level-22-dex/6316414d360c57fcaa77c1c3/comment/63d68e4479b83837afca7365)

Your analysis of the bug is wrong. The lack of floating point is not the issue here. check this explanation.

medium.com/@thedudeog/dex-101-understanding-the-mechanics-behind-uniswap-v2-eb4d18f5a363
