This is a workflow you can have running on a preset cadence where your Coinbase Biz balance will be monitored, if it exceeds the max amount set, excess funds will be auto-deposited into the best APY vault on Morpho. Additionally this workflow will auto-withdraw deficit funds from a Morpho vault on Base and send to your Coinbase Biz account. If either action happens, you get notified via your preferred communication channel (Slack, Telegram, Email etc). ### Quick Setup: 1. Select the wallet to be used for executing and paying gas 2. Connect your Coinbase Biz account 3. Select how you wanna be notified 4. Select the Morpho Vault you want excess funds deposited into (any chain) 5. Choose the frequency of when to run this workflow 6. Select what token you are holding in your Coinbase Biz account 7. Set the max amount you want kept in your Coinbase Biz account 8. Set the min amount to keep in your Coinbase Biz account 9. Choose the target amount to keep your Coinbase Biz account at 10. Test and Publish!
Trigger: Cronjob → Actions: Morpho Get Vault Apy, Get Morpho Vault APY, Math Operation, Math Operation, Cap Withdrawal to Vault Balance, Balance Above Upper Threshold?, Balance Below Lower Threshold?, Convert To Wei, Convert To Wei, Morpho Vault Deposit, Filter Base Deposit Address, Get {payload.accountId} Account, Morpho Vault Get Position, List Coinbase Deposit Addresses, Balance In Range, Get Morpho Position, Slack: Withdrawal Alert, Slack: Deposit Alert, Return USDC to Coinbase, Sweep Excess to Wallet, Wait for Deposit (10 min), Wait for Withdrawal (10 min), Morpho Vault Withdraw
This is a workflow you can have running on a preset cadence where your Coinbase Biz balance will be monitored, if it exceeds the max amount set, excess funds will be auto-deposited into the best APY vault on Morpho. Additionally this workflow will auto-withdraw deficit funds from a Morpho vault on Base and send to your Coinbase Biz account. If either action happens, you get notified via your preferred communication channel (Slack, Telegram, Email etc).