坚固的令牌地址

发布于 2025-02-07 20:58:58 字数 1412 浏览 1 评论 0原文

contract Trail is IBEP20, Auth {
    using SafeMath for uint256;

    address WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;
    address routerAddress = 0x; // MAINNET

    string constant _name = "";
    string constant _symbol = "";
    uint8 constant _decimals = 9;

    uint256 _totalSupply = 10000000000000000 * (10 ** _decimals);
    uint256 public _maxTxAmount = _totalSupply; 
    uint256 public _maxWalletSize = (_totalSupply * 1) / 100; 

    mapping (address => uint256) _balances;
    mapping (address => mapping (address => uint256)) _allowances;

    mapping (address => bool) isFeeExempt;
    mapping (address => bool) isTxLimitExempt;
    mapping (address => bool) isTimelockExempt;
    mapping (address => bool) public isBot;

    uint256 liquidityFee = 1;
    uint256 devFee = 2; 
    uint256 marketingFee = 5;
    uint256 totalFee = 8;
    uint256 feeDenominator = 100;
    uint256 public _sellMultiplier = 1;
    
    address public marketingFeeReceiver = 0x;
    address public devFeeReceiver = msg.sender;

    IDEXRouter public router;
    address public pair;

    uint256 public launchedAt;
}

“ Routeraddress”的含义是什么?而且“ MarketingFeereCeiver”也是硬币的所有者,对吗?我在BSCSCAN新验证的BSCSCAN上看到了此代码,我试图理解,但我在加密货币的新手。有人帮忙吗?

contract Trail is IBEP20, Auth {
    using SafeMath for uint256;

    address WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;
    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;
    address routerAddress = 0x; // MAINNET

    string constant _name = "";
    string constant _symbol = "";
    uint8 constant _decimals = 9;

    uint256 _totalSupply = 10000000000000000 * (10 ** _decimals);
    uint256 public _maxTxAmount = _totalSupply; 
    uint256 public _maxWalletSize = (_totalSupply * 1) / 100; 

    mapping (address => uint256) _balances;
    mapping (address => mapping (address => uint256)) _allowances;

    mapping (address => bool) isFeeExempt;
    mapping (address => bool) isTxLimitExempt;
    mapping (address => bool) isTimelockExempt;
    mapping (address => bool) public isBot;

    uint256 liquidityFee = 1;
    uint256 devFee = 2; 
    uint256 marketingFee = 5;
    uint256 totalFee = 8;
    uint256 feeDenominator = 100;
    uint256 public _sellMultiplier = 1;
    
    address public marketingFeeReceiver = 0x;
    address public devFeeReceiver = msg.sender;

    IDEXRouter public router;
    address public pair;

    uint256 public launchedAt;
}

What is the "routerAddress" meaning? And also "marketingFeeReceiver" is the owner of the coin, right? I saw this code on bscscan newly verified, I'm trying to understand but I'm newbie at cryptocurrency. Anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

池予 2025-02-14 20:58:58

什么是“ Routeraddress”的意思?

RouterAddress是一个变量,其中将其内部插入有关PancakesWaprouter的值。
在这份智能合同中,他正在实施该路由器合同,因为他希望在他的令牌和其他令牌或硬币(在这种情况下为BNB)之间在DEX(在本例中为Pancakeswap)中互换。
详细说明,路由器合同执行安全交换,添加和删除流动性所需的安全检查。

您可以阅读有关此主题的更多信息在这里

以及“ MarketingFeereCeiver”是硬币的所有者,对吗?

该变量可以保留硬币的地址所有者,但在大多数项目中,其价值是指涉及该项目的Multisig Wallet以及所有费用将在何处转移。

What is the "routerAddress" meaning?

routerAddress is a variable where inside it will be inserted the value about PancakeSwapRouter.
In this smart contract, he's implementing this router contract because he want make available the swap in a DEX (in this case Pancakeswap) between his token and others tokens or coin (BNB in this case).
In details, a router contract performs the safety checks needed for safely swapping, adding, and removing liquidity.

You can read more about this topic here.

And also "marketingFeeReceiver" is the owner of the coin, right?

This variable CAN hold the address owner of the coin but in most project its value refers to address multisig wallet concern the project and where all fees will transfer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文