pub struct TakerSlots {
pub user: Vec<u8>,
pub input_token_account: Vec<u8>,
pub output_token_account: Vec<u8>,
pub derived: Vec<DerivedAccount>,
pub fixed_user: Option<Address>,
}Expand description
The account slots a probe rewrites, as indices into instruction.accounts.
Each role is a list because one instruction can name the same account more than once: a router’s own swap instruction carries the taker’s token accounts for itself and again inside the venue’s account run, and rewriting only the first leaves the venue pointed at the exemplar’s accounts. Every role also takes a bare index, decoded as a one-element list.
Fields§
§user: Vec<u8>Every slot rewritten to the probe’s taker (see fixedUser). Non-empty; each must be a
signer.
input_token_account: Vec<u8>Rewritten to the probe taker’s associated account for inputMint and seeded with the
trade. Non-empty; each must be writable.
output_token_account: Vec<u8>Rewritten to the probe taker’s associated account for outputMint and seeded to zero, so
what lands there is the fill. Non-empty; each must be writable.
derived: Vec<DerivedAccount>Accounts a venue derives from the taker, re-derived for each probe’s taker.
fixed_user: Option<Address>The taker every probe fires as, base58, for a venue that quotes only for the taker it was validated as; absent, a requoted route fires as the probe taker and any other as the original swap’s fee payer.