swap authority

This commit is contained in:
Hardhat Chad
2025-06-10 11:54:46 -07:00
parent 5350eae0b0
commit a4719853f2
6 changed files with 10 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
// Update market state.
let mut swap_result = market.swap(amount, direction, precision, clock)?;
swap_result.authority = signer_info.key.to_bytes();
swap_result.block_id = block.id;
swap_result.log_return();