Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

bank withdraw rules for collectively owned accounts #67

Open
4meta5 opened this issue May 14, 2020 · 0 comments
Open

bank withdraw rules for collectively owned accounts #67

4meta5 opened this issue May 14, 2020 · 0 comments

Comments

@4meta5
Copy link
Collaborator

4meta5 commented May 14, 2020

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant