Open oocrypticoo opened 4 months ago
When setting export const CONSTANT_PRODUCT_DEFAULT_TRADE_FEE_BPS = 100; in constants.ts
I get the following error:
Simulation failed. Message: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x7d6. Logs: [ "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success", "Program Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB invoke [1]", "Program log: Instruction: InitializePermissionlessPoolWithFeeTier", "Program log: AnchorError caused by account: pool. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated.", "Program log: Left:", "Program log: 78oFV3zWNqAVkXsyhKe33MwAR9aMfJrdc5Rniwf8WyKX", "Program log: Right:", "Program log: 7hYkxar1zaukmptgNb7WeEyEPfeD5fPCceefkmQCR21j", "Program Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB consumed 30006 of 1298941 compute units", "Program Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB failed: custom program error: 0x7d6" ].
export const CONSTANT_PRODUCT_DEFAULT_TRADE_FEE_BPS = 25; works fine
0.25% SUCCESS:
1% FAIL:
Which environment are you testing on? I just tested on local and devnet, and it works.
Test: https://github.com/mercurial-finance/mercurial-dynamic-amm-sdk/commit/bced08b0385cd44e47ead9229bd279995d2aefa1
Devnet tx: https://explorer.solana.com/tx/2LNhztMQn1cy52kQVijW6FY67BDB3TNhPM8qo45FVa9jUmsxCnY4iJbCmQT68YHz3qLKUZTjXJasnVenswxYc1fV?cluster=devnet
Could you try again? Maybe the devnet program was out of sync when you tested it.
When setting export const CONSTANT_PRODUCT_DEFAULT_TRADE_FEE_BPS = 100; in constants.ts
I get the following error:
export const CONSTANT_PRODUCT_DEFAULT_TRADE_FEE_BPS = 25; works fine
0.25% SUCCESS:
1% FAIL: