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


Validation Rule
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..."})