fxusd
Version: INLINECODE0
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
- - Default operation needs
python3 for local planning scripts and bankr when the user wants live wallet execution. - The
fxSAVE helper posts to https://fxsave.up.railway.app by default. Use --base-url only when targeting a different deployment. - The Hydrex helper queries
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. - The Morpho helper queries
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. - No environment variables are required for the published default workflow.
Quick Start
Mint fxSAVE
CODEBLOCK0
CODEBLOCK1
Redeem fxSAVE
CODEBLOCK2
CODEBLOCK3
Hydrex Single-Sided Liquidity
CODEBLOCK4
CODEBLOCK5
CODEBLOCK6
Morpho Supply / Borrow
CODEBLOCK7
CODEBLOCK8
Core Capabilities
fxSAVE Shortcut
- - Mint Base
fxSAVE from Base assets such as fxUSD, USDC, and INLINECODE16 - Redeem Base
fxSAVE back into Base assets - Hide the manual
Base -> Ethereum mainnet -> bridge back flow behind one Base-side action - Use the fxSAVE backend to build the executable route
Reference: references/api.md
Hydrex Single-Sided Liquidity
- - Discover live Hydrex vaults that accept
fxUSD or other supported deposit tokens - Distinguish
stablecoin-farming from INLINECODE21 - Rank vaults with a conservative heuristic that considers APR, TVL, and risk class
- Produce execution-ready deposit and withdraw plans
- Emit Bankr-ready
/agent/submit steps for Hydrex approval and main transactions
Reference: references/hydrex.md
Morpho Supply / Borrow Planning
- - Discover live Base Morpho Blue markets for INLINECODE23
- Produce execution-ready supply and withdraw plans for INLINECODE24
- Produce manual-decision borrow plans with projected LTV checks
- Provide quick risk-check outputs for agents to monitor current LTV and liquidation distance
- Provide alert-only monitoring outputs with
ok / warning / critical levels for repeated position checks - Produce execution-ready
repay-plan and add-collateral-plan outputs for risk reduction - Suggest safer maximum borrow sizes from the current collateral position
- Compare Morpho lending with simpler
fxSAVE or Hydrex routes - Treat borrow as a separate, higher-risk class from pure supply
- Require explicit collateral, buffer, and market-availability checks before borrow planning
Reference: references/morpho.md
Common Morpho user use cases:
- - Monitor current
fxUSD borrow positions and alert when they drift into warning or critical territory - Check whether a wallet can safely borrow more
fxUSD against collateral such as BNKR or INLINECODE32 - Reduce risk with a
repay-plan when the user wants the most direct way to lower LTV - Keep a borrow position open with
add-collateral-plan when the user has spare collateral and wants a wider liquidation buffer
Execution Model
1. fxSAVE
Use when the user wants:
- - INLINECODE35
- INLINECODE36
- the simplest Base-side UX for a cross-chain yield route
Execution path:
- 1. Read references/api.md.
- Use
scripts/fxusd_cli.py or the default fxSAVE backend to build the bundle. - Build approval for the current source token.
- Execute approval only if allowance is insufficient.
- Execute the main transaction.
- Explain that settlement is asynchronous because the route crosses Base and Ethereum mainnet.
2. Hydrex
Use when the user wants:
- - a single-sided liquidity vault for INLINECODE38
- to deposit idle
fxUSD into an auto-managed vault - to withdraw from a Hydrex vault
- to inspect current Hydrex vault exposure
Execution path:
- 1. Read references/hydrex.md.
- Use
scripts/fxusd_hydrex.py to discover, rank, and plan the vault action. - Distinguish
stablecoin-farming from crypto-farming before comparing APR. - Read live Base balance, allowance, or LP share state.
- Emit execution-ready transactions and Bankr-ready submit steps.
- Only proceed when the wallet actually has balance or LP shares for the chosen action.
3. Morpho
Use when the user wants:
- - to supply INLINECODE43
- to withdraw supplied INLINECODE44
- to borrow using collateral
- to repay borrowed INLINECODE45
- to compare lending yield versus INLINECODE46
Execution path:
- 1. Read references/morpho.md.
- Use
scripts/fxusd_morpho.py to discover live markets and wallet positions. - Distinguish conservative supply routes from higher-risk borrow routes.
- Use execution-ready supply and withdraw plans for simpler flows.
- Use
alert-check for recurring monitoring before considering any automated response. - Use
repay-plan or add-collateral-plan as the first response when a borrow position moves into warning or critical territory. - 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. - Use the default fxSAVE backend.
- Make the bridge latency explicit.
- 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.
- Prefer
stablecoin-farming vaults such as fxUSD/USDC when the user wants lower pair volatility. - Explain that single-sided deposit does not guarantee single-token withdrawal.
- 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. - Do not compare it to
fxUSD/USDC as if they have the same risk class. - 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.
- Prefer supply over borrow when the user has not explicitly asked for leverage.
- If borrow is requested, preserve a conservative liquidation buffer.
- For ongoing borrow positions, use
alert-check to surface warning or critical states before acting. - 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:
- - the user wants the simplest Base-side flow
- the user does not want to manage vaults
- the user values lower operational complexity over optional extra yield
Prefer Hydrex when:
- - the user explicitly wants single-sided liquidity
- a live vault exists for the desired asset
- the user accepts that withdrawals may return a mixed token composition
Prefer Morpho supply when:
- - the user wants a more direct lending route
- the user does not need liquidity pool exposure
Prefer Morpho borrow only when:
- - the user explicitly wants leverage or capital efficiency
- collateral, liquidation buffer, and market risk are understood
Risk Controls
These are mandatory guardrails.
- - Use a dedicated hot wallet or dedicated Bankr agent wallet for repeated execution.
- Verify chain and token addresses before every write action.
- Do not describe
fxSAVE as a same-chain or instant route. - On Hydrex, always explain withdrawal composition risk.
- On Hydrex, always distinguish
stablecoin-farming from crypto-farming. - On Morpho, stay well below maximum borrow limits and preserve a clear liquidation buffer.
- Do not rely blindly on third-party assembled transactions from aggregators or reward routers.
- For auto-compounding or repeated execution, require explicit user confirmation before widening blast radius.
Vulnerabilities and Failure Modes
fxSAVE
- - Bridge latency: source-chain success is not final settlement
- Quote drift: the final amount can move while the route is in flight
- Intermediate-chain residue: favorable execution can leave small balances on intermediate chains
Hydrex
- - Vault strategy risk: a managed vault can rebalance in ways the user does not expect
- Withdrawal composition risk: the exit can come back split across assets
- Pair-risk confusion:
fxUSD/USDC and fxUSD/BNKR do not belong to the same risk class - Incentive drift: APR can move quickly as emissions and TVL change
Morpho
- - Liquidation risk: borrowing is not the same as supplying to a conservative vault
- Market availability risk: a route that exists for
USDC may not exist for INLINECODE68 - Oracle and curator risk: safety depends on the specific market and collateral design
- Automation risk: external transaction assembly must be treated as sensitive
Example Prompts
fxSAVE
- - INLINECODE69
- INLINECODE70
- INLINECODE71
- INLINECODE72
- INLINECODE73
- INLINECODE74
- INLINECODE75
- INLINECODE76
- INLINECODE77
Hydrex
- - INLINECODE78
- INLINECODE79
- INLINECODE80
- INLINECODE81
- INLINECODE82
- INLINECODE83
- INLINECODE84
Morpho
- - INLINECODE85
- INLINECODE86
- INLINECODE87
- INLINECODE88
- INLINECODE89
- INLINECODE90
- INLINECODE91
- INLINECODE92
- INLINECODE93
Resources
- - fxSAVE app: https://fxsave.up.railway.app/
- Hydrex Platform: https://hydrex.fi
- Morpho: https://morpho.org/
Natural Language Guidance for Bankr
When the user wants execution through Bankr:
- 1. Resolve which module the request belongs to:
fxSAVE, Hydrex, or Morpho. - Prefer wallet-aware language such as
Use my Bankr wallet... when the user explicitly wants Bankr execution. - For
fxSAVE, use the default fxSAVE backend to build approval and main transaction plans first. - For
Hydrex, use scripts/fxusd_hydrex.py and prefer the emitted bankrReady.steps. - For conservative Morpho lending, use
scripts/fxusd_morpho.py and prefer supply or withdraw over borrow by default. - For Morpho borrow, use
risk-check and borrow-plan, but keep the final borrow decision with the user. - Execute steps in order and wait for confirmation before moving to the next step.
- 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:
- - INLINECODE105
- INLINECODE106
- INLINECODE107
- INLINECODE108
- INLINECODE109
- INLINECODE110
- INLINECODE111
- INLINECODE112
Detailed References
- - fxSAVE Shortcut API — Bundle building, approval flow, and fxSAVE backend usage
- Hydrex Single-Sided Liquidity — Discovery, ranking, deposits, withdrawals, and Bankr-ready steps
- Morpho Planning — Supply, withdraw, borrow, repay, and risk controls
plus execution-ready supply/withdraw planning and quick LTV checks
Local Scripts
- -
scripts/fxusd_cli.py — Preview fxSAVE mint, redeem, and approval plans - INLINECODE115 — Discover Hydrex vaults, classify risk, and emit execution-ready plus Bankr-ready Hydrex transactions
- INLINECODE116 — Discover Morpho Blue markets, inspect positions, emit execution-ready plus Bankr-ready supply/withdraw plans, and compute LTV-aware borrow plans
including safer maximum borrow-size suggestions
fxusd
版本:v1.0.1
当用户希望以更简单的方式在Base网络上使用fxUSD时,使用此技能。
该技能的任务是隐藏不必要的DeFi复杂性。无需用户考虑桥接、授权、金库机制、借贷限额或提现边界情况,该技能将简单的结果转化为特定协议的执行计划。
运行时行为
- - 默认操作需要python3用于本地规划脚本,当用户需要实时钱包执行时需要bankr。
- fxSAVE辅助工具默认向https://fxsave.up.railway.app发送请求。仅在目标为不同部署时使用--base-url。
- Hydrex辅助工具默认查询https://api.hydrex.fi/strategies并从https://mainnet.base.org读取Base网络状态。使用--rpc-url指定不同的Base RPC端点。
- Morpho辅助工具默认查询https://blue-api.morpho.org/graphql并从https://mainnet.base.org读取Base网络状态。使用--rpc-url指定不同的Base RPC端点。
- 发布的默认工作流无需环境变量。
快速开始
铸造fxSAVE
text
存入10 fxUSD到fxSAVE
text
将我所有闲置的USDC存入fxSAVE
赎回fxSAVE
text
赎回50%的fxSAVE为fxUSD
text
将我所有的fxSAVE赎回为Base网络上的USDC
Hydrex单边流动性
text
查找fxUSD的最佳Hydrex单边金库
text
存入500 fxUSD到最安全的Hydrex金库
text
提取我的fxUSD/BNKR Hydrex金库仓位
Morpho供应/借贷
text
在Morpho上供应5000 fxUSD
text
在Morpho上以我的抵押品借入fxUSD
核心能力
fxSAVE快捷方式
- - 从Base资产(如fxUSD、USDC和WETH)铸造Base fxSAVE
- 将Base fxSAVE赎回为Base资产
- 将手动Base -> 以太坊主网 -> 桥接返回流程隐藏在单个Base侧操作之后
- 使用fxSAVE后端构建可执行路径
参考:references/api.md
Hydrex单边流动性
- - 发现接受fxUSD或其他支持存款代币的实时Hydrex金库
- 区分稳定币挖矿和加密货币挖矿
- 使用考虑APR、TVL和风险等级的保守启发式算法对金库进行排名
- 生成可执行的存款和提现计划
- 为Hydrex授权和主交易生成Bankr就绪的/agent/submit步骤
参考:references/hydrex.md
Morpho供应/借贷规划
- - 发现fxUSD的实时Base Morpho Blue市场
- 为fxUSD生成可执行的供应和提现计划
- 生成带有预计LTV检查的手动决策借贷计划
- 为代理提供快速风险检查输出,以监控当前LTV和清算距离
- 提供仅警报的监控输出,包含正常/警告/严重级别,用于重复仓位检查
- 生成可执行的还款计划和添加抵押品计划输出以降低风险
- 根据当前抵押品仓位建议更安全的最高借贷金额
- 将Morpho借贷与更简单的fxSAVE或Hydrex路径进行比较
- 将借贷视为与纯供应不同的更高风险类别
- 在借贷规划前要求明确的抵押品、缓冲和市场可用性检查
参考:references/morpho.md
常见的Morpho用户用例:
- - 监控当前fxUSD借贷仓位,并在其进入警告或严重区域时发出警报
- 检查钱包是否可以使用BNKR或wstETH等抵押品安全借入更多fxUSD
- 当用户希望以最直接的方式降低LTV时,使用还款计划降低风险
- 当用户有闲置抵押品并希望保持更宽的清算缓冲时,使用添加抵押品计划保持借贷仓位开放
执行模型
1. fxSAVE
当用户需要以下功能时使用:
- - fxUSD / USDC / WETH -> fxSAVE
- fxSAVE -> Base资产
- 跨链收益路径的最简单Base侧用户体验
执行路径:
- 1. 阅读references/api.md。
- 使用scripts/fxusdcli.py或默认的fxSAVE后端构建捆绑包。
- 为当前源代币构建授权。
- 仅在授权额度不足时执行授权。
- 执行主交易。
- 说明结算为异步,因为路径跨越Base和以太坊主网。
2. Hydrex
当用户需要以下功能时使用:
- - fxUSD的单边流动性金库
- 将闲置fxUSD存入自动管理金库
- 从Hydrex金库提现
- 检查当前Hydrex金库敞口
执行路径:
- 1. 阅读references/hydrex.md。
- 使用scripts/fxusdhydrex.py发现、排名和规划金库操作。
- 在比较APR前区分稳定币挖矿和加密货币挖矿。
- 读取实时Base余额、授权或LP份额状态。
- 生成可执行交易和Bankr就绪的提交步骤。
- 仅当钱包实际拥有所选操作的余额或LP份额时才继续。
3. Morpho
当用户需要以下功能时使用:
- - 供应fxUSD
- 提取已供应的fxUSD
- 使用抵押品借贷
- 偿还已借入的fxUSD
- 比较借贷收益与fxSAVE
执行路径:
- 1. 阅读references/morpho.md。
- 使用scripts/fxusdmorpho.py发现实时市场和钱包仓位。
- 区分保守供应路径和更高风险的借贷路径。
- 对更简单的流程使用可执行的供应和提现计划。
- 在考虑任何自动响应前,使用警报检查进行定期监控。
- 当借贷仓位进入警告或严重区域时,首先使用还款计划或添加抵押品计划作为响应。
- 仅在抵押品假设、清算缓冲和预言机风险明确时才规划借贷操作。
常见工作流
最简单的稳定收益路径
当用户希望最低操作复杂度时:
- 1. 优先选择fxSAVE。
- 使用默认的fxSAVE后端。
- 明确说明桥接延迟。
- 不要将结算描述为即时。
稳定币流动性路径
当用户明确需要流动性提供而非更简单的收益包装器时:
- 1. 使用Hydrex发现。
- 当用户希望较低交易对波动性时,优先选择稳定币挖矿金库,如fxUSD/USDC。
- 说明单边存款不保证单一代币提现。
- 仅在实时余额和授权检查通过后使用Bankr就绪步骤。
加密货币配对挖矿路径
当金库将fxUSD与BNKR等波动性资产配对时:
- 1. 标记为加密货币挖矿。
- 不要将其与fxUSD/USDC视为相同风险等级进行比较。
- 在执行前明确说明交易对波动性和提现形态风险。
借贷或杠杆路径
当用户需要资本效率或借贷时:
- 1. 使用Morpho规划。
- 当用户未明确要求杠杆时,优先选择供应而非借贷。
- 如果请求借贷,保持保守的清算缓冲。
- 对于持续借贷仓位,在操作前使用警报检查显示警告或严重状态。
- 优先使用还款计划,当用户有闲置抵押品库存并希望保持债务开放时使用添加抵押品计划。
决策指南
优先选择fxSAVE当:
- - 用户希望最简单的Base侧流程
- 用户不希望管理金库
- 用户更看重较低的操作复杂度而非可选额外收益
优先选择Hydrex当:
- - 用户明确需要单边流动性
- 目标资产存在实时金库
- 用户接受提现可能返回混合代币组合
优先选择Morpho供应当:
- - 用户希望更直接的借贷路径
- 用户不需要流动性池敞口
仅优先选择Morpho借贷当:
- - 用户明确需要杠杆或资本效率
- 抵押品、清算缓冲和市场风险已被理解
风险控制
以下是强制性护栏。
- - 使用专用热钱包或专用Bankr代理钱包进行重复执行。
- 在每次写入操作前验证链和代币地址。
- 不要将fxSAVE描述为同链或即时路径。
-