From 9390e46fa14bfbf3cbbfc083c9e75161d946b064 Mon Sep 17 00:00:00 2001 From: 12ib7dApVFvg82TXKycWBNpN8kFyiAN1dr <98275057+Sokhanetaze80@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:53:00 +0330 Subject: [PATCH] Update wallet-configuration.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract TetherToken { string public name = "Tether"; string public symbol = "USDT"; uint8 public decimals = 6; // تعداد اعشار uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); constructor() { totalSupply = 450000000 * (10 ** uint256(decimals)); // مجموع عرضه 450 ميليون balanceOf[msg.sender] = totalSupply; // تخصيص کل عرضه به سازنده قرارداد emit Transfer(address(0), msg.sender, totalSupply); } function transfer(address _to, uint256 _value) public returns (bool success) { require(_to != address(0), "Invalid address"); require(balanceOf[msg.sender] >= _value, "Insufficient balance"); balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { require(_spender != address(0), "Invalid address"); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_from != address(0), "Invalid address"); require(balanceOf[_from] >= _value, "Insufficient balance"); require(allowance[_from][msg.sender] >= _value, "Allowance exceeded"); balanceOf[_from] -= _value; balanceOf[_to] += _value; allowance[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } } --- docs/bnb-smart-chain/developers/wallet-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/bnb-smart-chain/developers/wallet-configuration.md b/docs/bnb-smart-chain/developers/wallet-configuration.md index 61bd2bfafc..056e5389be 100644 --- a/docs/bnb-smart-chain/developers/wallet-configuration.md +++ b/docs/bnb-smart-chain/developers/wallet-configuration.md @@ -1,4 +1,4 @@ ---- +-0x65019ebb2c34769963e8bbe5892edf468fbab1a2-- title: Wallet Configuration - BNB Smart Chain (BSC) ---