Matic cross chain arbitrage opportunity graph

CAT allows you to observe the historical price margins of ERC20 tokens between Ethereum Mainnet and Matic chain (and QuickSwap). This is going to be the port of similar project I did for Mainnet-xDAI at https://github.com/makoto/xdai-arb-graph a

Description

With the rise of Ethereum high gas price, making any transaction is becoming harder and harder. This started giving opportunities for layer 2/side chain providers to bring liquidity. The more tokens cross chains there will be artibrage opportunities across DEXes but it is hard to find out where opportunities lie. CAT provides 2 basic functions. 1. Shows daily price gap of tokens between Ethereum and Matic 2. Simulate maximum profit

Matic cross chain arbitrage opportunity graph showcase

How it's made

The historical data is mostly taken via GraphProtocol subgraph - https://graph.ginete.in/subgraphs/name/matic/quickswap - https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2 - https://api.thegraph.com/subgraphs/name/maticnetwork/mainnet-root-subgraphs To get aToken -> maToken specific address mapping I called smartcontract of Aavegotchi ATokenRootChainManager.sol contract functions

Technologies used

EthereumThe GraphUSDC1inchAavegochiMatic/Polygon