In this article you will learn how to check if the number of pools in the contract are equal to the number of pools shown on the website of a farm. It is possible for an unscrupulous developer to have a hidden pool that they monopolise themselves – thereby stealing yield from unsuspecting users.
In order to check the number of pools you need to know the MasterChef contract address. If you don’t know yet where to get this address, please have a look on this article first: How to find a MasterChef contract
Step 1: Query the contract #
First you have to read the MasterChef contract by clicking on the “Read Contract” tab in the explorer. We’ll use este contrato Masterchef como ejemplo.
Then you scroll down to the section poolLength, which tells you the number of the pools in the contract.
Step 2: Compare the poolLength with the shown pools #
Now that you know the real amount of pools in the contract you have to count the pools which are shown on the website of the farm. Ensure that you include the “Inactive” pools and that the page does show all pools and not only your staked pools. Count all pools and farms as both are pools from contract perspective.
If the numbers are equal you know that there is no hidden pool at the current time you checked. Be aware that pools can be added later by the developer, so this check is only valid for a short period of time.
Know you know how to check if all pools are shown on the website, which is relevant in order ensure that the developers does not own an exclusive pool with a high multiplier.