getMinimumControlShares()
/**
* Get the minimum number of shares required to control the Collective Portrait.
*
* @remarks
* The minimum number of shares required to control the Collective Portrait is the number of shares that a shareholder must have to be able to control the Collective Portrait.
* Control of the Collective Portrait is defined as being able to change the Collective Portrait's hash, minimum control shares, and share split.
*
* @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the minimum number of shares required to control for.
* @returns {number} - The minimum number of shares required to control the Collective Portrait.
* @beta
* @async
*/
getMinimumControlShares(identity: CollectivePortraitName | number): number {
const id =
typeof identity === 'number' ? this.getNameByTokenId(identity) : identity;
return this.portrait.portraitCollectiveContract.getMinimumControlShares(id);
}
Last updated