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

FeeAccount is causing "The given account is owned by a different program than expected" #547

Open
maxsap opened this issue Nov 20, 2024 · 2 comments

Comments

@maxsap
Copy link

maxsap commented Nov 20, 2024

I am not sure if this is the best place to report this issue, I tried searching for feeAccount related issues here and did not find anything, so excuse me if I missed it.

Initially I though this has to do with ATA missing hence as you can see in the transaction above I am trying to alter the resulted transaction and add the necessary instructions.

The docs are saying Fee token account, it can be either the input mint or the output mint for ExactIn and only the input mint for ExactOut, it is derived using the seeds = ["referral_ata", referral_account, mint] and the REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3 referral contract (only pass in if you set a feeBps and make sure that the feeAccount has been created). It doesn't support Token2022 tokens.

which is not really clear to me what it means.

So the questions that I have is:

  • what are those referral accouts mentioned in the docs mean? where can I find them
  • can I specify my own address for getting the fees or can someone please point me to an example of how to do that?
@contribution-hub
Copy link

Reach out to the Support page Portal to report your request and get more details by initiating a live chat with an agent through the chat button on the platform. Access the portal here: Support Portal.

@maxsap
Note: Click the chat button to start a conversation with an agent for assistance.

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

4 participants
@maxsap @contribution-hub and others