fn internal_add_pool(&mut self, mut pool: Pool) -> u64 {
        let prev_storage = env::storage_usage();
        let id = self.pools.len() as u64;
        // exchange share was registered at creation time
        pool.share_register(&env::current_account_id());
        self.pools.push(&pool);
        self.internal_check_storage(prev_storage);
        id
    }
/// Adds given pool to the list and returns it's id.
/// If there is not enough attached balance to cover storage, fails.
/// If too much attached - refunds it back.
Adds given pool to the list and returns it's id.
If there is not enough attached balance to cover storage, fails.
If too much attached - refunds it back.
Adds given pool to the list and returns it ' s id . If there is not enough attached balance to cover storage fails . If too much attached - refunds it back .
fn internal_add_pool(&mut self, mut pool: Pool) -> u64 {
        let prev_storage = env::storage_usage();
        let id = self.pools.len() as u64;
        // exchange share was registered at creation time
        pool.share_register(&env::current_account_id());
        self.pools.push(&pool);
        self.internal_check_storage(prev_storage);
        id
    }
fn internal_add_pool ( & mut self , mut pool : Pool ) -> u64 { let prev_storage = env :: storage_usage ( ) ; let id = self . pools . len ( ) as u64 ; // exchange share was registered at creation time pool . share_register ( & env :: current_account_id ( ) ) ; self . pools . push ( & pool ) ; self . internal_check_storage ( prev_storage ) ; id }
Adds given pool to the list and returns it's id.
Adds given pool to the list and returns it ' s id .
&mut self
pool
Pool
&mut self
pool
Pool