Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Fixed ammCreatePool #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dandamiangow3t
Copy link

@dandamiangow3t dandamiangow3t commented Jun 1, 2024

  • Fixed ammCreatePool.ts script which was not working because of using a marketId with just a random Publickey but without being initialized.
  • Added usage of env variables in config.ts
  • Added correct FeeDestination address by env (mainnet or devnet)


export const connection = new Connection('<YOUR_RPC_URL>');
export const PROGRAMIDS = process.env.ENV == "MAINNET" ? MAINNET_PROGRAM_ID: DEVNET_PROGRAM_ID;

Copy link

Choose a reason for hiding this comment

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

export const connection = new Connection('');

LOOKUP_TABLE_CACHE,
MAINNET_PROGRAM_ID,
ProgramId,

Choose a reason for hiding this comment

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

Why Importing ProgramId ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants