Skip to main content
POST
Builds the setMaxFixedRate transaction that lowers the ceiling on the fixed rate a market can stamp. It targets the market’s interest model, and only the model owner can sign it, the same wallet that signs Set Rate Mode. The ceiling moves down only. The lender of record can record it in its adoption terms, and from then on no owner can loosen what those terms bound. A market with no ceiling yet takes a first one here, and once recorded it can never be cleared. The ceiling bounds the rates the owner can set, not the loans. Opening a loan never consults it, so loans already stamped keep their rate whatever the ceiling becomes.

Path Parameters

string
required
Market ID.

Body Parameters

integer
required
The new ceiling in basis points. Integer, 1 to 50000. Refused when it exceeds the ceiling already recorded, and while the mode is FIXED when it falls below the rate new loans are being stamped with.
string
Hash of the transaction you broadcast for this operation. Send it to confirm the transaction and record the result. Omit it to receive the calldata. When txHash is present, every other field is ignored.

Tighten Below the Current Stamp

While the market runs FIXED, the ceiling cannot drop below the rate new loans are stamped with, because it would advertise a bound every new loan breaks. Lower the stamp first with Set Rate Mode, then tighten the ceiling to at most the new stamp.

Confirm the Change

Send the mined hash back to this path as { "txHash": "0x..." }. The API checks that the transaction called setMaxFixedRate on the market’s interest model. It then reads the offering back from the chain and updates the market record.

Response Fields

The calldata response carries the transaction twice. transaction holds to and data. The same to and data also sit directly on data, and that is where the chainId and value binding lands, so sign from those four fields.
object

Error Codes

Confirming with txHash can also return any transaction verification error.