defi_oracle_gate · The halt gate for your own pool
read-onlyThe halt gate: one file, HarmonicHaltGate.sol, that you inherit in your own v4 hook, lender or vault and ask before a fill with _requireOpen(token). It asks HarmonicOracle whether the stock behind the token is open on a fresh row and reverts otherwise: while the stock is halted, paused, held, stale or unknown, when the oracle's row has gone quiet past the age you set, or when your contract is not a paid reader. A contract reading the oracle inside its own transaction is a paid reader at the stated USDG a month, paid from any wallet to the operations wallet; the oracle holds nothing, and defi_oracle_subscribe_build returns the subscribe steps to sign yourself. This tool returns the file's address, the sheet, the example to paste and the price, and given a reader address, whether that contract is paid and until when. It builds nothing and moves nothing.
Input schema
{
"type": "object",
"properties": {
"reader": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "Optional: a contract that reads the oracle, to say whether it is a paid reader and until when."
}
},
"required": [],
"additionalProperties": false
}