Automation library · Alerts and monitoring

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

31 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 9Service 20

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2When clicking ‘Execute workflow’Manual triggerStarts it
  3. 3Savings ConfigsCodeLogic
  4. 4List walletsOne ShotService
  5. 5Check User's USDC BalanceOne ShotService
  6. 6Check for Base WalletIfLogic
  7. 7Check User's Aave SavingsOne ShotService
  8. 8Get Wallet IDCodeLogic
  9. 9Create Base walletOne ShotService
  10. 10SwitchSwitchLogic
  11. 11Assure aBasUSDCOne ShotService
  12. 12Assure Aave: Pool Proxy (Base)One ShotService
  13. 13Assure USDC (Base)One ShotService
  14. 14Calculate Excess FundsCodeLogic
  15. 15Calculate Insufficient FundsCodeLogic
  16. 16No Change, Send Account StatusTelegramService
  17. 17MergeMergeLogic
  18. 18USDC ApproveOne Shot SynchService
  19. 19Check User Has Sufficient SavingsIfLogic
  20. 20Code in JavaScriptCodeLogic
  21. 21Aave SupplyOne Shot SynchService
  22. 22Deposit Failure NotificationTelegramService
  23. 23Withdraw from AaveOne Shot SynchService
  24. 24Insufficient Savings WarningTelegramService
  25. 25Confirm User's USDC Balance After DepositOne ShotService
  26. 26Confirm User's USDC Balance After WithdrawOne ShotService
  27. 27Withdraw Failure NotificationTelegramService
  28. 28Confirm User's Aave Savings After DepositOne ShotService
  29. 29Confirm User's Aave Savings After WithdrawOne ShotService
  30. 30Deposit ConfirmationTelegramService
  31. 31Withdraw ConfirmationTelegramService

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.