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 - cow-py (or maybe Swapr?) buy/sell token integration #498

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

Seer - cow-py (or maybe Swapr?) buy/sell token integration #498

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

Comments

@gabrielfior
Copy link
Contributor

We will use Cowswap to swap outcomeTokens <> collateral.

  • Add cowswap integration cow-py (https://github.com/cowdao-grants/cow-py)
  • Allow buy/sell tokens using cow-py
  • Write integration test for selling an outcome token of an open Seer market (make sure order is posted, use unrealistic price to avoid it being executed and we at some point running out of funds)
@gabrielfior
Copy link
Contributor Author

Cowswap (see slack messages) has some constraints in-place with respect to which tokens can be traded. tl;dr not all outcome tokens (from the Swapr v3 pools) can be traded there.
Hence it looks like the easiest path forward is to trade directly on Swapr v3.

@gabrielfior gabrielfior changed the title Seer - cow-py integration ~~Seer - cow-py~~ Seer <> Swapr v3 buy/sell token integration Oct 30, 2024
@gabrielfior gabrielfior changed the title ~~Seer - cow-py~~ Seer <> Swapr v3 buy/sell token integration Seer - cow-py buy/sell token integration Oct 30, 2024
@kongzii kongzii changed the title Seer - cow-py buy/sell token integration Seer - Swapr (cow-py can not be used due to constraints of CoW) buy/sell token integration Jan 10, 2025
@kongzii kongzii changed the title Seer - Swapr (cow-py can not be used due to constraints of CoW) buy/sell token integration Seer - cow-py buy/sell token integration Jan 10, 2025
@kongzii
Copy link
Contributor

kongzii commented Jan 10, 2025

After some back and forth, it in the end seems like Seer is using CoW -- e.g., if I place an order on Seer UI, it creates order on CoW, for example https://explorer.cow.fi/gc/orders/0x643eac4850e97bc3a89cb39be6feb25378c115f8cc63890fc18c6162fe65d21d40a50cf069e992aa4536211b23f286ef88752187ffffffff?tab=overview

Cowswap (see slack messages) has some constraints in-place

But this is still true so whoever picks this issue needs to triple-check what's actually going on!

@kongzii kongzii changed the title Seer - cow-py buy/sell token integration Seer - cow-py (or maybe Swapr?) buy/sell token integration Jan 10, 2025
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

2 participants