Skip to content

Instantly share code, notes, and snippets.

@itoonx
Created May 28, 2021 14:39
Show Gist options
  • Save itoonx/df746a4d1755821eda11c3c1be94d852 to your computer and use it in GitHub Desktop.
Save itoonx/df746a4d1755821eda11c3c1be94d852 to your computer and use it in GitHub Desktop.
const pools = await Utils.multiCall([...Array(parseInt(poolLength)).keys()].map(id => {
return {
pid: id.toString(),
poolInfo: new Web3EthContract(abi, masterChef).methods[poolInfoFunctionName](id),
};
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment