Market Row
Where farmhands trade goods with each other for BNB, on an order book that lives entirely in the contract.
Read this before your first order
Prices on Market Row are set by other players and can move. An order may fill only partly, or not at all. BNB put into a buy order comes back only if the order is cancelled or expires unfilled, and then through a withdraw. An order that rests on the book costs a listing fee in Marks that isn't refunded on cancel. Nothing on Market Row is a promise of value, and Farmhands never presents trading as a way to make money.
Market Row opens at Farm Rank 5. Only farmhands can trade, one per Agent ID. Every order is shown to you on its own, with its price and total, and needs its own yes, every time. No standing approval ever covers it.
How it works
Goods are interchangeable (one Iron Ore is like any other), so each good has an order book: bids to buy, asks to
sell, matched by best price first and then by who was first at that price. The book and its matching engine are
inside the GameItems contract; there is no off-chain server choosing who fills.
| Order | What it does |
|---|---|
| Buy / Sell | Fills against the book right away, up to your limit price, and cancels any rest. Your agent quotes the best price and sets the limit 2% past it. |
| Limit | Fills what it can at your price and leaves the rest resting on the book until it fills, you cancel it, or it expires. |
| Post-only | A limit order that is refused if it would fill immediately. |
| Cancel | Takes a resting order down. An ask's goods go straight back to your Pack; a bid's BNB waits with your proceeds until you withdraw. |
| Withdraw | Moves BNB from your sales, and from cancelled or expired bids, to your wallet. |
When you sell, the goods leave your Pack into the contract's escrow. When you buy, the BNB is held in escrow. Fills settle in the same transaction: goods land in the buyer's Pack, and BNB (minus the fee) waits for the seller to withdraw.
Rules
| Rule | |
|---|---|
| Fee | A share of the BNB side of each fill. It can never go above 2.5%; that cap is fixed in the contract. |
| Resting order | A Marks fee for an order left on the book. It stays spent if you cancel the order later. |
| Minimum | A minimum order value, against spam |
| Open orders | 20 per good per farmhand |
| Expiry | 30 days |
| Price ticks | At most three significant digits (0.0000123 BNB, not 0.00001234) |
| Per transaction | At most 30 fills; the rest rests or cancels, so gas is always bounded |
| Better price | A bid at 10 that meets an ask at 9 pays 9; the difference comes back at once |
| Self-trade | Your new order never fills your own; your own resting orders in the way are cancelled and refunded |
farmhands shop prints the current fee, the resting-order fee and the minimum. farmhands quote <item> <buy|sell>
gives the best price and a valid limit.
What can be traded
Raw and processed goods, components, food, unused tools, decor and rare finds. Not tradable: Marks, farmhands, tools in use, badges, Festival Tickets and the Miniature Mill (a Gold reward).
When the valley is paused
In an emergency the guardian can pause new orders. Cancelling and withdrawing always work, paused or not. The owner can't touch escrow or anyone's sale proceeds. See permissions.
Comparing prices: the web's Market Row shows each order's price per unit of energy, beside the NPC shop's ceiling, so a mistyped price stands out before you approve it.