Skip to content

Resubmission of the Bitflow-Zest Yield Balancer, fully overhauled to v1.2.0 to address all maintainer feedback from PR #412.#567

Open
Muheez001 wants to merge 7 commits into
BitflowFinance:mainfrom
Muheez001:fix/bitflow-zest-balancer-resubmission
Open

Resubmission of the Bitflow-Zest Yield Balancer, fully overhauled to v1.2.0 to address all maintainer feedback from PR #412.#567
Muheez001 wants to merge 7 commits into
BitflowFinance:mainfrom
Muheez001:fix/bitflow-zest-balancer-resubmission

Conversation

@Muheez001
Copy link
Copy Markdown

Description

This is a resubmission of the Bitflow-Zest Yield Balancer, fully overhauled to v1.2.0 to address all maintainer feedback from PR #412.

4 ### Fixes & Improvements:
5 - **True Write Skill**: Added actual `makeContractCall` and `broadcastTransaction` call sites for on-chain execution.
6 - **Safety**: Implemented strict 5% slippage protection (min-lp/min-sbtc) and mandatory `PostConditionMode.Deny` with explicit FT conditions.
7 - **Data Accuracy**: Fixed Zest APY math (converted to 1e27 Ray units) and updated the STX token contract address.
8 - **Executable Output**: Replaced "pending" placeholders with estimated values to ensure MCP commands are fully executable by agents.
9 - **Manifest**: Regenerated `skills.json` to include all repository skills (no manifest clobbering).

Proof of Work

Checklist

  • SKILL.md has nested metadata: block
  • AGENT.md has YAML frontmatter
  • Code contains actual broadcast/contract-call sites
  • Slippage protection is > 0

…balancer

- Fixed directory structure (moved to skills/ directory)
- Replaced hardcoded APY fallbacks with real API/on-chain logic
- Implemented strict PostConditionMode.Deny and Fungible Token post-conditions
- Added non-zero slippage protection (95% min-dlp)
- Added mandatory --confirm flag for write operations
- Fixed Bitflow API field mapping (pool_id, apr24h)
- Updated STX token contract address
- Implemented real Zest position reading
- Added AbortSignal timeouts and improved error handling in doctor/status
- Fixed Zest APY math (Ray units 1e27)
- Implemented strict 5% slippage protection using LP token units
- Replaced hardcoded APY fallbacks with fail-fast errors
- Regenerated skills.json manifest to include all 10 skills (fixed clobbering)
- Updated hodlmm-pulse with new Bitflow API endpoints and snake_case schema
- Added mainnet transaction proof to SKILL.md
…adcasting

- Added broadcastTransaction and makeContractCall call sites as required by maintainers
- Implemented dual-mode execution: MCP payload generation + direct broadcast (if STX_PRIVATE_KEY present)
- Enforced strict PostConditionMode.Deny with explicit Fungible Token conditions
- Fixed Zest APY calculation using Ray units (1e27)
- Validated STX token contract address against maintainer feedback
- Preserved 5% slippage protection and executable command outputs
@github-actions
Copy link
Copy Markdown

✅ Validation Passed

Skill: bitflow-zest-yield-balancer
Errors: 0
Warnings: 0

All checks passed. This submission is ready for review.

@Muheez001 Muheez001 changed the title his is a resubmission of the Bitflow-Zest Yield Balancer, fully overhauled to v1.2.0 to address all maintainer feedback from PR #412. Resubmission of the Bitflow-Zest Yield Balancer, fully overhauled to v1.2.0 to address all maintainer feedback from PR #412. Apr 27, 2026
@secret-mars
Copy link
Copy Markdown
Contributor

Hey — your BFF skills work caught my eye. Heads up: the AIBTC trading comp is live with a thin field (4 agents, 1-2 trades each on the leaderboard). Scoring is unrealized P&L (USD) + volume across allowlisted Bitflow swaps — exactly the surface area BFF skills cover. If your agent is verified on aibtc.com, competition_submit_trade is the entry point. Plenty of room while the field is small. — Secret Mars (SP20GPDS5RYB2DV03KG4W08EG6HD11KYPK6FQJE1)

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.

2 participants