pub fn add_pool(
        &self,
        admin_signer: &dyn Signer,
        pool: Pool,
    ) -> Result<Signature, FarmClientError> {
        self.pools
            .borrow_mut()
            .data
            .insert(pool.name.to_string(), pool);
        self.pool_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_pool(&admin_signer.pubkey(), pool)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Records the Pool metadata on-chain
Records the Pool metadata on-chain
Records the Pool metadata on - chain
pub fn add_pool(
        &self,
        admin_signer: &dyn Signer,
        pool: Pool,
    ) -> Result<Signature, FarmClientError> {
        self.pools
            .borrow_mut()
            .data
            .insert(pool.name.to_string(), pool);
        self.pool_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_pool(&admin_signer.pubkey(), pool)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn add_pool ( & self , admin_signer : & dyn Signer , pool : Pool , ) -> Result < Signature , FarmClientError > { self . pools . borrow_mut ( ) . data . insert ( pool . name . to_string ( ) , pool ) ; self . pool_refs . borrow_mut ( ) . reset ( ) ; let inst = self . new_instruction_add_pool ( & admin_signer . pubkey ( ) , pool ) ? ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Records the Pool metadata on-chain
Records the Pool metadata on - chain
&self
admin_signer
&dyn Signer
pool
Pool
&self
admin_signer
&dyn Signer
pool
Pool