{"eip":6506,"title":"P2P Escrowed Governance Incentives","description":"Interface for building contracts that escrow funds based on an account taking action in a DAO","authors":["Josh Weintraub (@jhweintraub)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2023-02-15","discussionsTo":"https://ethereum-magicians.org/t/escrowed-and-private-bribes-for-generalized-dao-voting/12694","repo":"ERCs","label":"ERC-6506","officialUrl":"https://eips.ethereum.org/EIPS/eip-6506","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6506.md","url":"https://eips.huatuo.xyz/eip-6506/","tldr":{"en":"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.","ja":"DAO の提案に特定の方向で投票することに対する支払いを預かり、投票が検証できた場合にのみ投票者に支払い、そうでなければ返金するエスクローコントラクトの、停滞中のインターフェース。","ko":"DAO 제안에 특정 방향으로 투표하는 대가를 보관하고, 투표를 검증할 수 있을 때만 투표자에게 지급하며 그렇지 않으면 환불하는 에스크로 컨트랙트의 정체(stagnant) 상태 인터페이스.","zh":"一个已停滞的托管合约接口：托管一笔为在 DAO 提案上按某种方向投票而支付的款项，只有在投票可被验证时才释放给投票者，否则退还。"},"tags":["governance","dao","voting","escrow","incentives"],"explainers":{"en":{"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"],"related":[20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6506/","markdown":"## What problem does it solve?\n\nPaying 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.\n\nERC-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.\n\n## How it works\n\nCore functions of `IEscrowedGovIncentive`:\n\n| Function | Who calls it | What it does |\n| --- | --- | --- |\n| `incentivize(incentiveId, incentiveInfo)` | Incentivizer | Commits to an incentive and deposits funds (payable) |\n| `claimIncentive(incentiveId, reveal, recipient)` | Voter or approved claimer | Reveals the commitment; pays out if the vote is verified |\n| `reclaimIncentive(incentiveId, reveal)` | Incentivizer | Gets funds back by proving the voter did not comply |\n| `verifyVote(incentiveId, voteInfo)` | Anyone (view) | Checks whether the vote matched the agreed direction |\n| `modifyClaimer(claimer, designation)` | Voter | Lets another address claim on their behalf |\n| `beginDispute` / `resolveDispute` | Either side | Optional dispute process when the vote can't be verified directly |\n\nDetails are passed as `bytes` and decoded per DAO, because each governance system verifies votes differently. The spec sketches three designs:\n\n- **Complete transparency**: recipient, amount and direction are public calldata.\n- **Opacity until completion**: terms are committed as a hash (and can be encrypted to the recipient's key), then revealed at claim time.\n- **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.\n\nClaims 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.\n\n## Sample code\n\nCommitting to a hidden incentive (illustrative; encoding is implementation-specific):\n\n```ts\nimport { AbiCoder, keccak256, id, randomBytes, hexlify } from \"ethers\";\n\nconst coder = AbiCoder.defaultAbiCoder();\nconst salt = hexlify(randomBytes(32));\nconst terms = coder.encode(\n  [\"address\", \"address\", \"uint256\", \"uint256\", \"bytes32\", \"bytes32\"],\n  [usdc, voter, 100_000000n, proposalId, id(\"FOR\"), salt],   // direction = keccak256(\"FOR\")\n);\nconst incentiveId = keccak256(terms);                          // commitment\n\nawait escrow.incentivize(incentiveId, encryptedForVoter);       // funds escrowed\n// ...after the vote...\nawait escrow.connect(voterSigner).claimIncentive(incentiveId, terms, voter);\n```\n\n## Things to know\n\n- Status: **Stagnant**. No further work is happening on the proposal.\n- 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.\n- 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.\n- 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.\n"},"ja":{"lang":"ja","tldr":"DAO の提案に特定の方向で投票することに対する支払いを預かり、投票が検証できた場合にのみ投票者に支払い、そうでなければ返金するエスクローコントラクトの、停滞中のインターフェース。","tags":["governance","dao","voting","escrow","incentives"],"related":[20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6506/","markdown":"## 何を解決するのか\n\nトークン保有者に特定の方向で投票するよう支払うこと（「賄賂」や「ガバナンスインセンティブ」）は、すでに DeFi に存在します。インセンティブが投票した全員に按分される、プール型のマーケットプレイスを通じたものです。この提案は、そのモデルの問題点を指摘しています。投票者の取り分は、後から参加する大口の投票者によって薄められうること、プラットフォームが中央集権的であること、そして私的な一対一の取引は完全に信頼に依存し、誰にも見えないオフチェーンで行われることです。\n\nERC-6506 は、そうした取引のための**ピアツーピアのエスクロー**を標準化します。インセンティブ提供者は、特定の受取人、提案、投票方向に対して資金をロックします。受取人は、合意どおりに投票した場合にのみそれを請求でき、そうでなければ提供者に資金が戻ります。著者らはまた、こうした取引をオンチェーンで見えるようにすることで透明性が高まること、DAO が収益の一部をトークンの買い戻しに充てて、買収された結果による害を相殺できることを主張しています。\n\n## 仕組み\n\n`IEscrowedGovIncentive` の中核となる関数:\n\n| 関数 | 呼び出す人 | 内容 |\n| --- | --- | --- |\n| `incentivize(incentiveId, incentiveInfo)` | インセンティブ提供者 | インセンティブにコミットし、資金を預け入れる（payable） |\n| `claimIncentive(incentiveId, reveal, recipient)` | 投票者または承認された請求者 | コミットメントを開示し、投票が検証されれば支払う |\n| `reclaimIncentive(incentiveId, reveal)` | インセンティブ提供者 | 投票者が従わなかったことを証明して資金を取り戻す |\n| `verifyVote(incentiveId, voteInfo)` | 誰でも（view） | 投票が合意された方向と一致したかを確認する |\n| `modifyClaimer(claimer, designation)` | 投票者 | 別のアドレスに代理で請求させる |\n| `beginDispute` / `resolveDispute` | どちらの側でも | 投票を直接検証できない場合の任意の紛争プロセス |\n\n詳細は `bytes` として渡され、DAO ごとにデコードされます。ガバナンスシステムごとに投票の検証方法が異なるためです。仕様は 3 つの設計を示しています。\n\n- **完全な透明性**: 受取人、金額、方向が公開の calldata になります。\n- **完了までの不透明性**: 条件はハッシュとしてコミットされ（受取人の鍵で暗号化することもできます）、請求時に開示されます。\n- **オフチェーン投票**（Snapshot など）: 期限後にチャレンジ期間があり、その間にインセンティブ提供者は、受取人が反対側に署名した投票を提出できます。誰もチャレンジしなければ、受取人が請求します。受取人がまったく投票しなかった場合は、紛争プロセスが決定します。\n\n紛争が保留中の間、請求と再請求は revert しなければならず、手数料はあらかじめ差し引いて、受取人が少なくとも約束された額を受け取れるようにしなければなりません。\n\n## サンプルコード\n\n隠されたインセンティブへのコミット（説明用。エンコーディングは実装固有）:\n\n```ts\nimport { AbiCoder, keccak256, id, randomBytes, hexlify } from \"ethers\";\n\nconst coder = AbiCoder.defaultAbiCoder();\nconst salt = hexlify(randomBytes(32));\nconst terms = coder.encode(\n  [\"address\", \"address\", \"uint256\", \"uint256\", \"bytes32\", \"bytes32\"],\n  [usdc, voter, 100_000000n, proposalId, id(\"FOR\"), salt],   // direction = keccak256(\"FOR\")\n);\nconst incentiveId = keccak256(terms);                          // commitment\n\nawait escrow.incentivize(incentiveId, encryptedForVoter);       // funds escrowed\n// ...after the vote...\nawait escrow.connect(voterSigner).claimIncentive(incentiveId, terms, voter);\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。この提案についてのさらなる作業は行われていません。\n- 投票に対して支払うことは、DAO のルールや現地の法律に違反する可能性があり、ガバナンスを損なう恐れもあります。これを土台に構築する前に、法的・倫理的な問題をレビューしてください。\n- オフチェーンの投票検証はチャレンジ期間と紛争メカニズムに依存しますが、標準はこれを実装者に完全に委ねており、信頼できる第三者が関与する場合もあります。\n- 仕様のインターフェースコードと YAML のメソッド表は、完全には一致していません（例: イベントのパラメータ）。仕様は正確な ABI ではなくスケッチとして扱ってください。\n"},"ko":{"lang":"ko","tldr":"DAO 제안에 특정 방향으로 투표하는 대가를 보관하고, 투표를 검증할 수 있을 때만 투표자에게 지급하며 그렇지 않으면 환불하는 에스크로 컨트랙트의 정체(stagnant) 상태 인터페이스.","tags":["governance","dao","voting","escrow","incentives"],"related":[20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6506/","markdown":"## 어떤 문제를 해결하나요?\n\n토큰 보유자에게 특정 방향으로 투표하도록 돈을 주는 것(\"뇌물\" 또는 \"거버넌스 인센티브\")은 이미 DeFi에 존재하며, 인센티브를 투표한 모든 사람에게 비례 배분하는 풀링 마켓플레이스를 통해 이루어집니다. 이 제안은 그 모델의 문제를 지적합니다. 나중에 참여하는 더 큰 투표자 때문에 투표자의 몫이 희석될 수 있고, 플랫폼이 중앙화되어 있으며, 비공개 일대일 거래는 전적으로 신뢰에 의존하고 아무도 볼 수 없는 오프체인에서 이루어진다는 것입니다.\n\nERC-6506은 이런 거래를 위한 **P2P 에스크로**를 표준화합니다. 인센티브 제공자는 특정 수령인, 제안, 투표 방향에 대해 자금을 잠급니다. 수령인은 합의한 대로 투표했을 때만 이를 청구할 수 있고, 그렇지 않으면 인센티브 제공자가 돈을 돌려받습니다. 저자들은 또한 이런 거래를 온체인에서 볼 수 있게 하면 투명성이 높아지며, DAO가 수익 일부를 토큰 바이백에 사용해 매수된 결과의 피해를 상쇄할 수 있다고 주장합니다.\n\n## 어떻게 동작하나요?\n\n`IEscrowedGovIncentive`의 핵심 함수:\n\n| 함수 | 호출자 | 하는 일 |\n| --- | --- | --- |\n| `incentivize(incentiveId, incentiveInfo)` | 인센티브 제공자 | 인센티브를 확약하고 자금을 예치(payable) |\n| `claimIncentive(incentiveId, reveal, recipient)` | 투표자 또는 승인된 청구자 | 확약을 공개하고, 투표가 검증되면 지급 |\n| `reclaimIncentive(incentiveId, reveal)` | 인센티브 제공자 | 투표자가 따르지 않았음을 증명해 자금을 회수 |\n| `verifyVote(incentiveId, voteInfo)` | 누구나(view) | 투표가 합의된 방향과 일치했는지 확인 |\n| `modifyClaimer(claimer, designation)` | 투표자 | 다른 주소가 대신 청구하게 허용 |\n| `beginDispute` / `resolveDispute` | 양측 모두 | 투표를 직접 검증할 수 없을 때를 위한 선택적 분쟁 절차 |\n\n세부 정보는 `bytes`로 전달되고 DAO별로 디코딩됩니다. 거버넌스 시스템마다 투표를 검증하는 방식이 다르기 때문입니다. 스펙은 세 가지 설계를 스케치합니다.\n\n- **완전한 투명성**: 수령인, 금액, 방향이 공개 calldata입니다.\n- **완료 시까지 불투명**: 조건을 해시로 확약하고(수령인의 키로 암호화할 수도 있음), 청구 시점에 공개합니다.\n- **오프체인 투표**(예: Snapshot): 마감 후 이의 제기 기간이 있으며, 그동안 인센티브 제공자는 수령인이 반대편에 서명한 투표를 제출할 수 있습니다. 아무도 이의를 제기하지 않으면 수령인이 청구합니다. 수령인이 아예 투표하지 않았다면 분쟁 절차가 결정합니다.\n\n분쟁이 진행 중인 동안 청구와 재청구는 반드시 revert해야 하며, 수수료는 미리 떼어서 수령인이 최소한 약속된 금액을 받도록 해야 합니다.\n\n## 샘플 코드\n\n숨겨진 인센티브 확약하기(설명용. 인코딩은 구현에 따라 다름):\n\n```ts\nimport { AbiCoder, keccak256, id, randomBytes, hexlify } from \"ethers\";\n\nconst coder = AbiCoder.defaultAbiCoder();\nconst salt = hexlify(randomBytes(32));\nconst terms = coder.encode(\n  [\"address\", \"address\", \"uint256\", \"uint256\", \"bytes32\", \"bytes32\"],\n  [usdc, voter, 100_000000n, proposalId, id(\"FOR\"), salt],   // direction = keccak256(\"FOR\")\n);\nconst incentiveId = keccak256(terms);                          // commitment\n\nawait escrow.incentivize(incentiveId, encryptedForVoter);       // funds escrowed\n// ...after the vote...\nawait escrow.connect(voterSigner).claimIncentive(incentiveId, terms, voter);\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 이 제안에 대한 추가 작업은 이루어지지 않고 있습니다.\n- 투표에 대가를 지불하는 것은 DAO의 규칙이나 현지 법률을 위반할 수 있고 거버넌스를 해칠 수 있습니다. 이를 기반으로 구축하기 전에 법적·윤리적 문제를 검토하세요.\n- 오프체인 투표 검증은 이의 제기 기간과 분쟁 메커니즘에 의존하는데, 표준은 이를 전적으로 구현자에게 맡기며 신뢰할 수 있는 제3자가 개입할 수도 있습니다.\n- 스펙의 인터페이스 코드와 YAML 메서드 표는 완전히 일치하지 않습니다(예: 이벤트 파라미터). 스펙을 정확한 ABI가 아니라 스케치로 취급하세요.\n"},"zh":{"lang":"zh","tldr":"一个已停滞的托管合约接口：托管一笔为在 DAO 提案上按某种方向投票而支付的款项，只有在投票可被验证时才释放给投票者，否则退还。","tags":["governance","dao","voting","escrow","incentives"],"related":[20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6506/","markdown":"## 它解决什么问题？\n\n付费让代币持有者按某种方向投票（\"贿选\"或\"治理激励\"）在 DeFi 中已经存在，通常通过汇集式市场进行，激励会按比例分配给所有投票者。该提案指出了这种模式的问题：投票者的份额可能被后来加入的大户稀释，平台是中心化的，而私下的一对一交易完全依赖信任，并且发生在没人能看到的链下。\n\nERC-6506 为这类交易规范了一种**点对点托管**。激励提供者为特定的接收者、提案和投票方向锁定资金。接收者只有在按约定投票后才能领取；否则激励提供者拿回资金。作者还主张，让这些交易在链上可见会增加透明度，并且 DAO 可以把部分收入用于回购代币，以抵消被收买的结果所造成的损害。\n\n## 它如何运作\n\n`IEscrowedGovIncentive` 的核心函数：\n\n| 函数 | 谁调用 | 作用 |\n| --- | --- | --- |\n| `incentivize(incentiveId, incentiveInfo)` | 激励提供者 | 承诺一项激励并存入资金（payable） |\n| `claimIncentive(incentiveId, reveal, recipient)` | 投票者或被授权的领取人 | 揭示承诺；如果投票经验证则付款 |\n| `reclaimIncentive(incentiveId, reveal)` | 激励提供者 | 通过证明投票者没有遵守约定来拿回资金 |\n| `verifyVote(incentiveId, voteInfo)` | 任何人（view） | 检查投票是否符合约定的方向 |\n| `modifyClaimer(claimer, designation)` | 投票者 | 允许另一个地址代为领取 |\n| `beginDispute` / `resolveDispute` | 任一方 | 当投票无法直接验证时的可选争议流程 |\n\n细节以 `bytes` 传递，并按各个 DAO 分别解码，因为每个治理系统验证投票的方式都不同。规范勾勒了三种设计：\n\n- **完全透明**：接收者、金额和方向都是公开的 calldata。\n- **完成前不透明**：条款以哈希形式承诺（也可以用接收者的密钥加密），在领取时揭示。\n- **链下投票**（例如 Snapshot）：截止时间之后有一个挑战窗口，激励提供者可以在其中提交接收者对相反一方所签署的投票。如果没人挑战，接收者领取。如果接收者根本没有投票，则由争议流程裁决。\n\n存在未决争议时，领取和取回必须回滚，任何费用都必须预先扣除，以便接收者至少得到承诺的金额。\n\n## 示例代码\n\n承诺一项隐藏的激励（仅作说明；编码方式取决于具体实现）：\n\n```ts\nimport { AbiCoder, keccak256, id, randomBytes, hexlify } from \"ethers\";\n\nconst coder = AbiCoder.defaultAbiCoder();\nconst salt = hexlify(randomBytes(32));\nconst terms = coder.encode(\n  [\"address\", \"address\", \"uint256\", \"uint256\", \"bytes32\", \"bytes32\"],\n  [usdc, voter, 100_000000n, proposalId, id(\"FOR\"), salt],   // direction = keccak256(\"FOR\")\n);\nconst incentiveId = keccak256(terms);                          // commitment\n\nawait escrow.incentivize(incentiveId, encryptedForVoter);       // funds escrowed\n// ...after the vote...\nawait escrow.connect(voterSigner).claimIncentive(incentiveId, terms, voter);\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。该提案没有进一步的工作在进行。\n- 为投票付费可能违反 DAO 的规则或当地法律，也可能损害治理。在以此为基础构建之前，请先审查法律和伦理问题。\n- 链下投票验证依赖挑战窗口和争议机制，而标准完全把它们留给实现者，其中可能涉及受信任的第三方。\n- 规范中的接口代码和 YAML 方法表并不完全一致（例如事件参数）。请把规范视为草图，而不是精确的 ABI。\n"}}}
