TriggerX Docs
  • Introduction
    • What is TriggerX?
    • Key Features
  • Core Concepts
    • Architecture
    • Triggers in TriggerX
      • Time-Based Trigger
      • Event-Based Trigger
      • Condition-Based Trigger
    • Task Manager
    • Keepers
      • Keeper as Performer
      • Keeper as Attester
    • Aggregator
    • Network Monitoring
    • Contracts
      • AVS Governance
      • Attestation Center
  • Getting Started as Keepers
  • Monitoring And Analytics
    • Monitor Your Keeper
    • Monitor Your Job
  • Rewards
    • Keeper Rewards
    • Developer Rewards
    • Contributor Rewards
  • Fee Calculation
  • Guide
    • Templates
    • Usecases
  • Security Model
  • Community and Support
  • Appendices
    • Glossary
    • FAQ and Troubleshooting
    • Changelogs
  • References
  • Create Your First Job
    • Create Your First Time Based Job
    • Create Your First Event Based Job
Powered by GitBook
On this page
  • 1. Balance Maintainer
  • 2. Staking Reward
  • 3. Dynamic Price Oracle
  1. Guide

Usecases

PreviousTemplatesNextSecurity Model

Last updated 29 days ago

1. Balance Maintainer

This example features a smart contract called . It ensures that selected Ethereum addresses always maintain a minimum ETH balance.

If an address drops below its threshold, the contract automatically tops it up using its funds.

When to Use This:

  • Relayer or automation bots

  • Protocol-managed wallets that should never go inactive

  • Monitoring tools that depend on ETH availability

  • Any situation where running out of gas could halt operations

How TriggerX Helps: TriggerX automates the maintainBalances() function every hour, ensuring operational wallets remain active without manual intervention.

2. Staking Reward

The contract distributes staking rewards automatically when a threshold is reached. TriggerX listens for the ThresholdReached event and triggers the distributeRewards() function when it fires.

When to Use This:

  • DAO or community staking pools

  • DeFi protocols that incentivize reaching target TVL

  • Gamified staking with progressive reward unlocks

  • NFT platforms with staked-token-based perks

How TriggerX Helps: TriggerX sets up event-based jobs to monitor the ThresholdReached event and execute the distributeRewards() function without manual intervention.


3. Dynamic Price Oracle

When to Use This:

  • Simulate dynamic price updates for DeFi applications or oracle designs

  • Avoid constant polling by setting deviation-based update thresholds

  • Test automation workflows like rebalancing, liquidations, or alerts

How TriggerX Helps: TriggerX automates the updatePrices() function, reacting only to significant price changes, minimizing gas costs while ensuring timely updates.

The contract manages token pair prices based on real-time volatility, only updating when a significant deviation is detected.

BalanceMaintainer
StakingRewards
DynamicPriceOracle