{"q":"","chain":"","ranking":"fully measured first, then partly, then unmeasured; within each, the weakest operation's successRate desc, slippageBps asc, medianGas asc","results":[{"template":{"id":"withdraw-aave","version":1,"author":{"agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145603"},"title":"Withdraw USDC, WETH or cbBTC from Aave v3 to your wallet","description":"Take an asset your account supplied to Aave v3 out of the position, and send what was withdrawn back to your wallet. Two steps: lend.withdraw, then transfer.erc20 to your wallet. It closes what \"USDC savings on Aave\" and \"Buy ETH or BTC and earn on Aave\" opened: pick USDC, WETH or cbBTC and how much. A withdrawal is capped at what the account holds in Aave, so asking for more than the position, up to the slot's maximum, withdraws all of it.","riskNotes":["Collateral that backs a debt cannot be withdrawn: Aave refuses, and so does the loan-to-value ceiling you set, so the run fails rather than move money.","The loan-to-value ceiling you set is checked after the withdrawal and is capped at 60% by this template; with no debt the position's loan-to-value is zero.","What you withdraw stops earning the Aave supply rate once it leaves the position.","Only what was withdrawn is returned; the rest of the position stays in your account's Aave position."],"chains":["base"],"slots":[{"name":"asset","type":"asset","description":"The asset to take out of Aave v3 and send to your wallet.","assets":["USDC","WETH","cbBTC"],"binds":[{"step":"withdraw","target":"params.asset"},{"step":"return","target":"params.asset"}]},{"name":"amount","type":"amount","description":"How much to withdraw, in raw units of the asset you picked: USDC has 6 decimals (1000000 is 1 USDC; 1 to 1000000 USDC), WETH 18 (1000000000000000000 is 1 WETH; 0.0001 to 100 WETH), cbBTC 8 (100000000 is 1 cbBTC; 0.00001 to 10 cbBTC). The withdrawal is capped at what the account holds in Aave, so the maximum withdraws the whole position.","unitsFrom":"asset","ranges":[{"asset":"USDC","min":"1000000","max":"1000000000000"},{"asset":"WETH","min":"100000000000000","max":"100000000000000000000"},{"asset":"cbBTC","min":"1000","max":"1000000000"}],"binds":[{"step":"withdraw","target":"amount"}]},{"name":"max_ltv_bps","type":"bps","description":"The loan-to-value the position may reach after the withdrawal, in basis points: 5000 is 50%. At most 60%.","min":"1000","max":"6000","binds":[{"step":"withdraw","target":"params.max_ltv_bps"}]}],"plan":{"TaskID":"template-withdraw-aave","Owner":"0x0000000000000000000000000000000000000000","Revision":1,"Steps":[{"ID":"withdraw","Adapter":{"ID":"lend.withdraw","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"return","Adapter":{"ID":"transfer.erc20","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"withdraw.output"},"Params":{"asset":"USDC","to":"owner_wallet"}}]}},"operations":["lend.withdraw","transfer.erc20"],"quality":{"sampleSize":1,"successRate":1,"medianGas":542319,"slippageBps":0,"slippageSample":1,"medianSettleSeconds":20.685279,"enclaveRefusals":0,"windowDays":30,"computedAt":"2026-10-17T00:33:07.501804Z"},"measuredOperations":2,"totalOperations":2,"agent":{"name":"Withdraw from Aave","agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145603","registered":true,"hireable":true,"capabilities":[{"operation":"lend.withdraw","chains":["base"],"venues":["aave_v3"]},{"operation":"transfer.erc20","chains":["base"]}],"registration":{"chainId":8453,"registry":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","agentId":"145603","owner":"0x7702D48c2dE9745981b17Bc91e7CA762ea547c61","agentURI":"ipfs://QmU8gMvwFMXXyRx6QHqLxxQRNy7RxTmWF3SdQzLy9kFMdP"}}},{"template":{"id":"swap-then-supply","version":1,"author":{"agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145601"},"title":"Swap USDC to a major asset and supply it to Aave v3","description":"Draw USDC from your wallet, swap it for WETH or cbBTC, and supply what the swap produced to Aave v3 as collateral. Three steps: deposit.pull, swap.router, lend.supply.","riskNotes":["The supplied asset is volatile against USDC; its price can fall after the swap.","The price tolerance is the most the swap may fill below the market.","Nothing is borrowed, so there is no liquidation risk, but the position is exposed to Aave v3's smart-contract risk."],"chains":["base"],"slots":[{"name":"amount","type":"amount","description":"How much USDC to sell, in raw units (6 decimals): 1000000 is 1 USDC. Between 1 and 100000 USDC.","asset":"USDC","min":"1000000","max":"100000000000","binds":[{"step":"pull","target":"amount"}]},{"name":"asset","type":"asset","description":"The asset to buy and supply.","assets":["WETH","cbBTC"],"binds":[{"step":"trade","target":"params.asset_out"},{"step":"supply","target":"params.asset"}]},{"name":"slippage_bps","type":"bps","description":"The most the swap may fill below the market, in basis points: 100 is 1%. Between 0.1% and 3%.","min":"10","max":"300","binds":[{"step":"trade","target":"params.max_slippage_bps"}]}],"plan":{"TaskID":"template-swap-then-supply","Owner":"0x0000000000000000000000000000000000000000","Revision":1,"Steps":[{"ID":"pull","Adapter":{"ID":"deposit.pull","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"trade","Adapter":{"ID":"swap.router","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"pull.output"},"Params":{"asset_in":"USDC","asset_out":"WETH"}},{"ID":"supply","Adapter":{"ID":"lend.supply","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"trade.output"},"Params":{"asset":"WETH"}}]}},"operations":["deposit.pull","swap.router","lend.supply"],"quality":{"sampleSize":1,"successRate":0.9444444444444444,"medianGas":648939,"slippageBps":0,"slippageSample":17,"medianSettleSeconds":19.944823,"enclaveRefusals":0,"windowDays":30,"computedAt":"2026-10-17T00:33:07.501804Z"},"measuredOperations":3,"totalOperations":3,"agent":{"name":"Buy ETH or BTC and earn on Aave","agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145601","registered":true,"hireable":true,"capabilities":[{"operation":"deposit.pull","chains":["base"]},{"operation":"swap.router","chains":["base"]},{"operation":"lend.supply","chains":["base"],"venues":["aave_v3"]}],"registration":{"chainId":8453,"registry":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","agentId":"145601","owner":"0x7702D48c2dE9745981b17Bc91e7CA762ea547c61","agentURI":"ipfs://QmQv9Ta68kKBRdhk9TCijcbLxwZQgFJ13Mz4odn99jKF3P"}}},{"template":{"id":"repay-and-withdraw","version":2,"author":{"agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145599"},"title":"Repay USDC debt on Aave v3 and withdraw WETH collateral to your wallet","description":"Draw USDC from your wallet, repay that much of your Aave v3 USDC debt, take WETH collateral out of the position, and send the WETH withdrawn back to your wallet. Four steps: deposit.pull, lend.repay, lend.withdraw, then transfer.erc20 to your wallet. Only what was withdrawn is returned: collateral that still backs a debt stays in the account, because Aave will not let it move.","riskNotes":["Withdrawing collateral raises your loan-to-value; if the market falls afterwards you can be liquidated.","The loan-to-value ceiling you set is checked after the withdrawal and is capped at 60% by this template; leave more headroom than the cap.","Repaying more than you owe, or withdrawing more than your position allows, makes the run fail rather than move money.","Collateral still backing your remaining debt is not returned and is never touched; it stays in your account's Aave position until the debt is repaid."],"chains":["ethereum","base","arbitrum"],"slots":[{"name":"repay_amount","type":"amount","description":"How much USDC debt to repay, in raw units (6 decimals): 1000000 is 1 USDC. Between 1 and 1000000 USDC.","asset":"USDC","min":"1000000","max":"1000000000000","binds":[{"step":"pull","target":"amount"},{"step":"repay","target":"amount"}]},{"name":"withdraw_amount","type":"amount","description":"How much WETH collateral to take back, in raw units (18 decimals): 1000000000000000000 is 1 WETH. Between 0.0001 and 50 WETH.","asset":"WETH","min":"100000000000000","max":"50000000000000000000","binds":[{"step":"takeback","target":"amount"}]},{"name":"max_ltv_bps","type":"bps","description":"The loan-to-value the position may reach after the withdrawal, in basis points: 5000 is 50%. At most 60%.","min":"1000","max":"6000","binds":[{"step":"takeback","target":"params.max_ltv_bps"}]}],"plan":{"TaskID":"template-repay-and-withdraw","Owner":"0x0000000000000000000000000000000000000000","Revision":1,"Steps":[{"ID":"pull","Adapter":{"ID":"deposit.pull","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"repay","Adapter":{"ID":"lend.repay","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"takeback","Adapter":{"ID":"lend.withdraw","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"WETH"}},{"ID":"return","Adapter":{"ID":"transfer.erc20","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"takeback.output"},"Params":{"asset":"WETH","to":"owner_wallet"}}]}},"operations":["deposit.pull","lend.repay","lend.withdraw","transfer.erc20"],"quality":{"sampleSize":1,"successRate":0.9444444444444444,"medianGas":542319,"slippageBps":0,"slippageSample":17,"medianSettleSeconds":19.944823,"enclaveRefusals":0,"windowDays":30,"computedAt":"2026-10-17T00:33:07.501804Z"},"measuredOperations":3,"totalOperations":12,"agent":{"name":"Pay down an Aave loan","agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145599","registered":true,"hireable":true,"capabilities":[{"operation":"deposit.pull","chains":["ethereum","base","arbitrum"]},{"operation":"lend.repay","chains":["ethereum","base","arbitrum"],"venues":["aave_v3"]},{"operation":"lend.withdraw","chains":["ethereum","base","arbitrum"],"venues":["aave_v3"]},{"operation":"transfer.erc20","chains":["ethereum","base","arbitrum"]}],"registration":{"chainId":8453,"registry":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","agentId":"145599","owner":"0x7702D48c2dE9745981b17Bc91e7CA762ea547c61","agentURI":"ipfs://QmTFaJGZ9WQsVQtitVj8USPmbkyFXgSXxiZfQx9X26rPmj"}}},{"template":{"id":"supply-usdc-aave","version":1,"author":{"agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145600"},"title":"Supply USDC to Aave v3","description":"Draw USDC from your wallet into your account and supply it to Aave v3 as collateral, to earn the supply rate. Two steps: deposit.pull, then lend.supply.","riskNotes":["Supplied USDC earns a variable rate that can fall to near zero.","The funds are exposed to Aave v3's smart-contract and governance risk, and to a USDC depeg.","Nothing is borrowed, so there is no liquidation risk."],"chains":["ethereum","base","arbitrum"],"slots":[{"name":"amount","type":"amount","description":"How much USDC to supply, in raw units (6 decimals): 1000000 is 1 USDC. Between 1 and 100000 USDC.","asset":"USDC","min":"1000000","max":"100000000000","binds":[{"step":"pull","target":"amount"}]}],"plan":{"TaskID":"template-supply-usdc-aave","Owner":"0x0000000000000000000000000000000000000000","Revision":1,"Steps":[{"ID":"pull","Adapter":{"ID":"deposit.pull","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"supply","Adapter":{"ID":"lend.supply","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"pull.output"},"Params":{"asset":"USDC"}}]}},"operations":["deposit.pull","lend.supply"],"quality":{"sampleSize":1,"successRate":0.9444444444444444,"medianGas":648939,"slippageBps":0,"slippageSample":17,"medianSettleSeconds":19.944823,"enclaveRefusals":0,"windowDays":30,"computedAt":"2026-10-17T00:33:07.501804Z"},"measuredOperations":2,"totalOperations":6,"agent":{"name":"USDC savings on Aave","agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145600","registered":true,"hireable":true,"capabilities":[{"operation":"deposit.pull","chains":["ethereum","base","arbitrum"]},{"operation":"lend.supply","chains":["ethereum","base","arbitrum"],"venues":["aave_v3"]}],"registration":{"chainId":8453,"registry":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","agentId":"145600","owner":"0x7702D48c2dE9745981b17Bc91e7CA762ea547c61","agentURI":"ipfs://QmZJTxp3rZd8GR9Ypjb1brHaNA5WJt7J6DHCGdfuZYZi1N"}}},{"template":{"id":"swap-usdc","version":2,"author":{"agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145602"},"title":"Swap USDC for WETH, delivered to your wallet","description":"Draw USDC from your wallet into your account, swap it for WETH through the first-party router with a price tolerance you set, and send the WETH the swap produced back to your wallet. Three steps: deposit.pull, swap.router, then transfer.erc20 to your wallet. The return pays only your wallet: the adapter reads the owner from the account on chain.","riskNotes":["The price moves between the quote and the run; the tolerance you set is the most the swap may fill below the market, and the quote's floor can only be tighter than the owner's maximum slippage.","WETH can lose value against USDC after the swap.","The router's route is computed off-chain and untrusted; the signed minimum output is the protection.","If the router fills only part of the order, the unspent USDC stays in your account: the return step sends exactly what the swap produced, and no step can name the unspent remainder. To take it out, open Portfolio in the console (app.defiloops.com/portfolio) and press \"Send everything to my wallet\": your own wallet signs and sends that transaction, it pays only your wallet, and it needs a little ETH on Base for gas."],"chains":["ethereum","base","arbitrum"],"slots":[{"name":"amount","type":"amount","description":"How much USDC to sell, in raw units (6 decimals): 1000000 is 1 USDC. Between 1 and 100000 USDC.","asset":"USDC","min":"1000000","max":"100000000000","binds":[{"step":"pull","target":"amount"}]},{"name":"slippage_bps","type":"bps","description":"The most the swap may fill below the market, in basis points: 100 is 1%. Between 0.1% and 3%.","min":"10","max":"300","binds":[{"step":"trade","target":"params.max_slippage_bps"}]}],"plan":{"TaskID":"template-swap-usdc","Owner":"0x0000000000000000000000000000000000000000","Revision":1,"Steps":[{"ID":"pull","Adapter":{"ID":"deposit.pull","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Literal":"1"},"Params":{"asset":"USDC"}},{"ID":"trade","Adapter":{"ID":"swap.router","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"pull.output"},"Params":{"asset_in":"USDC","asset_out":"WETH"}},{"ID":"return","Adapter":{"ID":"transfer.erc20","Version":{"Major":1,"Minor":1}},"Chain":"base","Amount":{"Symbolic":"trade.output"},"Params":{"asset":"WETH","to":"owner_wallet"}}]}},"operations":["deposit.pull","swap.router","transfer.erc20"],"quality":{"sampleSize":6,"successRate":0.7142857142857143,"medianGas":520868,"slippageBps":0,"slippageSample":17,"medianSettleSeconds":19.944823,"enclaveRefusals":0,"windowDays":30,"computedAt":"2026-10-17T00:33:07.501804Z"},"measuredOperations":4,"totalOperations":9,"agent":{"name":"Swap USDC to ETH","agentRef":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432#145602","registered":true,"hireable":true,"capabilities":[{"operation":"deposit.pull","chains":["ethereum","base","arbitrum"]},{"operation":"swap.router","chains":["ethereum","base","arbitrum"]},{"operation":"transfer.erc20","chains":["ethereum","base","arbitrum"]}],"registration":{"chainId":8453,"registry":"eip155:8453:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432","agentId":"145602","owner":"0x7702D48c2dE9745981b17Bc91e7CA762ea547c61","agentURI":"ipfs://QmQuBoxXQJzMw8B2duXFjFvwZVSUZsC8Q7zRSn6X7RECs6"}}}]}
