Morpho + Polymarket: Borrow to Place Bets

Monitors your wallet's USDC.e balance on Polymarket every 5 minutes. When the balance drops below your minimum threshold, the workflow borrows USDC.e from your Morpho position and bridges it to Polygon as USDC.e to top the wallet back up to your target. You get a notification on every successful top-up and on any skipped run, with the reason and current health factor. ### Quick Setup: 1. Import the wallet that holds your Morpho collateral on Base or use your B3OS Treasury Wallet 2. Pick the chain for your Morpho market (Default: Base) 3. Choose the Morpho market to borrow USDC.e from 4. Set your minimum balance - the USDC.e level (in USD) that triggers a top-up 5. Set your target balance - the USDC.e amount (in USD) to top up to when triggered 6. Set your health-factor floor (eg 1.3 moderate, 1.5+ conservative) so borrows stop before liquidation risk 7. Choose the Slack channel where top-up confirmations and skip alerts should appear 8. Test and publish!

Trigger: Cronjob → Actions: Log, Morpho Blue Borrow, Calculate Borrow Amount, If, Get Balance, Morpho Blue Get Positions, If, Notification, Notification, Relay Swap

Morpho + Polymarket: Borrow to Place Bets

Morpho + Polymarket: Borrow to Place Bets

Created by
B3 Team
1.
Root
Root
2.
Check Balance
Check Balance
3.
Is Balance Low
Is Balance Low
4.
Get Position
Get Position
5.
Calculate Borrow Amount
Calculate Borrow Amount

About

Monitors your wallet's USDC.e balance on Polymarket every 5 minutes. When the balance drops below your minimum threshold, the workflow borrows USDC.e from your Morpho position and bridges it to Polygon as USDC.e to top the wallet back up to your target. You get a notification on every successful top-up and on any skipped run, with the reason and current health factor.

Quick Setup:

  1. Import the wallet that holds your Morpho collateral on Base or use your B3OS Treasury Wallet
  2. Pick the chain for your Morpho market (Default: Base)
  3. Choose the Morpho market to borrow USDC.e from
  4. Set your minimum balance - the USDC.e level (in USD) that triggers a top-up
  5. Set your target balance - the USDC.e amount (in USD) to top up to when triggered
  6. Set your health-factor floor (eg 1.3 moderate, 1.5+ conservative) so borrows stop before liquidation risk
  7. Choose the Slack channel where top-up confirmations and skip alerts should appear
  8. Test and publish!

Preview

Loading chat...