update comment
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
59d28c97a1
commit
6f5f53c1d8
|
@ -147,7 +147,7 @@ pub fn flash_loan_begin<'key, 'accounts, 'remaining, 'info>(
|
||||||
MangoError::SomeError
|
MangoError::SomeError
|
||||||
);
|
);
|
||||||
|
|
||||||
// check that the same vaults are passed
|
// check that the same vaults and token accounts are passed
|
||||||
let begin_accounts = &ctx.remaining_accounts[num_loans..];
|
let begin_accounts = &ctx.remaining_accounts[num_loans..];
|
||||||
let end_accounts = &ix.accounts[ix.accounts.len() - 2 * num_loans..];
|
let end_accounts = &ix.accounts[ix.accounts.len() - 2 * num_loans..];
|
||||||
for (begin_account, end_account) in begin_accounts.iter().zip(end_accounts.iter()) {
|
for (begin_account, end_account) in begin_accounts.iter().zip(end_accounts.iter()) {
|
||||||
|
|
Loading…
Reference in New Issue