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

More examples #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

More examples #2

wants to merge 6 commits into from

Conversation

codewithgun
Copy link
Contributor

No description provided.

@codewithgun codewithgun marked this pull request as ready for review January 20, 2025 10:16
@codewithgun codewithgun force-pushed the feat/more-example branch 3 times, most recently from 5954ab2 to 45d509d Compare January 20, 2025 13:26
@@ -137,15 +137,15 @@ async fn test_initialize_customizable_permissionless_pool() {
test.add_program("metaplex", METAPLEX_PROGRAM_ID, None);

let jup_vault = setup_vault_from_cluster(&mut test, JUP, mock_user.pubkey()).await;
let sol_vault = setup_vault_from_cluster(&mut test, USDC, mock_user.pubkey()).await;
let usdc_vault = setup_vault_from_cluster(&mut test, USDC, mock_user.pubkey()).await;

let (mut banks_client, _, _) = test.start().await;

let pool_key = derive_customizable_permissionless_constant_product_pool_key(JUP, USDC);
let lp_mint = derive_lp_mint(pool_key);

let a_vault_lp = derive_vault_lp_key(jup_vault.key, pool_key);

Choose a reason for hiding this comment

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

  • I think we should make helper to a common lib, so integration know how to derive all accounts in meteora
  • Make some function like: get_accounts_for_initialize_customizable_permissionless_pool()
  • For SOL/USDC/USDT in mainnet, we should make lp_vault hardcoded, caused it is not PDA in mainnet (many integrators are struggled when integrating with that)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Could you review the related PRs too?
MeteoraAg/dynamic-amm-sdk#195
MeteoraAg/stake-for-fee-sdk#28
Thanks

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