Skip to content

Commit

Permalink
flamenco: fix source_free_lamports calculation in move lamports
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhargava-jump committed Aug 2, 2024
1 parent ea9180c commit 102e6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flamenco/runtime/program/fd_stake_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ move_lamports(fd_exec_instr_ctx_t const * ctx,
break;
}
case merge_kind_inactive: {
source_free_lamports = fd_ulong_sat_sub ( destination_account->const_meta->info.lamports,
source_free_lamports = fd_ulong_sat_sub ( source_merge_kind.inner.inactive.active_stake,
source_merge_kind.inner.inactive.meta.rent_exempt_reserve );
break;
}
Expand Down

0 comments on commit 102e6c1

Please sign in to comment.