In this guide we’ll focus on how you can verify whether a farm on the Polygon network has implemented an anti-whale function or not. Anti-whale functions play an important role in protecting investors against sudden (governance) token pump and dumps, which influences the price of the token.
Step 1. Find the MasterChef contract address #
First you need to find the MasterChef contract address of the farm you want to verify. You can usually find this contract address either on the farm’s doc page or on our website rugdoc.io. No luck with finding the MasterChef contract address? Please read this guide.
Step 2. Open the MasterChef contract #
Once you have found the MasterChef contract address, open the Polygon block explorer and paste the MasterChef contract address in the search bar and hit enter. In this example we’ll use Kavian Finance’s MasterChef.
Step 3. Search for the anti-whale function #
Now that you have opened the MasterChef contract, select the ‘Contract’ tab and then click on ‘Code’.
Scroll down to the ‘Contract Source Code’ section. Click inside the code box and press Ctrl+f. To find the anti-whale function, use one of the following keywords: ‘Whale’, ‘Anti’ or ‘maxtransferamount’.
You can conclude from the code that, in Kavian Finance’s case, there’s a 0.5% (with a max of 1%) anti-whale function present.
// Max transfer amount rate in basis points. (default is 1% of total supply)
uint16 public maxTransferAmountRate = 100;
// Min value of the max transfer amount rate. (0.5%)
uint16 public constant maxTransferAmountRateMinValue = 50;
You now know how to verify whether a farm on the Polygon network has an anti-whale function in place! That wasn’t too hard, right? If you found this guide helpful, make sure to share it on social media!