fxUSD
by @huwangtao123
Use when the user wants to deploy, unwind, or compare fxUSD-related yield strategies on Base. Covers minting and redeeming fxSAVE, discovering and managing H...
clawhub install fxusdπ About This Skill
name: fxusd description: Use when the user wants to deploy, unwind, or compare fxUSD-related yield strategies on Base. Covers minting and redeeming fxSAVE, discovering and managing Hydrex single-sided liquidity vaults, and planning Morpho supply or borrow workflows with protocol-specific risk controls. Uses the fxSAVE backend plus public Hydrex and Morpho APIs for planning, and emits Bankr-ready transaction steps for execution. version: 1.0.1 metadata: clawdbot: emoji: "π΅" homepage: https://fxsave.up.railway.app/ requires: bins: - python3 - bankr
fxusd
Version: v1.0.1
Use this skill when the user wants a simpler way to put fxUSD to work on Base.
The job of this skill is to hide unnecessary DeFi complexity. Instead of asking the user to think in terms of bridging, approvals, vault mechanics, borrow limits, or withdrawal edge cases, this skill turns a simple outcome into a protocol-specific execution plan.
Runtime Behavior
python3 for local planning scripts and bankr when the user wants live wallet execution.fxSAVE helper posts to https://fxsave.up.railway.app by default. Use --base-url only when targeting a different deployment.https://api.hydrex.fi/strategies and reads Base state from https://mainnet.base.org by default. Use --rpc-url to target a different Base RPC endpoint.https://blue-api.morpho.org/graphql and reads Base state from https://mainnet.base.org by default. Use --rpc-url to target a different Base RPC endpoint.Quick Start
Mint fxSAVE
Deposit 10 fxUSD to fxSAVE
Deposit all my idle USDC to fxSAVE
Redeem fxSAVE
Redeem 50% of my fxSAVE to fxUSD
Redeem all my fxSAVE to USDC on Base
Hydrex Single-Sided Liquidity
Find the best Hydrex single-sided vault for fxUSD
Deposit 500 fxUSD into the safest Hydrex vault
Withdraw my fxUSD/BNKR Hydrex vault position
Morpho Supply / Borrow
Supply 5000 fxUSD on Morpho
Borrow fxUSD against my collateral on Morpho
Core Capabilities
fxSAVE Shortcut
fxSAVE from Base assets such as fxUSD, USDC, and WETHfxSAVE back into Base assetsBase -> Ethereum mainnet -> bridge back flow behind one Base-side actionReference: references/api.md
Hydrex Single-Sided Liquidity
fxUSD or other supported deposit tokensstablecoin-farming from crypto-farming/agent/submit steps for Hydrex approval and main transactionsReference: references/hydrex.md
Morpho Supply / Borrow Planning
fxUSDfxUSDok / warning / critical levels for repeated position checksrepay-plan and add-collateral-plan outputs for risk reductionfxSAVE or Hydrex routesReference: references/morpho.md
Common Morpho user use cases:
fxUSD borrow positions and alert when they drift into warning or critical territoryfxUSD against collateral such as BNKR or wstETHrepay-plan when the user wants the most direct way to lower LTVadd-collateral-plan when the user has spare collateral and wants a wider liquidation bufferExecution Model
1. fxSAVE
Use when the user wants:
fxUSD / USDC / WETH -> fxSAVEfxSAVE -> Base assetsExecution path:
1. Read references/api.md.
2. Use scripts/fxusd_cli.py or the default fxSAVE backend to build the bundle.
3. Build approval for the current source token.
4. Execute approval only if allowance is insufficient.
5. Execute the main transaction.
6. Explain that settlement is asynchronous because the route crosses Base and Ethereum mainnet.
2. Hydrex
Use when the user wants:
fxUSDfxUSD into an auto-managed vaultExecution path:
1. Read references/hydrex.md.
2. Use scripts/fxusd_hydrex.py to discover, rank, and plan the vault action.
3. Distinguish stablecoin-farming from crypto-farming before comparing APR.
4. Read live Base balance, allowance, or LP share state.
5. Emit execution-ready transactions and Bankr-ready submit steps.
6. Only proceed when the wallet actually has balance or LP shares for the chosen action.
3. Morpho
Use when the user wants:
fxUSDfxUSDfxUSDfxSAVEExecution path:
1. Read references/morpho.md.
2. Use scripts/fxusd_morpho.py to discover live markets and wallet positions.
3. Distinguish conservative supply routes from higher-risk borrow routes.
4. Use execution-ready supply and withdraw plans for simpler flows.
5. Use alert-check for recurring monitoring before considering any automated response.
6. Use repay-plan or add-collateral-plan as the first response when a borrow position moves into warning or critical territory.
7. Only plan borrow actions when collateral assumptions, liquidation buffer, and oracle risk are explicit.
Common Workflows
Simplest Stable Yield Route
When the user wants the lowest operational complexity:
1. Prefer fxSAVE.
2. Use the default fxSAVE backend.
3. Make the bridge latency explicit.
4. Do not describe settlement as instant.
Stablecoin Liquidity Route
When the user explicitly wants liquidity provision rather than a simpler yield wrapper:
1. Use Hydrex discovery.
2. Prefer stablecoin-farming vaults such as fxUSD/USDC when the user wants lower pair volatility.
3. Explain that single-sided deposit does not guarantee single-token withdrawal.
4. Use Bankr-ready steps only after live balance and allowance checks pass.
Crypto Pair Farming Route
When the vault pairs fxUSD with a volatile asset such as BNKR:
1. Label it crypto-farming.
2. Do not compare it to fxUSD/USDC as if they have the same risk class.
3. Make pair volatility and withdrawal-shape risk explicit before execution.
Lending or Leverage Route
When the user wants capital efficiency or borrowing:
1. Use Morpho planning.
2. Prefer supply over borrow when the user has not explicitly asked for leverage.
3. If borrow is requested, preserve a conservative liquidation buffer.
4. For ongoing borrow positions, use alert-check to surface warning or critical states before acting.
5. Prefer repay-plan first, and use add-collateral-plan when the user has spare collateral inventory and wants to keep the debt open.
Decision Guide
Prefer fxSAVE when:
Prefer Hydrex when:
Prefer Morpho supply when:
Prefer Morpho borrow only when:
Risk Controls
These are mandatory guardrails.
fxSAVE as a same-chain or instant route.stablecoin-farming from crypto-farming.Vulnerabilities and Failure Modes
fxSAVE
Hydrex
fxUSD/USDC and fxUSD/BNKR do not belong to the same risk classMorpho
USDC may not exist for fxUSDExample Prompts
fxSAVE
Deposit 10 fxUSD to fxSAVERedeem 50% of my fxSAVE to fxUSDCompare fxSAVE and Morpho yield options for my fxUSDMonitor my Morpho fxUSD positions and alert me if they become riskyRun an alert-only Morpho risk check on my BNKR-backed fxUSD borrowBuild a repay plan to lower risk on my BNKR-backed fxUSD borrowBuild an add-collateral plan for my BNKR-backed fxUSD borrowUse my Bankr wallet to mint fxSAVE from 100 fxUSDUse Bankr to redeem all my fxSAVE to USDC on BaseHydrex
Find the best Hydrex single-sided vault for fxUSDShow me stablecoin-farming vaults for fxUSD on HydrexDeposit all my idle fxUSD into HydrexWithdraw my fxUSD/BNKR Hydrex vault positionUse my Bankr wallet to withdraw my Hydrex vault sharesUse Bankr to deposit 100 fxUSD into the safest Hydrex vaultUse Bankr to withdraw 50% of my BNKR/fxUSD Hydrex positionMorpho
Supply 5,000 fxUSD on MorphoFind the safest Morpho market for supplying fxUSDWithdraw 50% of my supplied fxUSD from MorphoBorrow fxUSD against my collateral on MorphoCheck my Morpho LTV before borrowing more fxUSDSuggest a safe fxUSD borrow size using my BNKR collateralCompare Morpho supply with fxSAVE for my idle fxUSDUse Bankr to supply my idle fxUSD on MorphoUse Bankr to compare Morpho and fxSAVE for my Bankr walletResources
Natural Language Guidance for Bankr
When the user wants execution through Bankr:
1. Resolve which module the request belongs to: fxSAVE, Hydrex, or Morpho.
2. Prefer wallet-aware language such as Use my Bankr wallet... when the user explicitly wants Bankr execution.
3. For fxSAVE, use the default fxSAVE backend to build approval and main transaction plans first.
4. For Hydrex, use scripts/fxusd_hydrex.py and prefer the emitted bankrReady.steps.
5. For conservative Morpho lending, use scripts/fxusd_morpho.py and prefer supply or withdraw over borrow by default.
6. For Morpho borrow, use risk-check and borrow-plan, but keep the final borrow decision with the user.
7. Execute steps in order and wait for confirmation before moving to the next step.
8. If live balance, allowance, LP shares, supply shares, or collateral headroom are insufficient, stop and explain the blocker instead of forcing execution.
Useful natural-language styles:
Use my Bankr wallet to mint fxSAVE from 25 fxUSDUse Bankr to deposit all my idle fxUSD into the safest Hydrex stablecoin vaultUse Bankr to withdraw my Hydrex fxUSD/BNKR positionUse Bankr to supply 100 fxUSD to the safest Morpho marketUse Bankr to withdraw all my supplied fxUSD from MorphoCheck my Morpho LTV and tell me if borrowing 200 more fxUSD is still safeTell me the safest additional fxUSD I can borrow against my BNKR collateralUse Bankr to compare Morpho supply with fxSAVE for my idle fxUSDDetailed References
Local Scripts
scripts/fxusd_cli.py β Preview fxSAVE mint, redeem, and approval plansscripts/fxusd_hydrex.py β Discover Hydrex vaults, classify risk, and emit execution-ready plus Bankr-ready Hydrex transactionsscripts/fxusd_morpho.py β Discover Morpho Blue markets, inspect positions, emit execution-ready plus Bankr-ready supply/withdraw plans, and compute LTV-aware borrow plansπ‘ Examples
Mint fxSAVE
Deposit 10 fxUSD to fxSAVE
Deposit all my idle USDC to fxSAVE
Redeem fxSAVE
Redeem 50% of my fxSAVE to fxUSD
Redeem all my fxSAVE to USDC on Base
Hydrex Single-Sided Liquidity
Find the best Hydrex single-sided vault for fxUSD
Deposit 500 fxUSD into the safest Hydrex vault
Withdraw my fxUSD/BNKR Hydrex vault position
Morpho Supply / Borrow
Supply 5000 fxUSD on Morpho
Borrow fxUSD against my collateral on Morpho