- Query and Auto compound following threshold for cake-cake pool
Environment is defined in .env
or using command-line argument, -dev
in case using the binary file. Default is production
.
- docker
- Clone pancake contract into this repository link
- Inside
pancake-farm
folder, add this config totruffle-config.js
plugins: ["@chainsafe/truffle-plugin-abigen"]
- Also add this command in
package.json
, underscripts
section
"go:interface": "truffle compile && truffle run abigen MasterChef"
-
Run
yarn install
-
Run
yarn go:interface
-
Go back to project root by
cd ..
-
Run
docker run --rm -v <path-to-project>/auto-compound/pancake-farm/abigenBindings:/sources -v <path-to-project>/auto-compound/contracts:/output ethereum/client-go:alltools-latest abigen --bin=/sources/bin/MasterChef.bin --abi=/sources/abi/MasterChef.abi --pkg=masterChef --out=/output/MasterChef.go
- Run
sudo chmod 755 ./contracts/MasterChef.go