EGL
  • 🦅The Ethereum Eagle Project (EGL)
  • Protocol Overview
    • Key Functionality
    • EGL Genesis
      • Genesis
      • Release Schedule
      • Balancer Deployment
    • Voting
      • Vote, Revote, Withdraw
      • Calculating desiredEgl
      • Voting Threshold
      • Rewards
      • Leaderboard
    • Mining Pool Reward
    • The DAO
      • EGL Signals
        • Allocations
    • Token Distribution
  • Developer Documentation
    • Architecture
    • Voting
      • Claiming EGLs
    • Withdrawing EGLs
    • Withdrawing Pool Tokens
    • Tally Votes
    • Setting the gasLimit and gasTarget
    • Claiming Miner Rewards
    • Internal Functions
  • Governance
  • Governance Model
  • User Guides
    • Genesis
    • Voting
      • Claim & Vote
      • Vote
      • Revote
    • Helpful Tips
  • Appendix
    • Formulas
    • Attributes
    • FAQs
      • Design
      • Genesis
      • Voting
      • Other
    • Audits
Powered by GitBook
On this page
  1. Developer Documentation

Tally Votes

PreviousWithdrawing Pool TokensNextSetting the gasLimit and gasTarget

Last updated 3 years ago

At the end of each epoch, the votes cast in that epoch need to tallied to determine the new desiredEgl value. This can be called directly by any wallet, or will get called automatically on any vote(...) or reVote(...) call if the epoch has ended.

See for details regarding participation requirements

See for details regarding how the desiredEgl is calculated

1.tallyVotes()

Function Signature

function tallyVotes() public whenNotPaused

Validations

Validation Rule

Description

block.timestamp > currentEpochStartDate.add(epochLength)

Epoch must have ended before the votes for that epoch can be tallied

Events Emitted

  • VoteThresholdMet (Conditional)

  • VoteThresholdFailed (Conditional)

  • CreatorRewardsClaimed (Conditional)

  • VotesTallied

Web3 Example

await eglVotingInstance.tallyVotes({ from: "0x2be650ba..."})
Voting Threshold
Calculating desiredEgl