Skip to content

Remove unused get_progress_client function in learn-token contract #273

Description

@DeFiVC

What

The get_progress_client function in chainlearn-contracts/contracts/learn-token/src/lib.rs is defined but never called anywhere in the codebase.

Why

Dead code increases maintenance burden and can confuse developers about the codebase's actual dependencies.

Scope

Remove the unused function at lines 587-590.

Acceptance Criteria

  • get_progress_client function is removed
  • No other code references this function
  • cargo test passes
  • cargo build --release succeeds

Technical Context

  • File: chainlearn-contracts/contracts/learn-token/src/lib.rs:587-590
  • Function:
    fn get_progress_client(env: &Env) -> ProgressTrackerClient<'_> {
        let address = storage::get_progress_tracker(env);
        ProgressTrackerClient::new(env, &address)
    }
  • Note: claim_reward uses env.invoke_contract directly instead of this function

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programlow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions