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

Seer - create liquidity pool #497

Open
gabrielfior opened this issue Oct 14, 2024 · 6 comments
Open

Seer - create liquidity pool #497

gabrielfior opened this issue Oct 14, 2024 · 6 comments
Labels

Comments

@gabrielfior
Copy link
Contributor

After market is created using MarketFactory, we should create an uni-v3-like liquidity pool (ERC20 outcome token x collateral, normally sDAI).

  • Create functions for creating a new pool with erc20/collateral tokens in Uniswap v3 (due to higher liquidity than Swapr)
  • Add new contract (UniswapV3Pool) to PMAT (note that we will not buy/sell directly on Univ3 but rather through cow, so refrain from writing methods to swap here)
@greenlucid
Copy link
Contributor

But, Uniswap v3 is not available in Gnosis Chain, is it? Which might be why Seer is using Swapr.
Also I was told that Cow indexes only tokens with >100_000 units in total balance, and that caused issues with Seer in small markets (which made Seer not have an Order Book mplemented and just rely on AMM)
Can @xyzseer provide more context?
I think none of this was an issue before because Omen has its own AMM contracts

@xyzseer
Copy link

xyzseer commented Oct 24, 2024

afaik there's a uniswap deployment on gnosis but it's not officially integrated on the frontend (see Uniswap/sdk-core#89)

what green mentions about the 100k limit is also true, for example this market https://seer.pm/#/markets/100/0x43d881f5920ed29fc5cd4917d6817496abbba6d9 has two tokens

  • HARRIS2024 (0x68984a7d283ff918e530368e6aaad1fc2af88692) has a swapr pool with 140k and can be traded on cowswap
  • TRUMP2024 (0x6b8c2ae8dba895620475259e95377fde08fbf02a) has a pool with 53k and cowswap says this token is unsupported

@gabrielfior
Copy link
Contributor Author

Updating my understanding here:
-> Creating liquidity pools occurs outside of Seer
-> Seer "finds" markets through this function useAllOutcomePools (link)
-> We could use SwaprV3 or Uni v3 (deployed recently on Gnosis chain)

Swapr V3
-> To be clarified what the easiest way is to interact with it - Seer UI uses Swapr SDK (link), no Python integration available (would need to write logic from scratch)

Uni V3
-> Python client exists (functionalities include createPool, createPosition, make trade, etc)

@kongzii
Copy link
Contributor

kongzii commented Jan 28, 2025

@gabrielfior I interacted with some market on Seer using CoW previously. What are the limitations there (if any except for 100k threshold)? Would we support a reasonable part of Seer markets if we are CoW-only? (because for CoW we already have some integration in PMAT and Martin talked about some improvement being made there, so we could just wait it out)

@gabrielfior
Copy link
Contributor Author

Would we support a reasonable part of Seer markets if we are CoW-only?

From the prev comments, I thought cow didn't support small markets, however it seems that now it does (see link below, pool contains < 100k tokens and still Cow supports swaps)
https://app.seer.pm/markets/100/0x7d72aa56ecdda207005fd7a02dbfd33f92d0def7?outcome=YES

Image

Image

So I will create a market manually (with aprox 10 xDAI) and check if Cow is able to solve that. I will report back here.

@gabrielfior
Copy link
Contributor Author

Update - cow is able to find the tiny pools I created for the test market. Proceeding under the assumption that cow integration suffices for the betting interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants