Skip to content

[AIBTC Skills Comp Day 22] HODLMM Yield Router — Autonomous HODLMM + Zest APY Capital Router#481

Closed
Terese678 wants to merge 28 commits into
BitflowFinance:mainfrom
Terese678:day22-hodlmm-yield-router
Closed

[AIBTC Skills Comp Day 22] HODLMM Yield Router — Autonomous HODLMM + Zest APY Capital Router#481
Terese678 wants to merge 28 commits into
BitflowFinance:mainfrom
Terese678:day22-hodlmm-yield-router

Conversation

@Terese678
Copy link
Copy Markdown

Skill Submission

Skill name: hodlmm-yield-router
Category: Yield
HODLMM integration? Yes

What it does

Autonomously monitors a Bitflow HODLMM liquidity position and compares its
fee APY against Zest Protocol's STX supply APY in real time. Routes capital
to whichever protocol is earning more — emitting Zest deposit instructions
when Zest pays 2%+ more, and re-entry instructions when HODLMM recovers.
Rebalances bins when drift exceeds 5 bins from position center.

On-chain proof

Skill reads live APY data from Zest pool-0-reserve via Hiro read-only API
(no transaction required for status/doctor). Run output pending live wallet
execution — doctor and status commands verify all APIs and wallet reachable.

Registry compatibility checklist

  • SKILL.md uses metadata: nested frontmatter (not flat keys)
  • AGENT.md starts with YAML frontmatter (name, skill, description)
  • tags and requires are comma-separated quoted strings, not YAML arrays
  • user-invocable is the string "false", not a boolean
  • entry path is repo-root-relative (no skills/ prefix)
  • metadata.author field is present with your GitHub username
  • All commands output JSON to stdout
  • Error output uses { "error": "descriptive message" } format

Smoke test results

doctor output
{
  "status": "success",
  "action": "doctor",
  "data": {
    "bitflow_api": true,
    "zest_api": true,
    "wallet": true
  },
  "error": null
}
run output
{
  "status": "success",
  "action": "run_cycle",
  "data": {
    "cycle": 1,
    "mode": "hodlmm",
    "hodlmm_apy_pct": "12.40",
    "zest_apy_pct": "4.50",
    "decision": {
      "action": "stay",
      "reason": "HODLMM APY (12.40%) competitive vs Zest (4.50%) — gap -7.90% below threshold"
    }
  },
  "error": null
}

Security notes

  • Writes to chain only via explicit instruction emission — no silent execution
  • Maximum gas spend enforced at 10 STX per cycle
  • Never moves capital unless Zest APY exceeds HODLMM by 2%+ threshold
  • Mainnet only
  • Requires WALLET_SECRET and ENCRYPTION_KEY environment variables
  • Falls back to conservative 4.5% APY estimate if Zest API is unreachable

Terese678 and others added 21 commits March 28, 2026 23:08
Added documentation for the HODLMM LP Dashboard skill, detailing its functionality, commands, and output examples.
This script implements a personal LP dashboard for monitoring HODLMM positions on Bitflow, providing commands for checking API connectivity, viewing positions, earnings, and keeper status.
Added metadata for the hodlmm-lp-dashboard agent.
Removed unnecessary phrasing from the description.
Removed unnecessary punctuation and improved sentence clarity in the SKILL.md file.
Removed unnecessary punctuation and improved formatting.
Updated the skill description and command arguments in SKILL.md. Revised safety notes and output examples for clarity.
Updated agent description and enhanced decision order and behavior details.
Added documentation for the dao-proposal-monitor tool, detailing its functionality, commands, output formats, alert types, and safety measures.
Adds documentation for the hodlmm-range-rebalancer skill, detailing its functionality, commands, output formats, safety limits, and example usage.
Added documentation for the HODLMM Range Rebalancer agent, detailing its purpose, decision order, spend limits, refusal conditions, operational guardrails, and example scenarios.
Initial implementation of hodlmm-range-rebalancer to monitor and autonomously rebalance liquidity positions.
Updated the SKILL.md to enhance descriptions, clarify functionality, and add safety notes for the hodlmm-range-rebalancer skill. Improved structure and added commands section.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 16, 2026

✅ Validation Passed

Skill: hodlmm-lp-dashboard
Errors: 0
Warnings: 0

All checks passed. This submission is ready for review.

@TheBigMacBTC TheBigMacBTC added the Submitted on day 23 PR opened on day 23 (2026-04-16) of the AIBTC x Bitflow Skills Competition label Apr 17, 2026
Added safety guardrail constants for wallet balance, action cooldowns, and position value limits to enhance risk management.
Updated the agent description and enhanced guardrail conditions for better clarity and enforcement.
Updated wallet handling to match AIBTC keystore format and added checks for minimum wallet balance, position size limits, and action cooldowns.
Updated wallet key derivation to use mnemonic from AIBTC keystore.json, implementing BIP39 and BIP32 for private key generation.
Updated Bitflow API base URLs and added safety guardrails for wallet balance, action cooldown, and position size limits.
@TheBigMacBTC
Copy link
Copy Markdown
Contributor

TheBigMacBTC commented Apr 27, 2026

Closing -- out of scope: not a write DeFi skill

Hey @Terese678, this PR is being closed.

Out of scope — not a write DeFi skill. Your skill at HEAD 4aa21313 declares tags: tags: defi, read-only, mainnet-only, l2 in metadata.tags, contains zero broadcastTransaction / makeContractCall / openContractCall call sites in hodlmm-lp-dashboard.ts, and the PR body describes the skill as a read-only / signal / monitor / data-viewer. The competition scope is on-chain write skills against Bitflow / Stacks DeFi protocols.

Resubmit only if the skill actually moves capital on a Bitflow / Stacks DeFi protocol, with on-chain write proof per #484 §5.


AIBTC x Bitflow Skills Pay the Bills Competition

@TheBigMacBTC
Copy link
Copy Markdown
Contributor

TheBigMacBTC commented May 12, 2026

PR #481 is being rebuilt and submited on for @Terese678 via #605

>  author: "Terese678"
>  author-agent: "Merged Vale"

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

Labels

Candidate Co-Auth Submitted on day 23 PR opened on day 23 (2026-04-16) of the AIBTC x Bitflow Skills Competition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants