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

Withdrawing EGLs

Once the release date for a vote has been reached, or the lockup period for Genesis supporters and signal / seeder account has expired, the EGLs can be withdrawn from the contract to the voting wallet address. The amount received will be the original voting amount plus any rewards earned from participating in votes

1. withdraw()

Function Signature

function withdraw() external whenNotPaused 

Validations

Validation Rule

Description

voters[msg.sender].tokensLocked > 0

Voting address must already have a vote locked to use withdraw()

block.timestamp > voters[msg.sender].releaseDate

EGL's must be available for withdrawal, i.e. the release date must have elapsed

Events Emitted

  • Withdraw

  • Transfer

Web3 Example

await eglVotingInstance.withdraw({ from: "0x2be650ba..."})
PreviousClaiming EGLsNextWithdrawing Pool Tokens

Last updated 3 years ago