ShareMint
  • ๐Ÿ‘‹Introduction
  • Overview
    • ๐Ÿ’กWhat we do
    • โœจFeatures
    • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘Partner Program
  • Fundamentals
    • ๐Ÿ› ๏ธGetting Started
    • โšกAffiliate Sign Up Page
    • ๐ŸŒ๏ธReferee Sign Up Page
    • ๐Ÿ“Integrating ShareMint into your Website
    • ๐ŸŽAPI
    • ๐ŸŽชAffiliate Token Gating
    • ๐Ÿง‘Inviting other Admins
    • ๐Ÿš…Bulk Upload Users
    • ๐Ÿ“–Export as CSV
    • ๐Ÿ’ตBulk Payouts
    • ๐Ÿ’ธSupport for fiat payments
    • ๐Ÿ—ผTiered Rewards
    • ๐ŸŽฐReferee Requirements
      • Smart Contract Events
      • API Events
      • API Points
    • ๐ŸงชChecking your program before launch
  • Use Cases
    • ๐ŸŽจFor NFT Collections
    • ๐ŸงบFor NFT Marketplaces
    • ๐ŸŽฎFor Gaming
    • ๐Ÿ’ฑFor DeFi Protocols
    • ๐Ÿ’ธFor DEXs
    • ๐Ÿ—ž๏ธFor Newsletters
  • Case Studies
    • ๐ŸŽจNFT Mints
    • ๐Ÿ’ฑDeFi Protocols
Powered by GitBook
On this page
  1. Fundamentals
  2. Referee Requirements

Smart Contract Events

Track smart contract events by referees to reward affiliates.

PreviousReferee RequirementsNextAPI Events

Last updated 1 year ago

This section explains how to reward affiliates based on the smart contract events performed by the users they invite.

To add a Smart Contract Event requirement, navigate to your project's settings page. In the Affiliates section, click on Advanced Referee Requirements, and choose Smart Contract Event as the requirement type.

You will be asked to fill in the following fields:

  • Event Name - a user friendly name that is displayed in our UI.

  • What is the minimum value required to be considered a referral? - This is a numeric value threshold above which an affiliate is considered to be valid. You can leave this blank or set it to 0 if you'd like to allow any value.

  • Chain - Which blockchain the event occurs on.

  • Smart Contract Address - The smart contract on which to track the events.

  • Event ABI - The ABI for the event to track. This can be copied and pasted from Etherscan. Ask a developer or reach out to us if you need help with this.

  • Event ABI Address Field - This is the address to track within the event. For example, if you have a staking event represented by Stake(address staker, unit256 value) this field would be set to staker. Note, this field will only be editable once a valid ABI is set. Only indexed topics can be tracked.

  • Event ABI Value Field - This is the value field to track within the event. For example, if you have a staking event represented by Stake(address staker, unit256 value) this field would be set to value. So if you want to reward affiliates with 5 USDC for every referee that stakes at least 100 value, this is the field we'd check to see if the condition has been fulfilled. Note, this field will only be editable once a valid ABI is set.

This is an example of settings for tracking Lido staking:

You can require that referees complete multiple requirements to be considered eligible for a reward to be unlocked. To require multiple requirements, click on the plus icon at the bottom of a requirement. You can combine smart contract requirements with other types of requirements.

๐ŸŽฐ
Tracking Lido staking