In this guide, we will demonstrate how to verify if a farm on Fantom Network has a transfer tax function in place for its governance token.
Step 1. Find the MasterChef contract address #
First of all, we need to find the MasterChef contract address. In this example, we will use Smurf Money (Fantom)’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, check out this guide.
Step 2. Open the MasterChef contract #
Now, you found the MasterChef contract address, open the Fantom Blockchain Explorer, and paste the MasterChef address in the search bar and click the search button.
Step 3. Look for the transfer tax function #
Open the contract and click on the “Contract” tab. Then click on “Code”.
Scroll down to the “Contract Source Code” section. Click on the code box and press Ctrl+f and search one of the following keywords: “tax”, “transfer” or “transfertax”.
Smurf Money’s MasterChef shows that there is a default of 4% transfer tax present for its governance token, with a maximum of 10%. Below is the highlighted code:
// Transfer tax rate in basis points. (default 4.5%)
uint16 public transferTaxRate = 400;
// Burn Fee, in percent of transferTaxRate.
uint16 public burnFee = 20;
// Liq Fee, in percent of transferTaxRate.
uint16 public liqFee = 100 - burnFee;
// Max transfer tax rate: 10%.
uint16 public constant maxTaxRate = 1000;
Awesome! You now know how to verify if a farm has implemented a transfer tax function for its governance token. Please share this article if you found this guide helpful!