aave-planner

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

AAVE V3 Planner

AAVE V3 规划工具

Plan and generate deep links for AAVE V3 lending operations on Ethereum and Arbitrum.
为以太坊和Arbitrum上的AAVE V3借贷操作规划并生成深度链接。

Overview

概述

Plan AAVE V3 operations by:
  1. Gathering operation intent (action, token, amount, chain)
  2. Validating token against whitelist
  3. Checking interest rate mode compatibility (for borrow)
  4. Generating a deep link or manual path for execution
Supported actions:
  • Supply: Deposit assets to earn yield
  • Borrow: Borrow assets against collateral
  • Repay: Repay borrowed assets
  • Withdraw: Withdraw supplied collateral
Supported chains:
  • Ethereum Mainnet (chainId: 1)
  • Arbitrum One (chainId: 42161)
通过以下步骤规划AAVE V3操作:
  1. 收集操作意图(操作类型、代币、金额、链)
  2. 对照白名单验证代币
  3. 检查利率模式兼容性(针对借款操作)
  4. 生成用于执行的深度链接或手动路径
支持的操作:
  • 供应(Supply):存入资产以赚取收益
  • 借款(Borrow):抵押资产进行借款
  • 还款(Repay):偿还已借资产
  • 提取(Withdraw):提取已供应的抵押品
支持的链:
  • 以太坊主网(chainId: 1)
  • Arbitrum One(chainId: 42161)

Whitelist Assets

白名单资产

Ethereum (chainId: 1)

以太坊(chainId: 1)

SymbolAddressDecimals
USDC`0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48`6
USDT`0xdAC17F958D2ee523a2206206994597C13D831ec7`6
WETH`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`18
WBTC`0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599`8
DAI`0x6B175474E89094C44Da98b954EedeAC495271d0F`18
符号地址小数位数
USDC`0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48`6
USDT`0xdAC17F958D2ee523a2206206994597C13D831ec7`6
WETH`0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`18
WBTC`0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599`8
DAI`0x6B175474E89094C44Da98b954EedeAC495271d0F`18

Arbitrum (chainId: 42161)

Arbitrum(chainId: 42161)

SymbolAddressDecimals
USDC`0xaf88d065e77c8cC2239327C5EDb3A432268e5831`6
USDT`0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9`6
WETH`0x82aF49447D8a07e3bd95BD0d56f35241523fBab1`18
WBTC`0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f`8
DAI`0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1`18
Note: Only DAI supports stable rate borrowing. All other assets default to variable rate.
符号地址小数位数
USDC`0xaf88d065e77c8cC2239327C5EDb3A432268e5831`6
USDT`0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9`6
WETH`0x82aF49447D8a07e3bd95BD0d56f35241523fBab1`18
WBTC`0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f`8
DAI`0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1`18
注意:仅DAI支持固定利率借款。所有其他资产默认使用浮动利率。

Deep Link Format

深度链接格式

Market mapping:
  • Ethereum: `proto_mainnet_v3`
  • Arbitrum: `proto_arbitrum_v3`
Action mapping:
  • supply → `supply`
  • borrow → `borrow`
  • repay → `repay`
  • withdraw → `withdraw`
市场映射:
  • Ethereum: `proto_mainnet_v3`
  • Arbitrum: `proto_arbitrum_v3`
操作映射:
  • supply → `supply`
  • borrow → `borrow`
  • repay → `repay`
  • withdraw → `withdraw`

Position Simulation

仓位模拟

When users want to preview how an action would affect their position:
```bash npx tsx scripts/simulate-position.ts <chainId> <userAddress> <action> <token> <amount> ```
当用户想要预览某一操作对其仓位的影响时:
```bash npx tsx scripts/simulate-position.ts <chainId> <userAddress> <action> <token> <amount> ```

External Resources

外部资源