MantleDexAdapter) that signs and broadcasts real transactions to the FusionX V2 router on Mantle Sepolia using the configured agent EOA. When Sepolia liquidity is thin, execution degrades to treasury_ping and is labeled honestly in the UI.
For observability and future agentic skills platforms, the worker also invokes mantle.swap.v1 (via quote telemetry when present, or HTTP quote fallback) in the planning/quote phase only. This produces structured telemetry but does not perform the actual settlement. The real trade always goes through the audited direct adapter.
Every cycle that reaches execution still emits:
/v1/skills endpoint continues to advertise registered capabilities for SDK/MCP consumers. The quote surface remains non-settling by design.
Per-cycle flow
- Observation and LLM planning produce an
ActionPlan. - The policy engine validates drawdown, asset whitelist, trade size, and gas guards.
- On approval,
MantleDexAdapterlogs the quote telemetry event and signs the transaction. - A
DecisionLoggedevent is written under the ERC-8004 identity contract.
apps/worker/ameo_worker/adapters/mantle_dex.py.
Configuration: EXECUTION_ADAPTER=fusionx_v2 with FusionX router addresses on Mantle Sepolia.
Register a new skill (forward-looking)
Third-party agents can add a skill descriptor to/v1/skills and implement a matching adapter module that honors the same quote → sign → broadcast interface. AMEO routes execution through the adapter registry in the worker act node; policy checks always run upstream, so a new skill cannot bypass guardrails.
To integrate:
- Define a skill id (for example
mantle.lend.v1) and executor label. - Implement quote/execute methods compatible with
MantleDexAdapter. - Register the skill in the worker skills list and document it in the execution telemetry guide.
Verify settlement
After execution, cross-check:- Mantlescan transaction receipt for the cycle hash
DecisionLoggedevent on the agent identity contract- Optional:
/v1/verify/{txHash}for a single JSON proof object

