stPWN
1. Summary
The Staked PWN (stPWN) token is a representation of a stake in the PWN DAO. The stPWN token is mintable and burnable by the VoteEscrowedPWN
contract.
2. Important links
3. Contract details
- StakedPWN.sol is written in Solidity version 0.8.25
Features
- Mint and Burn tokens (stakes)
- Transfers are disabled by default, but can be enabled by the PWN DAO
Inherited contracts, implemented Interfaces and ERCs
Functions
enableTransfers
Overview
Function to enable permissionless stPWN token transfers. Transfers cannot be disabled once they have been enabled.
This function doesn't take any arguments.
Implementation
function enableTransfers() external onlyOwner {
if (transfersEnabled) {
revert Error.TransfersAlreadyEnabled();
}
transfersEnabled = true;
}