Skip to main content

initialize_metadata

Function initialize_metadata 

Source
pub fn initialize_metadata(
    ctx: Context<'_, '_, '_, '_, InitializeMetadata<'_>>,
    name: String,
    symbol: String,
    uri: String,
) -> Result<()>
Expand description

Creates a metadata pool for the given token pair and the initial price

ยงArguments

  • ctx- The context of accounts
  • init_amount_0 - the initial amount_0 to deposit
  • init_amount_1 - the initial amount_1 to deposit
  • open_time - the timestamp allowed for swap