FillOrderTransactionArgs: { dflow: Program<any>; fillAmount: BN; fillPrice: BN; isYTokenAccountUninitialized: boolean; marketMakerAccountOwner: PublicKey; marketMakerDataAccount: PublicKey; marketMakerYTokenAccount: PublicKey; nonce: BN; orderDetails: string; retailAccountOwner: PublicKey; retailDataAccount: PublicKey; retailYTokenAccount: PublicKey; vaultMetaAccountAuctionEpoch: BN; vaultMetaAccountAuctionId: BN; vaultMetaAccountFillNonce: BN; xMint: PublicKey; yMint: PublicKey }

Param

The public key of the retail_account_owner account.

Param

An unsigned 64 bit integer. The nonce used as a seed to generate the PDA for the vault meta account, taken from the retail trader's account when the order in question was initially created.

Param

The unsigned integer field named fill_nonce in the vault_meta_account account. The fill nonce taken from the vault meta account at fill time, and used to generate the PDA for the fill record account.

Param

The unsigned integer field named auction_id in the vault_meta_account account.

Param

The unsigned integer field named auction_epoch in the vault_meta_account account.

Param

The public key of the market_maker_account_owner account.

Param

The public key of the y_mint account.

Param

The unencrypted order details sent by the retail trader.

Param

The fill amount, referring to the amount of tokens to be received by the retail trader in the trade.

Param

The price, quoted in the quote currency for the given pair, at which the fill is being completed.

Param

The retail data account holds state specific to the retail trader. This account is expected to be mutable

Param

The account storing state specific to the market maker. This account must be owned by the DFlow program, and this account must be initialized by calling the initialize market maker instruction. This account is expected to be mutable

Param

The SPL mint account associated with the token that is sold by the retail trader during the swap.

Param

The SPL token account associated with the market maker, and which sends the asset being received by the retail trader during a trade. This account is expected to be mutable

Param

The SPL token account associated with the retail trader, and which receives the asset being sent by the market maker during a trade. This account is expected to be mutable. This account is the retail_y_token_account's associated token account for the mint of the asset sent by the market maker

Param

True if and only if the retail trader's Y token account is uninitialized

Type declaration

  • dflow: Program<any>
  • fillAmount: BN
  • fillPrice: BN
  • isYTokenAccountUninitialized: boolean
  • marketMakerAccountOwner: PublicKey
  • marketMakerDataAccount: PublicKey
  • marketMakerYTokenAccount: PublicKey
  • nonce: BN
  • orderDetails: string
  • retailAccountOwner: PublicKey
  • retailDataAccount: PublicKey
  • retailYTokenAccount: PublicKey
  • vaultMetaAccountAuctionEpoch: BN
  • vaultMetaAccountAuctionId: BN
  • vaultMetaAccountFillNonce: BN
  • xMint: PublicKey
  • yMint: PublicKey

Generated using TypeDoc