Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounty Request: Connector to raindex #6936

Open
thedavidmeister opened this issue Mar 27, 2024 · 7 comments
Open

Bounty Request: Connector to raindex #6936

thedavidmeister opened this issue Mar 27, 2024 · 7 comments
Labels
enhancement Upgrade or improvement to an existing hummingbot feature

Comments

@thedavidmeister
Copy link

Description

I made a dex that is an orderbook where every order is dynamically calculated using an onchain smart contract language that i made (rainlang).

Docs are here https://docs.rainlang.xyz/orderbook/introduction/

I'm looking for a hummingbot connector to be written to make the dex more efficiently and effectively connected to other liquidity sources (e.g. via arbitrage).

I'm not familiar with the process of bounties on HB so i'll work through the docs and form submissions in parallel to this issue until we can move it forward.

Bounty

  • Sponsor: Rainlang
  • Bounty amount: ?? not sure yet
  • Developer portion: ?? not sure yet
@nikspz
Copy link
Contributor

nikspz commented Mar 27, 2024

I'm not familiar with the process of bounties on HB so i'll work through the docs and form submissions in parallel to this issue until we can move it forward.

If you want to open bounty that's a guide here:
https://hummingbot.org/bounties/sponsors/

Lifecicle of bounty here: https://hummingbot.org/bounties/lifecycle/

Before bounty will be added to the board sponsor need to fund the bounty.
that's the suggested pricing:
(Bounty Pricing Guidance)
https://hummingbot.org/bounties/prices/

@thedavidmeister
Copy link
Author

@nikspz thanks, form submitted, i'm on discord

@nikspz nikspz added enhancement Upgrade or improvement to an existing hummingbot feature and removed bounty labels Mar 27, 2024
@nikspz
Copy link
Contributor

nikspz commented Mar 28, 2024

@thedavidmeister
Do you want to sponsor bounty, correct?

you didn't specified the amount you want to pay (to fund connector creation)

@thedavidmeister
Copy link
Author

@nikspz right i haven't yet, i've been asking in discord to try to figure out the scope with @mlguys

raindex works a bit differently to other dex so, i could just put the standard $3750 but i'm not sure if that's right, or if i should perhaps modify the dex itself to make it easier to work with etc.

@nikspz
Copy link
Contributor

nikspz commented Mar 28, 2024

@thedavidmeister

  • The exchange has an orderbook where each order is a smart contract
  • this bounty needs 4 criteria for a dev (or more):
    • Know how
      • create Hummingbot connector
      • rainlang programming language work
      • rainlang protocol work
      • write rainlang smartcontract order
    • From this statement
      • Since the connector dev will need to learn new rainlang language, change / implement new changes to the existing Hummingbot code standarts and have a lot of experience so estimated price is ~25k USDC, anyway for us it mean for testing dev reviewing it is also complicated so currenly we would advise:
      • would be easier to get someone from Raindex community to learn Hummingbot then go back and build the connector

@thedavidmeister
Copy link
Author

@nikspz i don't think the connector implementer needs to learn rainlang, i can fill that gap myself, i just need to know what the connector needs so that i can plan to fill in gaps that i don't expect an HB dev to understand

just like i expect an HB dev to fill the gaps in my understanding of HB

@thedavidmeister
Copy link
Author

the way it typically works

  • someone places an order on raindex, which is dynamic, they call addOrder on the contract
  • the logic that defines the order is emitted in an onchain AddOrder event
  • typically the event is indexed by our subgraph and so all the order logics are available to someone when they query the subgraph, e.g. "get me all the order logics for pair 'buy X for Y'"
  • running the order logic is onchain so it's just a smart contract call, e.g. you pass the order logic to the dex smart contract and it tells you what price/amount that order is currently evaluating to, this can be done like any other fork in hardhat/foundry/etc.
  • taking the order is basically the same, you pass a list of orders that you want to take, and how much you'd like to spend and it "market buys" that set of orders up to your desired trade size

based on discord discussions, i understand that subgraphs are unusual for HB but then I don't know how HB normally handles onchain events, if that's natively supported then just replace "query subgraph" with "HB listens to the onchain events and tracks them internally"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Upgrade or improvement to an existing hummingbot feature
Projects
None yet
Development

No branches or pull requests

2 participants