Skip to content

xlayer-bridge-yield v1.0.0#445

Open
oliva9595 wants to merge 2 commits into
okx:mainfrom
oliva9595:add-xlayer-bridge-yield
Open

xlayer-bridge-yield v1.0.0#445
oliva9595 wants to merge 2 commits into
okx:mainfrom
oliva9595:add-xlayer-bridge-yield

Conversation

@oliva9595
Copy link
Copy Markdown

Plugin Submission

Plugin name: xlayer-bridge-yield
Version: 1.0.0
Type: new-plugin

Checklist

  • plugin-store lint passes locally with no errors
  • I have read the Development Guide
  • My plugin does NOT use reserved prefixes (okx-, official-, plugin-store-)
  • LICENSE file is included
  • SKILL.md has YAML frontmatter with name and description

What does this plugin do?

Bridges stablecoins (USDC, USDT, DAI) from any supported chain to X Layer (chain ID 196) and automatically finds, enters, and monitors the best yield farming positions. It combines cross-chain bridge route optimization with on-chain yield scanning to provide a seamless "bridge and farm" experience with built-in risk management (dry-run default, stop-loss, depeg alerts).

Which onchainos commands does it use?

  • onchainos portfolio all-balances — Check wallet balances on source/destination chains
  • onchainos swap quote — Get cross-chain bridge route quotes
  • onchainos swap swap — Execute bridge and token swaps
  • onchainos token search — Discover stablecoin pools on X Layer
  • onchainos market price — Get current token prices and APY data
  • onchainos security token-scan — Pre-execution security audit on pool tokens
  • onchainos wallet login — Wallet authentication

Security Considerations

  • This plugin executes on-chain transactions (bridge + swap + deposit) when not in dry-run mode
  • Dry-run is the default mode — no real transactions occur unless user explicitly confirms
  • All transactions go through onchainos security token-scan before execution
  • Configurable safety limits: max amount ($1,000 default), stop-loss (-5%), depeg threshold (0.5%)
  • Private keys are NEVER handled — all signing via onchainos TEE wallet
  • Pools younger than 30 days or with TVL < $50,000 are flagged as HIGH risk

Testing

  • Unit tested all 3 Python scripts (bridge_optimizer.py, yield_scanner.py, position_monitor.py) with mock data — 3/3 passed
  • Verified bridge route ranking with 3 simulated routes (fee/time/slippage scoring)
  • Verified yield pool filtering (low TVL pools correctly filtered, risk classification working)
  • Verified position monitor alerts: depeg detection (USDC at $0.993 → alert triggered), stop-loss (LP-TOKEN at -13.6% → CRITICAL alert)
  • All plugin metadata validated: name/version/author consistent across plugin.yaml, plugin.json, SKILL.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant