Skip to content

Conversation

@brenzi
Copy link
Collaborator

@brenzi brenzi commented Sep 8, 2025

run as endless loop and send heartbeats every 20 seconds: bun bridge-watchdog.ts --live --margin 3 --direction P2K --interval 20 --heartbeat

Deployment Instructions

add .env file

TEER_BRIDGE_WATCHDOG_MNEMONIC="<MNEMONIC>"
TEER_BRIDGE_WATCHDOG_INTERVAL=1620
TEER_BRIDGE_WATCHDOG_MARGIN=1.5
  • interval: run every 27min
  • margin: suggest fee config which can accept cumulative DEX slippage up to this factor

run as pm2 service for direction P2K

bun install
bun papi generate
pm2 start --interpreter bun --name teer-bridge-watchdog-P2K bridge-watchdog.ts -- --live --direction P2K --prometheus-port 15361 --heartbeat
pm2 start --interpreter bun --name teer-bridge-watchdog-K2P bridge-watchdog.ts -- --live --direction K2P --prometheus-port 15362 --heartbeat

@brenzi brenzi changed the title fix chopsticks runs in both directions bridge watchdog enhancements Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants