*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

How to verify if a Farm uses an Anti-Whale Function (Arbitrum)

anti whale logo arbitrum

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.

Search for masterchef contract in arbitrum block explorer

Step 3. Search for the anti-whale function

Once you have opened the MasterChef contract, select the ‘Contract’ tab and then select ‘Code’.

open the code section of masterchef contract

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’.

Searching for the anti whale function through coding

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;
Updated on January 2, 2022
How do you feel about this article?

Leave a Reply

*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

EN