Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update place_and_take for perp and spot #154

Merged
merged 10 commits into from
Jul 22, 2024

Conversation

wphan
Copy link
Member

@wphan wphan commented Apr 9, 2024

No description provided.

@@ -143,7 +146,7 @@ def __init__(

self.tx_params = tx_params

self.tx_version = tx_version if tx_version is not None else Legacy
self.tx_version = tx_version if tx_version is not None else 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaulting to version 0 tx because of LUTs

StandardTxSender(
self.connection,
opts,
blockhash_commitment=tx_sender_blockhash_commitment if tx_sender_blockhash_commitment is not None else 'finalized')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaulting to 'finalized' for fetching blockhash because of too many 'blockhash not found' errors

remaining_accounts.append(AccountMeta(fulfillment_config.phoenix_quote_vault, is_writable=True, is_signer=False))
remaining_accounts.append(AccountMeta(self.get_spot_market_account(market_index).vault, is_writable=True, is_signer=False))
remaining_accounts.append(AccountMeta(self.get_spot_market_account(QUOTE_SPOT_MARKET_INDEX).vault, is_writable=True, is_signer=False))
remaining_accounts.append(AccountMeta(TOKEN_PROGRAM_ID, is_writable=False, is_signer=False))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soundsonacid soundsonacid merged commit 3590cd1 into master Jul 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants