This pull request implements process_send_take (previously only a placeholder function definition). Process_send_take does not require an open orders account or settlement of funds for the user - rather, it immediately deposits funds into the user account if there is a counterparty in the orderbook.
Fixes / Changes
Added vault signer as an account to the SendTake MarketInstruction.
Uses system_program as open orders account ID to bypass event queue in new_bid and new_ask.
Directly calls spl_token::instruction::transfer and send_from_vault functions in process_send_take rather than in settle_funds.
Description
This pull request implements process_send_take (previously only a placeholder function definition). Process_send_take does not require an open orders account or settlement of funds for the user - rather, it immediately deposits funds into the user account if there is a counterparty in the orderbook.
Fixes / Changes
How Has This Been Tested?
What needs to be tested further?