Skip to content

Commit

Permalink
remove unneeded drop
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider committed Nov 22, 2024
1 parent 03feed0 commit 8e8d91d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion programs/mango-v4/src/instructions/perp_purge_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pub fn perp_purge_position(ctx: Context<PerpPurgePosition>) -> Result<()> {
// Update the accounts' perp_spot_transfer statistics.
let settlement_i64 = settlement.round_to_zero().to_num::<i64>();
perp_position.perp_spot_transfers += settlement_i64;
drop(*perp_position);
account.fixed.perp_spot_transfers += settlement_i64;

// Settle quote token balance
Expand Down

0 comments on commit 8e8d91d

Please sign in to comment.