peer-rate-optimizer

Tune ZKP2P vault and LP deposit rates using market intelligence and on-chain execution.

2|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zkp2p/zkp2p-skills --skill peer-rate-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: peer-rate-optimizer
Source: https://github.com/zkp2p/zkp2p-skills/tree/main/skills/peer-rate-optimizer
Command: npx skills add https://github.com/zkp2p/zkp2p-skills --skill peer-rate-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Tune ZKP2P vault and LP deposit rates using market intelligence and performance feedback to maximize profitability and competitiveness.

Core Features & Use Cases

  • Data collection from Peerlytics, the indexer, and competitor rates to drive informed rate decisions.
  • Per-pair rate computation using PnL, volume, and market benchmarks to determine optimal adjustments.
  • Safe, on-chain execution via setMinRate or setMinRatesBatch with guardrails to prevent drastic changes.
  • Use cases include adjusting rates across multiple payment methods and currencies to maximize fill rate and margin.

Quick Start

Run the optimizer for VAULT_ID to generate recommended rate adjustments.

Frequently Asked Questions about peer-rate-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize on-chain vault deposit rates for multiple currencies?

You optimize on-chain vault deposit rates by collecting market intelligence from Peerlytics and competitor data, computing performance metrics per pair, and executing safe rate updates via the DepositRateManagerRegistryV1 contract.

What data sources are needed for ZKP2P rate optimization?

ZKP2P rate optimization requires market data collected from Peerlytics, the indexer-graphql endpoint, and competitor rate feeds to compute PnL, volume, and market benchmarks for informed adjustments.

How do I prevent drastic rate changes when updating LP deposit rates on-chain?

You prevent drastic LP deposit rate changes by enforcing safety guardrails during the rate computation process before executing updates on-chain via setMinRate or setMinRatesBatch functions.

Can I batch update multiple payment method pairs at once?

Yes, you can batch update multiple payment method pairs by executing the setMinRatesBatch function on the DepositRateManagerRegistryV1 contract to apply computed rate adjustments simultaneously.

Why would I disable a specific currency pair in my vault?

You disable a currency pair when performance metrics and market benchmarks indicate the current rate is uncompetitive or unprofitable, preventing suboptimal fills across specific payment methods.