Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fankouzu opened this issue Apr 19, 2024 · 6 comments
Open

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

Fankouzu opened this issue Apr 19, 2024 · 6 comments

Comments

@Fankouzu
Copy link

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'
]
}

@pgeth
Copy link

pgeth commented May 12, 2024

did you find a solution to this problem?

SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Provided owner is not allowed
at Connection.sendEncodedTransaction (/Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/node_modules/@solana/web3.js/lib/index.cjs.js:8050:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connection.sendRawTransaction (/Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/node_modules/@solana/web3.js/lib/index.cjs.js:8015:20)
at async Connection.sendTransaction (/Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/node_modules/@solana/web3.js/lib/index.cjs.js:8006:12)
at async sendAndConfirmTransaction (/Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/node_modules/@solana/web3.js/lib/index.cjs.js:2178:21)
at async swap (file:///Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/source/run.js:68:16)
at async file:///Users/pavelgorbunov/Documents/SCRIPTS_MARKET/phoenix_sol/source/run.js:79:9 {
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'
]
}

@MeguMan
Copy link

MeguMan commented May 15, 2024

same problem

@fitchgc
Copy link

fitchgc commented May 16, 2024

same error too

@maksympanchyshyn
Copy link

Same error, any news on this one?

@kevgithub
Copy link

Need to fetch token accounts by yourself, also you might need to create wrapped_native_account to prevent "insufficient funds" issue, phoenix's SDK is very amateur

@JingYeoh
Copy link

JingYeoh commented Jan 7, 2025

Same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants