pub fn submit_auction_bid(
    program: &Program,
    auction_id: u64,
    auction_epoch: u64,
    next_auction_epoch: u64,
    market_maker_data_account: Pubkey,
    market_maker_account_owner: Pubkey,
    bid_size: u64,
    market_maker_auction_token_account: Pubkey
) -> Instruction
Expand description

This instruction is called by the market maker to bid in an auction.

When a market maker wishes to bid in an auction, they can use this instruction to specify the parameters of their bid. Note that the first bidder in auction epoch N must ensure that auction epoch state accounts are initialized for auction epochs N and N + 1.

Arguments

  • auction_id An unsigned 64 bit integer. The auction ID used as a seed to generate the program derived address
  • auction_epoch An unsigned 64 bit integer. The integer epoch used to generate the PDA of the auction epoch account
  • next_auction_epoch An unsigned 64 bit integer. The next auction epoch number. If bidding in auction epoch N, this must be N + 1.
  • market_maker_data_account The public key of the market_maker_data_account account.
  • market_maker_account_owner The public key of the market_maker_account_owner account.
  • bid_size The size of the bid being placed into the auction. This number must strictly exceed the best bid in order for the transaction to be executed.
  • market_maker_auction_token_account The SPL token account associated with the market maker used to bid in the auctions. This account is expected to be mutable

Returns an instruction