neeeekitos / hubble

Onchain solver

Home Page:https://hubble-starknet.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hubble

Hubble is an onchain solver aggregating different DEXs in order to provide the best swap route. It builds a graph with edges representing tokens and vertices representing the existent pairs. When all possible routes are indentified, the propagates getAmountOut() calls through all routes in order to find the maximum output one. In new versions swap split will be implemented to be able to split the order. Next, other DEXs will be added (only JediSwap is supported currently).

Installation

yarn && yarn dev

Testing

protostar test

About

Onchain solver

https://hubble-starknet.netlify.app/

License:GNU Affero General Public License v3.0


Languages

Language:Cairo 56.6%Language:TypeScript 40.4%Language:JavaScript 2.9%Language:CSS 0.1%