Different parsers, different results

Introduction

What is Gearbox?

A diagram depicts the architecture of mentioned process (Copied from https://dev.gearbox.fi/contracts/architecture)

Health Check

UniswapV3 Adapter

A code snippet from UniV3Adapter.sol

Never ever trust user input

Different parsers, different results

Return first 20 bytes as tokenA and last 20 bytes as tokenB
Return first 20 bytes as tokenA, next 3 bytes as fee and next 20 bytes as tokenB

Vulerability Report

Timeline

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store