variable rewards

This commit is contained in:
Hardhat Chad
2025-06-12 15:38:59 -07:00
parent a4719853f2
commit ea415c36e6
12 changed files with 148 additions and 21 deletions

View File

@@ -100,7 +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.authority = *signer_info.key;
swap_result.block_id = block.id;
swap_result.log_return();