mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
swap authority
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user