Giter Site home page Giter Site logo

limit-order-bot-uniswap-v3-vyper's Introduction

Limit Order Bot Vyper for Uniswap V3

Dependencies

Brownie

Ganache

Add account

brownie accounts new deployer_account

Deploy on mainnet

Create scripts/deploy_*.py and Compass-EVM contract address.

- Uniswap V3 Limit order bot

brownie run scripts/deploy_uniswap_v3.py --network mainnet

Read-Only functions

compass

Key Type Description
Return address Returns compass-evm smart contract address

admin

Key Type Description
Return address Returns an admin address

deposits

Key Type Description
arg0 uint256 Deposit Id to get Deposit information
Return Deposit Deposit information

State-Changing functions

deposit

Deposit a token with its amount with an expected token address and amount. This is run by users.

Key Type Description
token0 address Deposit token address
amount uint256 Deposit token amount
token1 address Expected token address
fee uint24 Deposit pool on Uniswap V3
to_tick int24 Uniswap V3 tick of expected token price

cancel

Cancels an order.

Key Type Description
tokenId uint256 Uniswap V3 liquidity NFT Id to cancel

multiple_cancel

Cancels multiple orders.

Key Type Description
tokenIds uint256[] Uniswap V3 liquidity NFT Ids array to cancel

withdraw

Swap and send the token to the depositor.

Key Type Description
tokenId uint256 Uniswap V3 liquidity NFT Id to swap and send to the depositor

multiple_withdraw

Swap and send multiple tokens to the depositor.

Key Type Description
tokenIds uint256[] Uniswap V3 liquidity NFT Ids array to swap and send to depositors

update_admin

Update admin address.

Key Type Description
new_admin address New admin address

update_compass

Update Compass-EVM address.

Key Type Description
new_compass address New compass-evm address

Struct

Deposit

Key Type Description
pool address Uniswap V3 liquidity pool address
token0 address Token address to trade
token1 address Token address to receive
from_tick int24 Uniswap V3 tick on deposit price
to_tick int24 Uniswap V3 tick on expected price
depositor address Depositor address
token_id uint256 Uniswap V3 liquidity NFT token Id

limit-order-bot-uniswap-v3-vyper's People

Contributors

webelf101 avatar taariq avatar verabehr avatar

Stargazers

 avatar Datt Goswami avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.