Skip to content

Commit

Permalink
Add inactivity and inclusion_delay fields to Attestation Rewards (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen authored Aug 6, 2023
1 parent ea56687 commit 39515d4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions types/rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AttestationsRewards:
AttestationRewards:
type: object
description: "Rewards info for a single attestation"
required: ["validator_index", "head", "target", "source"]
required: ["validator_index", "head", "target", "source", "inactivity"]
properties:
validator_index:
allOf:
Expand All @@ -61,11 +61,16 @@ AttestationRewards:
- $ref: "./primitive.yaml#/Uint64"
- example: 2000
- description: "attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- description: "attester's inactivity penalty in gwei"

IdealAttestationRewards:
type: object
description: "Ideal rewards info for a single attestation"
required: ["effective_balance", "head", "target", "source"]
required: ["effective_balance", "head", "target", "source", "inactivity"]
properties:
effective_balance:
allOf:
Expand All @@ -87,6 +92,16 @@ IdealAttestationRewards:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- description: "Ideal attester's reward for source vote in gwei"
inclusion_delay:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 5000
- description: "Ideal attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- description: "Ideal attester's inactivity penalty in gwei"

BlockRewards:
type: object
Expand Down

0 comments on commit 39515d4

Please sign in to comment.