prepare_stink_bid
Builds the order(s) for a stink bid: a buy of a stock token that fills only if the price falls depth_pct under today's price. Returns EIP-712 typed data to sign with the maker's own wallet (Permit2 witness transfer), one per rung for a ladder, plus the USDG balance and Permit2 approval check. Nothing moves until a fill; the contract reverts if the maker would get less than the signed minimum.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"maker": "<maker>",
"symbol": "<symbol>",
"amount_usdg": "<amount_usdg>",
"depth_pct": "<depth_pct>"
},
"name": "prepare_stink_bid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| maker | Yes | The wallet that signs and receives the stock token. | |
| rungs | No | ||
| symbol | Yes | ||
| fill_on | No | pool: fill when the pool pays the price. oracle: also wait for the Chainlink price to reach the level. | pool |
| session | No | closed: only active while the US stock market is closed. | any |
| depth_pct | Yes | How far under today's price, in percent. Ladder rungs sit at depth, 2×depth, … | |
| amount_usdg | Yes | Total size in USDG (split across rungs for a ladder). |