pub fn add_pair_to_auction(
    program: &Program,
    auction_id: u64,
    base_currency: Pubkey,
    quote_currency: Pubkey,
    auction_owner: Pubkey,
    base_oracle: Pubkey,
    quote_oracle: Pubkey
) -> Instruction
Expand description

This instruction adds a currency pair to an existing auction.

Only a certain number of token pairs are allowed to exist in an auction and an error is thrown if this instruction is called when the token pairs count is saturated

Arguments

  • auction_id An unsigned 64 bit integer. The auction ID used as a seed to generate the program derived address
  • base_currency The public key of the base_currency account.
  • quote_currency The public key of the quote_currency account.
  • auction_owner The public key of the auction_owner account.
  • base_oracle The Pyth price oracle associated with the base token in a currency pair.
  • quote_oracle The Pyth price oracle associated with the quote token in a currency pair.

Returns an instruction