Update token-swap for token2

This commit is contained in:
Michael Vines 2020-08-26 22:37:50 -07:00
parent b62c2721fa
commit c671fdcd3a
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ impl State {
if *authority_info.key != token_b.owner {
return Err(Error::InvalidOwner.into());
}
if spl_token::option::COption::Some(*authority_info.key) != pool_mint.owner {
if spl_token::option::COption::Some(*authority_info.key) != pool_mint.mint_authority {
return Err(Error::InvalidOwner.into());
}
if token_b.amount == 0 {