In this article we explain how you can verify if a farm has an anti-whale function. This extra layer of protection prevents pump and dumps by limiting the number of tokens to be purchased and sold per transaction.
Step 1. Find the MasterChef contract address
First, we need to find the MasterChef contract address. In this example we’ll use ArbiKiwi’s MasterChef contract.
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 documents page of a farm. This guide explains how to find MasterChef contracts in more detail.
Step 2. Open the MasterChef contract
Now that you have found the MasterChef contract address, open the Arbitrum block explorer and paste the MasterChef contract address in the search bar and hit enter.
Step 3. Search for the anti-whale function
Once you have opened the MasterChef contract, select the ‘Contract’ tab and then select ‘Code’.
Look for the section called ‘Contract Source Code’. 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 coding below that in ArbiKiwi’s case, there’s a 100% anti-whale function present. This means that the anti-whale function is enabled, but it there are no restriction to the number of tokens that can be swapped.
// Max transfer amount rate in basis points. Eg: 50 - 0.5% of total supply (default the anti whale feature is turned off - set to 10000.)
uint16 public maxTransferAmountRate = 10000;
// The operator can only update the Anti Whale Settings
address private _operator;