# Automate USDC balance between wallet and Aave with 1Shot API: n8n workflow

> Started by a clock, and works across Telegram. 31 steps, 3 branches: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/automate-usdc-balance-between-wallet-and-aave-with-1shot-api (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Automate USDC balance between wallet and Aave with 1Shot API

Started by a clock, and works across Telegram. 31 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-usdc-balance-between-wallet-and-aave-with-1shot-api)

**31 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Logic 9 Service 20

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 3 **Savings Configs** Code *Logic*
- 4 **List wallets** One Shot *Service*
- 5 **Check User's USDC Balance** One Shot *Service*
- 6 **Check for Base Wallet** If *Logic*
- 7 **Check User's Aave Savings** One Shot *Service*
- 8 **Get Wallet ID** Code *Logic*
- 9 **Create Base wallet** One Shot *Service*
- 10 **Switch** Switch *Logic*
- 11 **Assure aBasUSDC** One Shot *Service*
- 12 **Assure Aave: Pool Proxy (Base)** One Shot *Service*
- 13 **Assure USDC (Base)** One Shot *Service*
- 14 **Calculate Excess Funds** Code *Logic*
- 15 **Calculate Insufficient Funds** Code *Logic*
- 16 **No Change, Send Account Status** Telegram *Service*
- 17 **Merge** Merge *Logic*
- 18 **USDC Approve** One Shot Synch *Service*
- 19 **Check User Has Sufficient Savings** If *Logic*
- 20 **Code in JavaScript** Code *Logic*
- 21 **Aave Supply** One Shot Synch *Service*
- 22 **Deposit Failure Notification** Telegram *Service*
- 23 **Withdraw from Aave** One Shot Synch *Service*
- 24 **Insufficient Savings Warning** Telegram *Service*
- 25 **Confirm User's USDC Balance After Deposit** One Shot *Service*
- 26 **Confirm User's USDC Balance After Withdraw** One Shot *Service*
- 27 **Withdraw Failure Notification** Telegram *Service*
- 28 **Confirm User's Aave Savings After Deposit** One Shot *Service*
- 29 **Confirm User's Aave Savings After Withdraw** One Shot *Service*
- 30 **Deposit Confirmation** Telegram *Service*
- 31 **Withdraw Confirmation** Telegram *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 31, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Telegram account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-usdc-balance-between-wallet-and-aave-with-1shot-api)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Score property deals, alert investors, and log CRM KPIs** 31 steps · Email, Google Sheets](https://millionrounds.com/workflow/score-property-deals-alert-investors-and-log-crm-kpis)
- [**Automate delivery confirmation with Telegram Bot** 32 steps · Gmail, Google Drive](https://millionrounds.com/workflow/automate-delivery-confirmation-with-telegram-bot)
- [**Reply to Instagram comments with Groq and Telegram** 32 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/reply-to-instagram-comments-with-groq-and-telegram)
- [**Monitor Google Maps reviews with Pinecone** 30 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/monitor-google-maps-reviews-with-pinecone)
- [**AI chatbot call center: Telegram call in with Postgres** 29 steps · Postgres, Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-telegram-call-in-with-postgres)
- [**AI chatbot call center: demo call back with Postgres and Redis** 29 steps · Postgres, Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-demo-call-back-with-postgres-and-redi)
