koko37 / uniV2-limits-stops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uniV2-limit-stop

Autonomy Network is a protocol for decentralised automation. The Autonomy contracts themselves can be found here.

In order to automate something with a condition using Autonomy, that condition needs to be codified in a wrapper contract around the target contract. This repo is an example of that - used in production to add limit orders and stop losses to UniswapV2. Only 1 instance of this contract needs to be deployed per blockchain, since it can be used for limits and stops to anything that fits the UniswapV2 interface - such as any UniswapV2 fork, which most DEXes are.

This repo uses brownie (v1.15.2) to test. These tests use the real Ethereum mainnet to test, so you'll need an API code from someone like Infura or Alchemy. To run these tests, use brownie test --network mainnet-fork.

About


Languages

Language:Python 75.7%Language:Solidity 24.3%