---
eip: 6506
label: ERC-6506
title: P2P Escrowed Governance Incentives
status: Stagnant
type: Standards Track
category: ERC
created: 2023-02-15
official: https://eips.ethereum.org/EIPS/eip-6506
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6506.md
canonical: https://eips.huatuo.xyz/eip-6506/
lang: en
tldr: A stagnant interface for escrow contracts that hold a payment for voting a certain way on a DAO proposal, releasing it to the voter only if the vote can be verified and refunding it otherwise.
tags: [governance, dao, voting, escrow, incentives]
---

# ERC-6506: P2P Escrowed Governance Incentives

> Interface for building contracts that escrow funds based on an account taking action in a DAO

**TL;DR:** A stagnant interface for escrow contracts that hold a payment for voting a certain way on a DAO proposal, releasing it to the voter only if the vote can be verified and refunding it otherwise.

## What problem does it solve?

Paying token holders to vote a certain way ("bribes" or "governance incentives") already exists in DeFi, through pooled marketplaces where incentives are split pro rata among everyone who votes. The proposal points out problems with that model: a voter's share can be diluted by larger voters who join later, the platforms are centralised, and private one-to-one deals depend entirely on trust and happen off-chain where nobody can see them.

ERC-6506 standardises a **peer-to-peer escrow** for such deals. An incentivizer locks funds for a specific recipient, proposal and vote direction. The recipient can claim them only if they voted as agreed; otherwise the incentivizer gets the money back. The authors also argue that making these deals visible on-chain adds transparency, and that a DAO could direct part of the revenue to token buybacks to offset the harm of bribed outcomes.

## How it works

Core functions of `IEscrowedGovIncentive`:

| Function | Who calls it | What it does |
| --- | --- | --- |
| `incentivize(incentiveId, incentiveInfo)` | Incentivizer | Commits to an incentive and deposits funds (payable) |
| `claimIncentive(incentiveId, reveal, recipient)` | Voter or approved claimer | Reveals the commitment; pays out if the vote is verified |
| `reclaimIncentive(incentiveId, reveal)` | Incentivizer | Gets funds back by proving the voter did not comply |
| `verifyVote(incentiveId, voteInfo)` | Anyone (view) | Checks whether the vote matched the agreed direction |
| `modifyClaimer(claimer, designation)` | Voter | Lets another address claim on their behalf |
| `beginDispute` / `resolveDispute` | Either side | Optional dispute process when the vote can't be verified directly |

Details are passed as `bytes` and decoded per DAO, because each governance system verifies votes differently. The spec sketches three designs:

- **Complete transparency**: recipient, amount and direction are public calldata.
- **Opacity until completion**: terms are committed as a hash (and can be encrypted to the recipient's key), then revealed at claim time.
- **Off-chain voting** (e.g. Snapshot): after the deadline there is a challenge window in which the incentivizer can submit the recipient's signed vote for the opposite side. If nobody challenges, the recipient claims. If the recipient never voted, a dispute process decides.

Claims and reclaims must revert while a dispute is pending, and any fees must be taken up front so the recipient gets at least the promised amount.

## Sample code

Committing to a hidden incentive (illustrative; encoding is implementation-specific):

```ts
import { AbiCoder, keccak256, id, randomBytes, hexlify } from "ethers";

const coder = AbiCoder.defaultAbiCoder();
const salt = hexlify(randomBytes(32));
const terms = coder.encode(
  ["address", "address", "uint256", "uint256", "bytes32", "bytes32"],
  [usdc, voter, 100_000000n, proposalId, id("FOR"), salt],   // direction = keccak256("FOR")
);
const incentiveId = keccak256(terms);                          // commitment

await escrow.incentivize(incentiveId, encryptedForVoter);       // funds escrowed
// ...after the vote...
await escrow.connect(voterSigner).claimIncentive(incentiveId, terms, voter);
```

## Things to know

- Status: **Stagnant**. No further work is happening on the proposal.
- Paying for votes may breach a DAO's rules or local law, and it can damage governance. Review legal and ethical questions before building on this.
- Off-chain vote verification depends on a challenge window and a dispute mechanism, which the standard leaves entirely to the implementer and which may involve a trusted third party.
- The interface code and the YAML method tables in the spec do not fully match (e.g. event parameters). Treat the spec as a sketch, not an exact ABI.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-6506
