diff --git a/farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs b/farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs index d97eb263a..057c59206 100644 --- a/farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs +++ b/farm-staking/farm-staking-proxy/src/proxy_actions/claim.rs @@ -30,7 +30,7 @@ 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) } @@ -38,7 +38,7 @@ pub trait ProxyClaimModule: fn claim_dual_yield_common( &self, orig_caller: ManagedAddress, - payment: &EsdtTokenPayment, + payment: EsdtTokenPayment, ) -> ClaimDualYieldResult { let dual_yield_token_mapper = self.dual_yield_token(); dual_yield_token_mapper.require_same_token(&payment.token_identifier); diff --git a/farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs b/farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs index 218a42036..12d8b257d 100644 --- a/farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs +++ b/farm-staking/farm-staking-proxy/src/proxy_actions/external_interaction.rs @@ -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); @@ -98,7 +98,7 @@ pub trait ProxyExternalInteractionsModule: dual_yield_token_mapper.require_same_token(&payment.token_identifier); let attributes: DualYieldTokenAttributes = - 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