warp-id / solana-trading-bot

Solana Trading Bot - Beta
Microsoft Public License
1.57k stars 727 forks source link

Buys but does not sell #40

Closed Petttter closed 8 months ago

Petttter commented 8 months ago

Displays an error, but buys and does not sell. Zrzut ekranu 2024-02-26 192348 AUTO_SELL true SELL_DELAY 3000

what am i doing wrong? ;)

SwatX18 commented 8 months ago

It's not your fault the "sell" function is broken. Try to use createAssociatedTokenAccountIdempotentInstruction instead createCloseAccountInstruction.

Petttter commented 8 months ago

To nie twoja wina, że funkcja „sprzedaj” jest zepsuta. Spróbuj użyć createAssociatedTokenAccountIdempotentInstruction zamiast createCloseAccountInstruction.

How to do it sir?

SwatX18 commented 8 months ago

To nie twoja wina, że funkcja „sprzedaj” jest zepsuta. Spróbuj użyć createAssociatedTokenAccountIdempotentInstruction zamiast createCloseAccountInstruction.

How to do it sir?

https://github.com/fdundjer/solana-sniper-bot/issues/22#issuecomment-1924554619

robert1223derty commented 8 months ago

Same question, I don't know how to do

SwatX18 commented 8 months ago

Same question, I don't know how to do

I gave you the solution, I can't help you more. You need to understand programming to do this.

It's a simple copy pasta...

Commando2024 commented 8 months ago

It's not your fault the "sell" function is broken. Try to use createAssociatedTokenAccountIdempotentInstruction instead createCloseAccountInstruction.

This did not fix the issue, any other advice?

fdundjer commented 8 months ago

@Commando2024 @Petttter I'll push the fix for this.