Skip to main content
vanna_validator — 6fND3vhtstp486iE6rsSNVUox3kcjNNRsSLAN7ZPs7th

review_call(context) -> CallPermit

The core calls this read-only before every external call, from both margin_execute and public_liquidate. The validator picks its rules by the target program and returns a permit, or fails.
mode is Owner (from margin_execute) or Liquidation (from public_liquidate). In liquidation mode the validator may also rewrite the call’s data (data), for example to size a Phoenix withdrawal to what is available.

Rules by target

Any other program, or any other instruction of these programs, is refused with UnknownProgram or CallNotAllowed. Details per integration: Swaps, Phoenix Perps, Yield Vaults.

Adding a protocol

  1. Add its rules as a file in the validator (and, if its positions aren’t plain tokens, a reader in the oracle).
  2. Upgrade that agent program.
  3. admin_register_integration for the target program. Then admin_register_asset for any receipt token, or admin_register_venue for a venue.
The core is not changed or redeployed.