Why do we need W-PHA
In the StakePool V1, the PHA could be used as a delegation. While delegated in the StakePool, the Delegator can also use it for daily community governance voting. Because when you delegate your PHA to the StakePool, the status of the token will be adjusted to “locked”, but it will remain in your address. Then you can use it for governance voting. This logic caused the Delegation to be unable to be transferred or traded. In the process of NFTization of the Delegation, to improve the liquidity of the Delegation, we hope to set the NFTs in a tradable state and use a suitable mechanism to give these Delegation NFTs governance voting rights. Therefore, we need to introduce the concept of WrappedBalances and W-PHA.How does it work
W-PHA is an asset on the Khala chain (Delegation is not yet enabled on the Phala chain, so there is no W-PHA on Phala yet). Therefore, when you wrap a W-PHA from WrappedBalances, your PHA will be transferred to the pallet (WrappedBalances) and locked there. Delegators can only use W-PHA to delegate into a StakePool or a Vault.- When the user delegates to a Vault or a StakePool, W-PHA will be transferred from the user address to the account of the pools
- When the Vault delegates to a StakePool, W-PHA will be transferred from the Vault address to the StakePool account
- When StakePool stakes the Delegation to the worker, W-PHA will be transferred to the worker staking account corresponding to the StakePool
Please Note that use the “contribute” for all delegating operations to the pools and use the “start working” to set the worker to the active state. Do not transfer tokens to any pool or worker address manually. The protocol controls these addresses, and the tokens you manually transfer in cannot be transferred out forever.WrappedBalances is a ledger responsible for calculating how much W-PHA each user has. When the user transfers W-PHA to the pool as a delegation, because of the existence of the Delegation NFT, it will treat the Delegation NFT as a delegation certificate. Therefore, the W-PHA will be counted into the address holding the Delegation NFT. The process of W-PHA being transferred between the user and the pool will be fully calculated by WrappedBalances.