governance-program-library
governance-program-library copied to clipboard
(WIP) NFT Proxy Voting
This PR (when finished) will add support for proxy voting using fungible tokens to boost NFT voting power in the nft-voter plugin. To do this, it adds three instructions and program methods that mimic the way that the base spl-governance program handles voting tokens:
- Create a fungible token holding account per registered NFT, to which fungible token owners can deposit tokens to boost a given NFT's voting power.
- Deposit fungible tokens into NFT's holding account, which creates a receipt/record of the total amount deposited, for the owner to withdraw from the holding account when it is safe to do so.
- Withdraw fungible tokens from the NFT's holding account supplying the deposit receipt from above, when it is safe to do so.