In this guide we’ll show you how to verify if an anti-whale function is in place. This protects investors from huge selling and buying amounts of a farm’s governance token, which is usually done by whales or by the malicious developers themselves. In this particular guide, we’ll focus on the Binance Smart Chain.
Step 1. Find the MasterChef contract address #
The first thing we need to do is to find the MasterChef contract address. In this example we’ll use Diamond Finanze’s MasterChef.
You can find a farm’s MasterChef contract address either by looking at our reviewed farms list on our website rugdoc.io or by looking on the docs page of the farm. If you’re still confused on how to get the MasterChef contract address, check out this guide.
Step 2. Open the MasterChef contract #
Now that you have found the MasterChef contract address, open the Binance Smart Chain block explorer and paste the MasterChef contract address in the search bar and click the search button.
Step 3. Search for the anti-whale function #
Once you have opened the MasterChef contract, select the ‘Contract’ tab and then click on ‘Code’.
Look for the section called ‘Contract Source Code’. Click inside the code box and press Ctrl+f. In order to find the anti-whale function, use one of the following keywords: ‘Whale’, ‘Anti’ or ‘maxtransferamount’.
You can conclude from the coding below that in Diamond Finanze’s case there’s a 2.5% anti-whale function present.
// Anti Whale! Max transfer amount rate in basis points. 2.5%!
uint16 public maxTransferAmountRate = 250;
Awesome! You now know how to verify whether a farm has an anti-wahle function in place. If you found this guide helpful, make sure to share it on social media!