Developer Docs
AppGitHub
  • Welcome!
  • Smart contracts
    • Core
      • Introduction
      • Deep Dive
      • Smart Contract Reference
        • PWN Hub
          • Tags
        • PWN Config
        • PWN Vault
        • Loan Types
          • Simple Loan
        • Proposals
          • Simple Loan Proposal
            • Simple Proposal
            • List Proposal
            • Elastic Proposal
            • Elastic Chainlink Proposal
            • Dutch Proposal
        • PWN Utilized Credit
        • PWN LOAN
        • PWN Revoked Nonce
        • Peripheral Contracts
          • Acceptor Controller
            • World ID
          • State Fingerprint Computer
            • UniV3
            • Chicken Bonds
          • Pool Adapter
            • Aave
            • Compound
            • ERC4626
        • Miscellaneous
          • PWN Fee Calculator
          • PWN Signature Checker
          • PWN Errors
          • PWN Periphery
          • Timelock
    • PWN DAO
      • Governance
        • Optimistic
        • Token
      • Tokens
        • PWN
        • stPWN
        • vePWN
          • Stake
          • Power
          • Metadata
      • Epoch Clock
      • Miscellaneous
        • Errors
        • EpochPowerLib
    • Tools
      • PWN Safe
        • Architecture
        • Security considerations
        • Smart Contract Reference
          • PWN Safe Factory
          • ATR Module
            • Tokenized Asset Manager
            • Recipient Permission Manager
          • Whitelist
          • ATR Guard
            • Operators context
      • Token Bundler
      • PWN Deployer
    • Libraries
      • MultiToken
    • Contract Addresses
  • More documentation
    • PWN Docs
    • FAQ
    • Audits
    • Using PWN without front-end
  • Deprecated
    • PWN Beta
      • Architecture
      • PWN
        • Off-chain signed offer
        • Offer types
      • PWN Vault
      • PWN LOAN
Powered by GitBook
On this page
  • 1. Summary
  • 2. Important links
  • 3. Contract details
  • Features
  • Inherited contracts, implemented Interfaces and ERCs
Edit on GitHub
  1. Smart contracts
  2. PWN DAO
  3. Tokens

vePWN

PreviousstPWNNextStake

Last updated 5 months ago

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

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.

VoteEscrowedPWNStake
VoteEscrowedPWNPower
VoteEscrowedPWNStakeMetadata
283KB
VoteEscrowedPWN.json
ABI
pwn_dao/src/token/VoteEscrowedPWN.sol at main · PWNDAO/pwn_daoGitHub
Logo