The Vote Escrowed PWN (vePWN) token handles the main logic for staking PWN tokens and implements voting power calculation for stakers.
{% embed url="https://github.com/PWNDAO/pwn_dao/blob/main/src/token/VoteEscrowedPWN.sol" %}
{% file src="../../../../.gitbook/assets/VoteEscrowedPWN.json" %} ABI {% endfile %}
- VoteEscrowedPWN.sol is written in Solidity version 0.8.25
- Stake for yourself or on behalf of another account
- Manage your stake (merge, increase, split)
- Withdraw stake
The VoteEscrowedPWN
contract itself doesn't implement any functions, define events or errors. All functionality of the contract is inherited. VoteEscrowedPWNStake
contract implements functions to manage stake. VoteEscrowedPWNPower
handles all calculations of voting power in PWN DAO. VoteEscrowedPWNStakeMetadata
implements a function to get metadata for a particular stake.