Place order
Place order

Hanji · Acts onchain

Sells the base token of a Hanji order book for its quote token at market, never below a minimum price. The socket approves the book, or sends native ETH as value on a book that settles it, and calls placeOrder as an ask that only takes: it fills the bids from the best down to min_price, quoted in the quote token per base token, the book keeps the taker fee its getConfig reports out of the proceeds, any amount it cannot fill within the price comes back, the approval is reset to zero, and the action returns the quote token received. When no bid sits at or above min_price nothing executes, the whole amount comes back, and the action returns zero. Reach for it to sell into on-chain order book depth at a price you set, coiling the proceeds into the next step.