Skip to main content
TODO: DF to revisit after changes to smart contract event rule are published week of 18th Nov 24

Context

In blockchain-based systems, on-chain events serve as a dependable way to track user actions and interactions. These events can be used to capture activity across DeFi protocols, blockchain games, and other decentralized applications. The Smart Contract Event Rule extends the Snag Loyalty rule engine, allowing you to create tailored triggers and rewards for specific events. This integration enables you to seamlessly incentivize user behavior and drive engagement within your ecosystem.

Use cases

Here are some common scenarios where you can use the Smart Contract Event Rule:
  • Game Achievements: Reward players who reach specific milestones in a blockchain-based game by tracking events emitted from your game’s contract.
  • DeFi Incentives: Encourage users to provide liquidity or stake tokens by monitoring liquidity pool or staking contract events.
  • Cross-Chain Bridging Rewards: Reward users for successfully bridging assets across chains by tracking events from bridging contracts.
These use cases showcase how you can leverage Snag Loyalty to build engaging rules that track complex on-chain user behavior.

Example set-up

TODO: TBD (whats the best example here that we can come up with which may serve as a template for some of our clients?)