Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Grace period after maxAllocationEpochs on closeAllocation by delegator

Đang mở
#417 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
solidity
Lĩnh vực
blockchain

Hướng nghiên cứu

Bắt đầu bằng việc xem xét closeAllocation() và hành vi hiện có của maxAllocationEpochs được mô tả trong issue. Xác định grace period sẽ tách các mức phạt nhẹ và nặng như thế nào, sau đó ghi lại quyết định và mọi thay đổi cần thiết đối với contract; issue được hoàn tất khi hành vi và phạm vi đã được thống nhất.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

discussion

closeAllocation() is the function that allows unallocating tokens assigned to a particular subgraph and eventually collecting all funds from state channels.

To avoid an indexer never closing an allocation and as a consequence never distributing the funds, we allow delegators to force close an allocation after maxAllocationEpochs.

An indexer would want to close the allocation before maxAllocationEpochs. It has two incentives to do so:

  1. Effective allocation stops counting after maxAllocationEpochs.
  2. If a delegators close the allocation a POI won't be able to be presented and no rewards are distributed.

I wonder if it is a good idea to also include a grace period after maxAllocationEpochs to detach these two times.

  • indexers can close any time
  • soft penalty: no effective allocation is counted after maxAllocationEpochs
  • hard penalty: delegators can force close after maxAllocationEpochs + gracePeriod

For simplicity we can keep only maxAllocationEpochs and then add a grace period if necessary.

Ngôn ngữ chính
Solidity
Star
374
Fork
176
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của graphprotocol/contracts

Tất cả issue của graphprotocol/contracts

Issue tương tự

Thêm issue về Blockchain

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.