pub fn new_instruction_governance_tokens_withdraw(
        &self,
        wallet_address: &Pubkey,
    ) -> Result<Instruction, FarmClientError> {
        let dao_program = self.get_program_id(DAO_PROGRAM_NAME)?;
        let realm_address = get_realm_address(&dao_program, DAO_PROGRAM_NAME);
        let dao_token = self.get_token(DAO_TOKEN_NAME)?;
        let token_addr = self.get_associated_token_address(wallet_address, DAO_TOKEN_NAME)?;

        let inst = dao_instruction::withdraw_governing_tokens(
            &dao_program,
            &realm_address,
            &token_addr,
            wallet_address,
            &dao_token.mint,
        );

        Ok(inst)
    }
/// Creates a new instruction for tokens withdrawal from the farms realm
Creates a new instruction for tokens withdrawal from the farms realm
Creates a new instruction for tokens withdrawal from the farms realm
pub fn new_instruction_governance_tokens_withdraw(
        &self,
        wallet_address: &Pubkey,
    ) -> Result<Instruction, FarmClientError> {
        let dao_program = self.get_program_id(DAO_PROGRAM_NAME)?;
        let realm_address = get_realm_address(&dao_program, DAO_PROGRAM_NAME);
        let dao_token = self.get_token(DAO_TOKEN_NAME)?;
        let token_addr = self.get_associated_token_address(wallet_address, DAO_TOKEN_NAME)?;
        let inst = dao_instruction::withdraw_governing_tokens(
            &dao_program,
            &realm_address,
            &token_addr,
            wallet_address,
            &dao_token.mint,
        );
        Ok(inst)
    }
pub fn new_instruction_governance_tokens_withdraw ( & self , wallet_address : & Pubkey , ) -> Result < Instruction , FarmClientError > { let dao_program = self . get_program_id ( DAO_PROGRAM_NAME ) ? ; let realm_address = get_realm_address ( & dao_program , DAO_PROGRAM_NAME ) ; let dao_token = self . get_token ( DAO_TOKEN_NAME ) ? ; let token_addr = self . get_associated_token_address ( wallet_address , DAO_TOKEN_NAME ) ? ; let inst = dao_instruction :: withdraw_governing_tokens ( & dao_program , & realm_address , & token_addr , wallet_address , & dao_token . mint , ) ; Ok ( inst ) }
Creates a new instruction for tokens withdrawal from the farms realm
Creates a new instruction for tokens withdrawal from the farms realm
&self
wallet_address
&Pubkey
&self
wallet_address
&Pubkey