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

Spl base token #2

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

Spl base token #2

wants to merge 9 commits into from

Conversation

Mathieu-Be
Copy link
Collaborator

@Mathieu-Be Mathieu-Be commented Nov 20, 2024

New method to create a market with a SPL base token. Diff between the two methods: https://www.diffchecker.com/AWSJ1AKI/.

This new instruction requires an additional metadata account, PDA from the Metaplex Metadata program (metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s) with seeds {"metadata", metadata_program_id, base_token_mint_public_key}. Also needs to include the Rent and Metadata programs.

PR also includes:

  • loosening user token account constraints on swap
  • return values on staking reward claim and vesting release for easier simulations

token_mill.json

@Mathieu-Be Mathieu-Be marked this pull request as ready for review November 21, 2024 13:58
pub creator: Signer<'info>,

pub system_program: Program<'info, System>,
pub rent: Sysvar<'info, Rent>,

Choose a reason for hiding this comment

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

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