
Hanji · Acts onchain
Spends an amount of a Hanji order book's quote token on its base token at market, never above a maximum price. The socket approves the book, or sends native ETH as value on a book that settles it, and calls placeMarketOrderWithTargetValue: the book sets the taker fee its getConfig reports aside out of the amount, buys whole lots up the asks from the best to max_price, quoted in the quote token per base token, returns whatever it did not spend, the approval is reset to zero, and the action returns the base token received. When no ask sits at or below max_price the book reverts ZeroTokenTransferNotAllowed() and the plug reverts with it. Reach for it to put a fixed budget into on-chain order book depth at a price you cap, coiling what it buys into the next step.