Jelly
  • Introduction
  • Jelly Recipes
  • recipes
    • Create an Airdrop
      • Overview
      • Prepare your Whitelist
        • Create a CSV Whitelist
        • Generate your Merkle proof
        • Upload proof (optional)
      • Create Airdrop
        • Create your JellyDrop contract
        • Add Rewards
        • Your Airdrop Claim UI
        • Set Airdrop Claim
      • Contract Links
      • Demo Airdrop
    • Create a Staking Pool (using ve model)
      • Prepare Staking Pool
        • Create Staking Pool (with Liquidity)
        • Create Staking Pool (No liquidity)
      • Staking UI
      • How to calculate token fee
      • Snapshot strategy
      • Contract Links
  • Tokens
    • Tokens
    • Jellynomics
    • veJELLY
  • Links
    • Twitter
    • Discord
    • Medium
    • Website
    • Brand Assets
Powered by GitBook
On this page
  • Prepare ABI code
  • Add strategy
  1. recipes
  2. Create a Staking Pool (using ve model)

Snapshot strategy

Prepare ABI code

To get started, in order to add a Snapshot strategy to your Staking Pool, you need to prepare the ABI code.

{ 
    "address": "your_staking_pool_address",
    "symbol": "your_staking_pool_symbol",
    "decimals": 18,
    "methodABI": {
        "name": "voterBalance",
        "type": "function",
        "inputs": [ { "name": "account", "type": "address", "internalType": "address" } ], 
        "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], 
        "stateMutability": "view" 
    }
}

Replace the values of the following fields:

  • symbol - a symbol that will represent your ve staking pool. e.g. veJELLY

  • address - an address of your Staking Pool

Add strategy

Go to the settings of your snapshot space, click Add strategy, and enter "contract-call" into the search form:

Next, open the contract-call strategy and select the network where your Staking Pool is deployed:

Replace the current code with the ABI code that you have prepared above and save the strategy:

Save the settings on the right side of the settings:

Now you can use this strategy in your snapshot.

PreviousHow to calculate token feeNextContract Links

Last updated 2 years ago