# DeFi Saver 历史Recipe怎么复核：钱包身份、动作映射与真实结果

整理：链小知（AI 辅助）
资料核对日期：2026-10-12
引用地址：https://lianxiaozhi.com/tools/guides/defi-saver-existing-recipe-wallet-actions-fees-result
难度：进阶
核验方式：官方文档整理，未执行真实账户操作

对已有Recipe输入及交易回执，分清EOA、Safe/DSProxy执行上下文、动作顺序和费用；配方名称与日志不能替代资产或债务结果。

## 使用工具
- [DeFi Saver 仓位与自动化](https://lianxiaozhi.com/tools/defi-saver) · [官方入口](https://defisaver.com/)

## 前置条件
- 准备有权查看的既有去敏链/钱包类型/仓位地址、Recipe输入、执行器版本、交易状态/日志、资产单位与前后仓位记录。
- 仅做文档和已有记录排查，不导入SDK、不调用业务接口、不创建钱包或Recipe、不授权或提交交易。

## 1. 确认仓位与执行钱包

将连接的EOA、仓位持有地址与Safe/DSProxy执行钱包分别记录。当前技术矩阵Safe支持manual/strategy/TxSaver；DSProxy支持manual/strategy但不支持TxSaver；DSAProxy和Summer.Fi proxy仅列manual。

EOA仓位能看见不等Recipe Creator可执行。当前EOA帮助为部分协议支持Safe operator路径，仓位仍可留EOA；不能因为出现Safe交易就判断仓位已迁移，也不能把原有DSProxy当默认新Safe。

核对结果：仓位持有人、operator和执行上下文分开，功能按具体钱包核。
依据：[DeFi Saver 智能钱包类型与功能矩阵](https://docs.defisaver.com/protocol/core/smart-wallets.md)
依据：[DeFi Saver：EOA 仓位的功能与 Safe operator](https://help.defisaver.com/general/compatibility/wallet-compatibility/what-features-do-eoa-wallets-have-access-to.md)

## 2. 限定链与动作支持范围

对照部署页按Ethereum、Arbitrum、OP Mainnet、Base、Linea、Plasma定位原记录所用部署资料；同一个action名字跨链未必同地址或支持同协议版本，合约部署入口不证明某界面所有功能开放。

Recipe Creator页面列Yearn等协议Actions，不能据此说所有Yearn版本或任意链都能组合。原Recipe缺实际action实现地址/版本就保留未知；Registry可替换Action，当前名称映射不能当历史执行地址。

核对结果：网络、协议版本与原Action部署对应；同品牌列表未扩大为全功能。
依据：[DeFi Saver 部署合约逐链入口](https://docs.defisaver.com/protocol/deployed-contracts.md)
依据：[DeFi Saver Recipe Creator 的界面范围](https://help.defisaver.com/features/recipe-creator.md)
依据：[DeFi Saver 管理权限与可替换合约层](https://docs.defisaver.com/protocol/security-and-audits/admin-access-control.md)

## 3. 逐项抄Recipe结构和顺序

在已有Recipe保留 name、callData、actionIds、paramMapping、subData；按数组索引将动作标识、编码输入及映射对齐，动作识别采用原ABI/Action定义，不能只按显示标题解码金额。

参数可引用前一步returnValues或订阅值，而不是每项都是固定钱包余额；有flash loan时必须第一动作，回调继续执行后续动作。预览配方不是已执行，金额原整数的单位由对应token/Action字段决定。

核对结果：动作顺序、映射和输入有原始对应，未把bytes32当统一资产金额。
依据：[DeFi Saver Recipe Executor 方法与参数](https://docs.defisaver.com/protocol/core/task-manager.md)
依据：[固定 StrategyModel：Recipe、StoredSubData与StrategySub](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/strategy/StrategyModel.sol)
依据：[固定 RecipeExecutor：触发、动作、日志与回滚](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/RecipeExecutor.sol)

## 4. 定位手动、策略与TxSaver入口

已有executeRecipe属于手动Recipe；executeRecipeFromStrategy还需订阅和trigger；executeRecipeFromTxSaver另有授权与签名费用数据。三种入口不要互换，RecipeExecutor在钱包上下文中执行Actions，而非个人资金总账户。

固定33e178…实现通过Registry查Action并delegatecall；个别动作失败可回滚整个Recipe。该实现的低层失败可能只返回空revert，所以空错误不表示动作都成功，也不能凭本文强行解码成特定协议错误。

核对结果：执行入口与错误阶段匹配原版本，空返回保留未知。
依据：[DeFi Saver Recipe Executor 方法与参数](https://docs.defisaver.com/protocol/core/task-manager.md)
依据：[固定 RecipeExecutor：触发、动作、日志与回滚](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/RecipeExecutor.sol)

## 5. 按实际Action核费用而非统一总费

当前Recipe费用页没有Recipe Creator固有费，但Sell按swap类别列stablecoin0.01%、价格相关0.1%、不相关0.25%；Aave flash loan另列0.09%。这些是该页的动作范围，不等任意历史协议/市场当前准确费率，Gas和其他Action费用另保留原记录。

不要把自动化0.05%套给手动Recipe，也不要把swap费按整仓价值算。整理已知swapped amount、费种/单位、flash loan来源和交易Gas，资料不全就留费用待核；不发新交易取报价。

核对结果：费用基数对应实际动作和来源时点，手动与自动化路径分开。
依据：[DeFi Saver Recipe Creator 动作费用](https://help.defisaver.com/features/recipe-creator/fees.md)
依据：[DeFi Saver 当前 Automations 费用页](https://help.defisaver.com/automations/fees.md)

## 6. 用成功状态与仓位变化闭合

固定RecipeExecutor在动作完成后记Recipe名称日志；它不是每个借款、抵押、兑换实际值的完整证明。结合已有交易成功/失败状态、Action/协议事件及同链同地址的前后资产、债务、抵押记录，排除其他交易干扰。

失败交易不标配方完成；只有界面saved/模拟/名称日志时，也不能标净资产增加或债务还清。最终表分输入、执行、费用和结果，找不到协议/余额结果就明确待核。

核对结果：Recipe执行与经济结果分别有证据，缺项没有由名称或模拟补齐。
依据：[固定 RecipeExecutor：触发、动作、日志与回滚](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/RecipeExecutor.sol)
依据：[DeFi Saver Recipe Creator 的界面范围](https://help.defisaver.com/features/recipe-creator.md)

## 常见错误
- EOA地址、Safe operator与实际仓位owner不能混用。
- Recipe原子回滚与支付Gas不同；低层空revert不是无错误。

## 完成检查
- 已复原原Recipe入口、动作及费用适用范围。
- 执行状态、协议结果和钱包/仓位变化有各自记录或未知。

## 相关知识
- [健康因子与清算：Aave 借款仓位怎么看](https://lianxiaozhi.com/learn/health-factor-and-liquidation)
- [钱包签消息与签交易有什么区别？不付 Gas 的签名也要读内容](https://lianxiaozhi.com/learn/wallet-message-vs-transaction)

## 官方依据
- [DeFi Saver 智能钱包类型与功能矩阵](https://docs.defisaver.com/protocol/core/smart-wallets.md)
- [DeFi Saver：EOA 仓位的功能与 Safe operator](https://help.defisaver.com/general/compatibility/wallet-compatibility/what-features-do-eoa-wallets-have-access-to.md)
- [DeFi Saver 部署合约逐链入口](https://docs.defisaver.com/protocol/deployed-contracts.md)
- [DeFi Saver Recipe Creator 的界面范围](https://help.defisaver.com/features/recipe-creator.md)
- [DeFi Saver 管理权限与可替换合约层](https://docs.defisaver.com/protocol/security-and-audits/admin-access-control.md)
- [DeFi Saver Recipe Executor 方法与参数](https://docs.defisaver.com/protocol/core/task-manager.md)
- [固定 StrategyModel：Recipe、StoredSubData与StrategySub](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/strategy/StrategyModel.sol)
- [固定 RecipeExecutor：触发、动作、日志与回滚](https://raw.githubusercontent.com/defisaver/defisaver-v3-contracts/33e17858f914de884b6feab409dfbe07c6141450/contracts/core/RecipeExecutor.sol)
- [DeFi Saver Recipe Creator 动作费用](https://help.defisaver.com/features/recipe-creator/fees.md)
- [DeFi Saver 当前 Automations 费用页](https://help.defisaver.com/automations/fees.md)
