# 🔌 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.
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
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.
# 3. Propose & Execute a 'setPlug' Contract Call Action
- Start a new proposal for your DAO
- Attach a Contract Call Action of type: setPlug
- Fill in the settings to your preference:
- 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:
ArtCPAClub (NFTs/SFTs): erd1qqqqqqqqqqqqqpgqfken0exk7jpr85dx6f8ym3jgcagesfcqkqys0xnquf (opens new window)