I need a contract that checks the token balance and if enough sell them

i need a token, which checks if the user who triggers the function have enough x(token) and if yes sell them to pancakeswap, but i need the function to stay static(the same)

1 Like

You will have to to find someone who can create a contract for you that does this. There is no off the shelf solution that i know of that does this.
Also, what do you mean stay static? Contracts are by default not changeable unless you use a proxy contract.

1 Like

That's unnecessarily complex. You want a script that checks the wallet's balance and realize the transaction once the condition is met. Python or JavaScript could work