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
- Add its rules as a file in the validator (and, if its positions aren’t plain tokens, a reader in the oracle).
- Upgrade that agent program.
admin_register_integrationfor the target program. Thenadmin_register_assetfor any receipt token, oradmin_register_venuefor a venue.

