/// Given a list of "Early Contributor Tokenholder" accounts, create each
/// account's neuron set and add a mapping from the account's address to
/// these neurons in `gtc_neurons`
Given a list of "Early Contributor Tokenholder" accounts, create each
account's neuron set and add a mapping from the account's address to
these neurons in `gtc_neurons`
Given a list of " Early Contributor Tokenholder " accounts create each account ' s neuron set and add a mapping from the account ' s address to these neurons in ` gtc_neurons `
pub fn add_ect_neurons(&mut self, ect_accounts: &[(&str, u32)]) {
        let ect_months_to_release = self
            .ect_months_to_release
            .expect("ect_months_to_release must be set");
        for (address, icpts) in ect_accounts.iter() {
            self.total_alloc += *icpts;
            let icpts = Tokens::from_tokens(*icpts as u64).unwrap();
            let ect_stakes = evenly_split_e8s(icpts.get_e8s(), ect_months_to_release);
            let aging_since_timestamp_seconds = self.aging_since_timestamp_seconds;
            let mut ect_neurons = make_neurons(
                address,
                INVESTOR_TYPE_ECT,
                ect_stakes,
                self.get_rng(None),
                aging_since_timestamp_seconds,
            );
            let entry = self.gtc_neurons.entry(address.to_string()).or_default();
            entry.append(&mut ect_neurons);
        }
    }
pub fn add_ect_neurons ( & mut self , ect_accounts : & [ ( & str , u32 ) ] ) { let ect_months_to_release = self . ect_months_to_release . expect ( " " ) ; for ( address , icpts ) in ect_accounts . iter ( ) { self . total_alloc += * icpts ; let icpts = Tokens :: from_tokens ( * icpts as u64 ) . unwrap ( ) ; let ect_stakes = evenly_split_e8s ( icpts . get_e8s ( ) , ect_months_to_release ) ; let aging_since_timestamp_seconds = self . aging_since_timestamp_seconds ; let mut ect_neurons = make_neurons ( address , INVESTOR_TYPE_ECT , ect_stakes , self . get_rng ( None ) , aging_since_timestamp_seconds , ) ; let entry = self . gtc_neurons . entry ( address . to_string ( ) ) . or_default ( ) ; entry . append ( & mut ect_neurons ) ; } }
Given a list of "Early Contributor Tokenholder" accounts, create each
account's neuron set and add a mapping from the account's address to
these neurons in `gtc_neurons`
Given a list of " Early Contributor Tokenholder " accounts create each account ' s neuron set and add a mapping from the account ' s address to these neurons in ` gtc_neurons `
&mut self
ect_accounts
&[(&str, u32)]