sunshine icon indicating copy to clipboard operation
sunshine copied to clipboard

bank withdraw rules for collectively owned accounts

Open 4meta5 opened this issue 5 years ago • 0 comments

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),
} 

limits on spends per member per TimePeriod

leadership selection for bank's controllers using vote modules

revocable representative democracy (so members can veto spend requests but the default is approval after some time period for whoever is trusted)

4meta5 avatar May 14 '20 06:05 4meta5