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.
I am trying to add a fee on top of the swap.
I am using the v6 swap API and specifying the feeAccount parameter which is the public key of the wallet receiving the fees
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?
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.
feeAccount
parameter which is the public key of the wallet receiving the feesInitially 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: