0

I am quite beginner to solidity, trying to learn smart contracts.

so here in this code:

bool autoLiquifyEnabled = true;
uint256 liquidityFee = 600;
uint256 liquidityFeeAccumulator;

uint256 buybackFee = 0;
uint256 reflectionFee = 400;
uint256 marketingFee = 500;
uint256 devFee = 0;
uint256 totalFee = 1000;
uint256 feeDenominator = 10000;

if I want let's say to set 10% fees, 2% to lp, 4% marketing, and 4% reflections, should I do it this way?

bool autoLiquifyEnabled = true;
uint256 liquidityFee = 200;
uint256 liquidityFeeAccumulator;

uint256 buybackFee = 0;
uint256 reflectionFee = 400;
uint256 marketingFee = 400;
uint256 devFee = 0;
uint256 totalFee = 1000;
uint256 feeDenominator = 10000;

and can someone explain what each line do there? Thanks!

1
  • 1
    Please edit the question and include the relevant smart contract source code and background information on your question why are you doing this and what have you tried so far. Otherwise it is hard to explain. Nov 17 '21 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.