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()
withdraw()
Function Signature
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
Last updated