Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Nov 3, 2024
1 parent 5ef4b70 commit 17b9601
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ pub trait ProxyClaimModule:

let payment = self.call_value().single_esdt();

let claim_result = self.claim_dual_yield_common(orig_caller, &payment);
let claim_result = self.claim_dual_yield_common(orig_caller, payment);

claim_result.send_and_return(self, &caller)
}

fn claim_dual_yield_common(
&self,
orig_caller: ManagedAddress,
payment: &EsdtTokenPayment,
payment: EsdtTokenPayment,
) -> ClaimDualYieldResult<Self::Api> {
let dual_yield_token_mapper = self.dual_yield_token();
dual_yield_token_mapper.require_same_token(&payment.token_identifier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub trait ProxyExternalInteractionsModule:
let original_owner = self.get_underlying_farm_position_original_owner(&payment);
self.require_user_whitelisted(&original_owner, &caller);

let claim_result = self.claim_dual_yield_common(original_owner.clone(), &payment);
let claim_result = self.claim_dual_yield_common(original_owner.clone(), payment);

self.send_payment_non_zero(&original_owner, &claim_result.lp_farm_rewards);
self.send_payment_non_zero(&original_owner, &claim_result.staking_farm_rewards);
Expand Down Expand Up @@ -98,7 +98,7 @@ pub trait ProxyExternalInteractionsModule:
dual_yield_token_mapper.require_same_token(&payment.token_identifier);

let attributes: DualYieldTokenAttributes<Self::Api> =
self.get_attributes_as_part_of_fixed_supply(&payment, &dual_yield_token_mapper);
self.get_attributes_as_part_of_fixed_supply(payment, &dual_yield_token_mapper);

let lp_farm_token_id = self.lp_farm_token_id().get();
let attributes = self
Expand Down

0 comments on commit 17b9601

Please sign in to comment.