sunshine
sunshine copied to clipboard
bank withdraw rules for collectively owned accounts
start with just a simple membership check on a subset of shares or a specific account identity
#[derive(PartialEq, Eq, Clone, Encode, Decode, sp_runtime::RuntimeDebug)]
pub enum WithdrawalPermissions<AccountId> {
// a single account can reserve free capital for spending
Sudo(AccountId),
// two accounts can reserve free capital for spending
AnyOfTwoAccounts(AccountId, AccountId),
// all accounts in this organization can reserve free capital for spending
AnyMemberOfOrgShareGroup(u32, ShareID),
}