Skip to content

Add Push Meteora DBC/Dammv2 Swap Instruction Functionality #4

@timrolsh

Description

@timrolsh
  • Use Raydium Launchpad as a reference, as it is also an anchor based protocol that uses 8 byte instruction discriminators.
  • make a “push_meteora_dbc_swap_instruction” file containing that method with the same name in a meteora folder just like in raydium launchpad for example
  • add a call to that function into the make_swap_instructions_from_swap_config file, thats prob not whats its fully called but check who is calling the push raydium launchpad swap instruction function and youll see it calling all other protocols there
  • 3 components of all Solana instructions (you are making one) is program id (constant meteora dbc/dammv2 in our case), instruciton data, and ordered list of instruction accounts. Consult the IDLs in the Central IDLs folder to see the exact order. What you need should be in the Meteora Dammv2 and MeteoraDbc types found in central.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions