Skip to content

Error processing Instruction 0: Provided owner is not allowed #165

@Fankouzu

Description

@Fankouzu

Swap 1 of 10
Market buy 9 USDC with 0.8 % slippage
Expected out amount: 0.008995502248875561 SOL
Error: SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Provided owner is not allowed
at Connection.sendEncodedTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5923:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connection.sendRawTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5880:20)
at async Connection.sendTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/connection.ts:5868:12)
at async sendAndConfirmTransaction (/Users/cuimiandashi/GitHub/phoenix-trade/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21)
at async swap (/Users/cuimiandashi/GitHub/phoenix-trade/src/swap.ts:84:16)
at async /Users/cuimiandashi/GitHub/phoenix-trade/src/swap.ts:138:7 {
logs: [
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY invoke [1]',
'Program log: Discriminant for phoenix::program::accounts::MarketHeader is 8167313896524341111',
'Program log: PhoenixInstruction::Swap',
'Program consumption: 195020 units remaining',
'Program log: Token account must be owned by the Token Program. \n' +
'src/program/validation/checkers/token_checkers.rs:51:9',
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY consumed 8242 of 200000 compute units',
'Program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY failed: Provided owner is not allowed'
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions