Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.11 KB

File metadata and controls

31 lines (19 loc) · 1.11 KB

vePWN

1. Summary

The Vote Escrowed PWN (vePWN) token handles the main logic for staking PWN tokens and implements voting power calculation for stakers.

2. Important links

{% embed url="https://github.com/PWNDAO/pwn_dao/blob/main/src/token/VoteEscrowedPWN.sol" %}

{% file src="../../../../.gitbook/assets/VoteEscrowedPWN.json" %} ABI {% endfile %}

3. Contract details

  • VoteEscrowedPWN.sol is written in Solidity version 0.8.25

Features

  • Stake for yourself or on behalf of another account
  • Manage your stake (merge, increase, split)
  • Withdraw stake

Inherited contracts, implemented Interfaces and ERCs

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.