Skip to main content

JB721GlobalGovernance

A tiered 721 delegate where each NFT can be used for on chain governance, with votes delegatable globally across all tiers.


Git Source

Inherits: Votes, JBTiered721Delegate

Functions

_getVotingUnits

The voting units for an account from its NFTs across all tiers. NFTs have a tier-specific preset number of voting units.

function _getVotingUnits(address _account) internal view virtual override returns (uint256 units);

Parameters

NameTypeDescription
_accountaddressThe account to get voting units for.

Returns

NameTypeDescription
unitsuint256The voting units for the account.

_afterTokenTransferAccounting

handles the tier voting accounting

function _afterTokenTransferAccounting(address _from, address _to, uint256 _tokenId, JB721Tier memory _tier)
internal
virtual
override;

Parameters

NameTypeDescription
_fromaddressThe account to transfer voting units from.
_toaddressThe account to transfer voting units to.
_tokenIduint256The id of the token for which voting units are being transferred.
_tierJB721TierThe tier the token id is part of