Skip to content

Seer's get_liquidity_for_outcome should be get_liquidity_for_outcome_and_type #868

@kongzii

Description

@kongzii

Right now, we check if some market's outcome is tradeable in

.

This checks if all outcomes have some liquidity.

In there, we consider both buying and selling:

for token_address in [pool.token0.id, pool.token1.id]:
, and we succeed if any of them is available.

However, we should check only liquidity for the type of trade we are going to do. E.g. if we are going to be buying, we need to check liquidity for buying. Otherwise it will error out, as it just happened with market https://app.seer.pm/markets/100/will-elon-musk-be-ceo-of-tesla-on-1-september-2025/?outcome=Yes

Image

(credits for graphics to @gabrielfior 😄 )

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requestseer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions