Skip to main content

AddPartyCardsAuthority

This contract is used to add new members to a Party. Must be an authority on the Party it is adding members to.

Code

AddPartyCardAuthority.sol

Functions

addPartyCards

Atomically distributes new party cards and updates the total voting power as needed.

Caller must be the party and this contract must be an authority on the party

function addPartyCards(
address[] calldata newPartyMembers,
uint96[] calldata newPartyMemberVotingPowers,
address[] calldata initialDelegates
) external;

Parameters

NameTypeDescription
newPartyMembersaddress[]Addresses of the new party members (duplicates allowed)
newPartyMemberVotingPowersuint96[]Voting powers for the new party cards
initialDelegatesaddress[]Initial delegates for the new party members. If the member already set a delegate this is ignored.