t2000-withdraw

📁 mission69b/t2000-skills 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/mission69b/t2000-skills --skill t2000-withdraw

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
kimi-cli 1
codex 1

Skill 文档

t2000: Withdraw from Savings

Purpose

Withdraw USDC from NAVI savings back to the available (checking) balance. Subject to pool utilization — if utilization is very high, partial withdrawals may be needed.

Command

t2000 withdraw <amount> [asset]
t2000 withdraw all [asset]

# Examples:
t2000 withdraw 25 USDC
t2000 withdraw 25
t2000 withdraw all

Asset defaults to USDC if omitted.

Fees

  • No protocol fee on withdrawals

Output

✓ Withdrew $XX.XX USDC
  Tx: https://suiscan.xyz/mainnet/tx/0x...

Safety

If there’s an active borrow, t2000 checks the health factor before withdrawing. If the withdrawal would drop HF below 1.5, it throws WITHDRAW_WOULD_LIQUIDATE with a safeWithdrawAmount.

Error handling

  • WITHDRAW_WOULD_LIQUIDATE: withdrawal would make health factor unsafe. Check safeWithdrawAmount in error data.
  • NO_COLLATERAL: no savings to withdraw
  • INSUFFICIENT_BALANCE: requested amount exceeds savings balance