Usecases
1. Balance Maintainer
This example features a smart contract called BalanceMaintainer. 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 StakingRewards 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
The DynamicPriceOracle contract manages token pair prices based on real-time volatility, only updating when a significant deviation is detected.
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.
Last updated