---
eip: 1081
label: ERC-1081
title: Standard Bounties
status: Stagnant
type: Standards Track
category: ERC
created: 2018-05-14
requires: 20
official: https://eips.ethereum.org/EIPS/eip-1081
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1081.md
canonical: https://eips.huatuo.xyz/ko/eip-1081/
lang: ko
tldr: 온체인 바운티를 위한 표준 컨트랙트 제안. 작업을 발행하고, 결과물을 모으고, 승인된 작업에 ETH 또는 어떤 ERC-20으로든 지급하여 바운티 플랫폼들이 작업과 평판을 공유할 수 있게 한다.
tags: [bounties, payments, erc20, coordination]
---

# ERC-1081: Standard Bounties

> A standard contract and interface for issuing bounties on Ethereum, usable for any type of task, paying in any ERC20 token or in ETH.

**TL;DR:** 온체인 바운티를 위한 표준 컨트랙트 제안. 작업을 발행하고, 결과물을 모으고, 승인된 작업에 ETH 또는 어떤 ERC-20으로든 지급하여 바운티 플랫폼들이 작업과 평판을 공유할 수 있게 한다.

## 어떤 문제를 해결하나요?

바운티 플랫폼(명세 저자들은 Gitcoin, Bounties Network, Status Open Bounty를 예로 듭니다)은 저마다 자기 형식으로 바운티를 보관했습니다. 한 플랫폼에 올라온 바운티는 다른 플랫폼에서 보거나 수행할 수 없었고, 발행자가 실제로 얼마나 자주 지급하는지, 작업자의 제출물이 얼마나 자주 승인되는지 같은 평판도 플랫폼을 가로질러 추적할 수 없었습니다.

ERC-1081은 바운티를 위한 하나의 컨트랙트 형태를 제안합니다. 어떤 플랫폼이든 같은 방식으로 바운티를 생성, 조회, 수행, 지급할 수 있고, 모든 단계를 온체인에서 공개적으로 감사할 수 있습니다.

## 어떻게 동작하나요?

바운티에는 세 단계가 있습니다.

1. **Issued(발행)**: `issuer`(선택적으로 `arbiter`와 함께)가 요구 사항과 마감일을 공개합니다. 요구 사항은 오프체인 JSON 문서에 있고, 컨트랙트는 그 IPFS 해시를 `data`에 저장합니다.
2. **Fulfilled(수행)**: 한 명 이상의 `fulfillers`가 결과물을 역시 IPFS 해시로 제출합니다. 여러 명이 하나의 제출물을 공유할 수 있으며, 기여도는 공통 분모에 대한 분자로 나뉩니다.
3. **Accepted(승인)**: 발행자나 중재자가 제출물을 승인하고 지급합니다. 여러 토큰으로 한꺼번에 지급할 수도 있습니다.

핵심 함수:

| 함수 | 역할 |
| --- | --- |
| `initializeBounty(issuer, arbiter, data, deadline)` | 바운티를 설정(프록시 배포에서도 동작) |
| `fulfillBounty(fulfillers[], numerators[], denominator, data)` | 작업을 제출하고 기여도를 분배 |
| `acceptFulfillment(fulfillmentId, tokens[], amounts[])` | 제출물에 지급 |
| `drainBounty(tokens[])` | 발행자가 남은 자금을 인출 |
| `changeBounty` / `changeIssuer` / `changeArbiter` / `changeData` / `changeDeadline` | 바운티를 수정 |

선택적 추가 기능으로 `acceptAndFulfill`(발행자가 제출과 지급을 한 번에 처리하므로 새 기여자가 가스용 ETH가 없어도 됨)과 `refundableContribute` / `refundContribution`(마감일까지 지급이 없으면 자금 제공자가 돈을 되찾을 수 있음)이 있습니다.

자금 조달은 유연합니다. 누구나 바운티 주소로 토큰을 전송하기만 하면 보상을 늘릴 수 있습니다.

## 샘플 코드

발행 시 `data`는 다음과 같은 JSON을 가리킵니다(명세의 스키마를 발췌).

```json
{
  "payload": {
    "title": "Add dark mode to the dashboard",
    "description": "Requirements and acceptance criteria...",
    "issuer": { "address": "0xIssuerAddress" },
    "funders": [],
    "categories": ["code"],
    "tags": ["frontend"],
    "created": 1700000000,
    "tokenSymbol": "ETH",
    "tokenAddress": "0x0000000000000000000000000000000000000000",
    "webReferenceURL": "https://github.com/org/repo/issues/1"
  },
  "meta": { "platform": "example", "schemaVersion": "0.1", "schemaName": "standardSchema" }
}
```

필수 함수의 Solidity 인터페이스 스케치:

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IStandardBounty {
    function initializeBounty(address issuer, address arbiter, string calldata data, uint256 deadline) external;
    function fulfillBounty(address[] calldata fulfillers, uint256[] calldata numerators, uint256 denominator, string calldata data) external;
    function acceptFulfillment(uint256 fulfillmentId, IERC20[] calldata payoutTokens, uint256[] calldata tokenAmounts) external;
    function drainBounty(IERC20[] calldata payoutTokens) external;
    function changeBounty(address issuer, address arbiter, string calldata data, uint256 deadline) external;
}
```

## 알아둘 점

- 상태는 **Stagnant**입니다. 최종 확정되지 못했고, 널리 채택된 플랫폼 간 바운티 인터페이스는 없습니다.
- 명세의 참조 구현 자체가 감사받지 않았다고 표시되어 있으며, 메인넷에서 자금을 보관하는 용도로는 권장되지 않습니다.
- 발행자는 요구 사항을 바꾸고 자금을 인출할 수 있으므로, 수행자는 발행자(또는 중재자)가 지급해 줄 것을 신뢰해야 합니다. 이 표준이 제공하는 것은 투명성이지 강제력이 아닙니다.
- 지급에는 [ERC-20](/eip-20/) 토큰이나 ETH를 사용하며, 비표준 토큰에 대한 일반적인 주의 사항이 그대로 적용됩니다.


---

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