# 🔌 Plugging

For specific use cases, even our wide set of available voting methods (ESDT, NFT/SFT, Multisig, etc.) may not be sufficient enough for projects to handle their governance processes.

Plugging allows you to extend your DAO with a custom smart contract that feeds the DAO with users' vote information.

This feature proves extremely useful when users' vote information is not stored in tokenized form within their wallets, but rather in a separate smart contract, such as one used for staking.


Custom Plug Smart Contracts are compatible with all shards, however, transactions will finalize fastest if hosted on Shard 1.

# Integration

Plugging your custom smart contract is designed to be a fast & straightforward process. These are the steps:

# 1. Create your DAO or use an existing one

DAOs can be configured to only use the voting power defined by your Plug smart contract, but also in combination with a governance token.

# 2. Implement standardized View Functions

Prepare your smart contract to be pluggable by implementing 2 simple View functions:

  • getDaoVoteWeight: returning the users' vote weight as a BigUint
  • getDaoMembers: returning all addresses that should be displayed as members

Compatibility with Existing Governance Token

When using a governance token in conjunction with a Plug, the getDaoVoteWeight function must return denominated values. These values should be based on the number of decimal places in your governance token.

For example, if you're using a governance token with 18 decimal places, the view function should return 1000000000000000000 (that's 1 followed by 18 zeros) to represent a voting power of 1.

We have an example of this implementation available on our GitHub (opens new window) page: dao-plug-template-sc (opens new window).

# 3. Propose & Execute a 'setPlug' Contract Call Action

  1. Start a new proposal for your DAO
  2. Attach a Contract Call Action of type: setPlug
  3. Fill in the settings to your preference:
    • Address: The address of your custom smart contract that implements the mentioned view functions.
    • Quorum: Minimum of total FOR votes a proposal requires to succeed.
    • Min Propose Weight: Minimum amount of tokens required to create a proposal.
  4. Create and execute the proposal

That's it. You are all set to run your DAO with your custom implementation.

# Staking Pool Providers

PeerMe collaborates with various partners to ensure the compatibility of their staking pools with our Decentralized Autonomous Organizations (DAOs). This enables the utilization of staked tokens as voting power within your DAO.

Below is a list of compatible staking pools that can be seamlessly integrated with your PeerMe DAO: