diff --git a/contracts/consumer/converter/src/ibc.rs b/contracts/consumer/converter/src/ibc.rs index 3f4209e8..93e3c903 100644 --- a/contracts/consumer/converter/src/ibc.rs +++ b/contracts/consumer/converter/src/ibc.rs @@ -258,7 +258,7 @@ pub fn ibc_packet_receive( contract.transfer_rewards(deps.as_ref(), recipient.clone(), rewards.clone())?; let event = Event::new("mesh-transfer-rewards") .add_attribute("recipient", &recipient) - .add_attribute("rewards", &rewards.amount.to_string()); + .add_attribute("rewards", rewards.amount.to_string()); let ack = ack_success(&TransferRewardsAck {})?; IbcReceiveResponse::new() .set_ack(ack) diff --git a/contracts/provider/external-staking/src/contract.rs b/contracts/provider/external-staking/src/contract.rs index 2d565016..93d3ee5d 100644 --- a/contracts/provider/external-staking/src/contract.rs +++ b/contracts/provider/external-staking/src/contract.rs @@ -515,7 +515,7 @@ impl ExternalStakingContract<'_> { for ((user, validator), stake) in stakes.iter() { let mut new_stake = stake.clone(); - let amount = new_stake.stake.low().clone(); + let amount = new_stake.stake.low(); let unbond = PendingUnbond { amount, release_at: env.block.time, @@ -525,7 +525,7 @@ impl ExternalStakingContract<'_> { let mut distribution = self .distribution - .may_load(deps.storage, &validator)? + .may_load(deps.storage, validator)? .unwrap_or_default(); new_stake .points_alignment