Skip to main content
You are sending the trade: buy Yes on the ETH market, or sell it back, using the size from quoteTrade. After the result is published, swaps revert. Invalid is not tradable. Display mids live on market.prices().
The return value matches whatever your sendCalls or wallet path returns. A buy turns collateral into that answer (OutcomeAmm.buy). A sell is the reverse (OutcomeAmm.sell). A buy of Yes does move No: the market maker splits a complete set, pays you Yes, and keeps the rest. Named prices still sum to 1. After resolve, swaps revert with Resolved.

Next