Steer Protocol
AdministerRunbooks

LI.FI Executor Role Admin

Administer the hook executor identity and role surface used by LI.FI Intents.

Scope

Use this runbook when deploying, replacing, or validating the LI.FI hook executor contract.

Authority Required

Deployer or protocol admin authority for the executor and any connected hook or settlement roles.

Preconditions

  • Confirm the LI.FI executor manifest.
  • Confirm solver custody for the intended chain.
  • Configure an operator address separate from the admin. The admin holds recovery authority; the operator cannot sweep tokens.
  • Confirm no live orders depend on the executor being replaced.

Procedure

Deploy or refresh the executor with the production script:

forge script script/production/DeployLifiHookExecutor.s.sol --rpc-url "$SEPOLIA_RPC_URL" --broadcast --private-key "$SEPOLIA_DEPLOYER_PRIVATE_KEY"

Then verify the manifest output and connected roles before opening new orders.

Failed Fill Recovery

The input settler must deliver the callback synchronously. If it does not, or if the callback fails, the entire finalisation transaction reverts, including input transfers and the pending commitment. A successful callback consumes the commitment before the transaction completes. There is no pending fill left to cancel in a later transaction.

The executor rejects a finalisation after either the order expiry or the fill deadline. Inspect the failed transaction and follow the input settler's verified order-expiry and refund rules; do not retry an expired order.

Only DEFAULT_ADMIN_ROLE can recover dust or accidental transfers with sweep. Executor balances are pooled. Reconcile them against all live orders before a sweep so recovery does not remove funds another order uses.

Executor Replacement

LifiHookExecutor is deployed directly rather than through an upgradeable proxy. Replacing it changes the LI.FI solver identity because solverId is derived from the executor address.

Before cutover:

  1. Stop opening orders against the old executor.
  2. Reconcile every pending order and token balance on the old executor.
  3. Deploy the replacement with the same reviewed role and allowlist policy.
  4. Update the manifest, solver registration, and off-chain fill configuration.
  5. Execute a controlled end-to-end fill through the replacement.
  6. Decommission the old executor only after its orders and balances are closed.

Verification

  • deployments/manifests/11155111-lifi-hook-executor.json points at the expected executor.
  • The admin holds DEFAULT_ADMIN_ROLE but not OPERATOR_ROLE; the operator holds OPERATOR_ROLE but not DEFAULT_ADMIN_ROLE.
  • The allowlisted router and output settler match the reviewed implementations that consume the executor's order-sized token approvals during successful fills.
  • LI.FI readiness passes in strict mode.
  • A controlled one-shot serve or order-opening test uses the new executor.
  • Failed finalisations leave no pending executor commitment, and any token sweep is reconciled against all live orders first.

Rollback

Stop order opening, restore the previous executor manifest, and avoid new fills until the solver process is reading the intended address.

Source Files

  • script/production/DeployLifiHookExecutor.s.sol
  • deployments/manifests/11155111-lifi-hook-executor.json
  • quote-server/src/lifi-readiness.ts

On this page