Convert a NodeJS script to Golang
Budget: $30 – $250 USD
I need a Golang expert to convert a NodeJS Frontrun script into Golang.
The script is in Github: https://github.com/a04512/Front-RunBot/tree/main/pancake
Note:
1) Forget about UniswapV2FrontBot.sol and bot.js. I do not need it.
2) Basically I only need 3 files:
a) env file
b) constants file
c) frontrun script - ignore the setFrontBot function
3) In frontrun script, enhance the script to frontrun all tokens instead of just one token. Way to do it is simple, just remove the part where it check for "out_token_address" is the same with the one set in env file. And then, for every transaction getting from the Tx mempool, check the pool info and check whether it is more than the attack amount. If yes, return true to the main handleTransaction function and perform a swap.
The script is in Github: https://github.com/a04512/Front-RunBot/tree/main/pancake
Note:
1) Forget about UniswapV2FrontBot.sol and bot.js. I do not need it.
2) Basically I only need 3 files:
a) env file
b) constants file
c) frontrun script - ignore the setFrontBot function
3) In frontrun script, enhance the script to frontrun all tokens instead of just one token. Way to do it is simple, just remove the part where it check for "out_token_address" is the same with the one set in env file. And then, for every transaction getting from the Tx mempool, check the pool info and check whether it is more than the attack amount. If yes, return true to the main handleTransaction function and perform a swap.