Function dflow_sdk::client::instructions::claim_vote_reward
source · [−]pub fn claim_vote_reward(
program: &Program,
retail_account_owner: Pubkey,
nonce: u64,
fill_nonce: u16,
arbiter: Pubkey,
vault_meta_account_auction_id: u64,
vault_meta_account_auction_epoch: u64,
arbiter_bid_token_account: Pubkey,
arbiter_token_account: Pubkey
) -> Instruction
Expand description
This instruction is used to claim back the tokens staked during a fill vote by an arbiter.
If voting with the majority, the arbiter will receieve a payment from the network along with their original vote. However, if the arbiter did not vote in the majority on the fill, they will not receive their tokens back.
Arguments
retail_account_owner
The public key of the retail_account_owner account.nonce
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.fill_nonce
An unsigned 16 bit integer. The fill nonce taken from the vault meta account at fill time, and used to generate the PDA for the fill record account.arbiter
The public key of the arbiter account.vault_meta_account_auction_id
The unsigned integer field named auction_id in the vault_meta_account account.vault_meta_account_auction_epoch
The unsigned integer field named auction_epoch in the vault_meta_account account.arbiter_bid_token_account
The SPL token account associated with the arbiter used to receive a payment from the network, with the same mint as the token accounts used by market makers to bid in the associated auction. This account is expected to be mutablearbiter_token_account
The SPL token account associated with the arbiter used to vote on the fairness of the fill by the market maker. This account is expected to be mutable
Returns an instruction