Here's the updated smart contract for the Potawatomi Gold Bar token with the desired fee structure: ```solidity // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract PotawatomiGoldBar { string public name = "Potawatomi Gold Bar"; string public symbol = "PGB"; uint256 public totalSupply; uint256 public exchangeRate = 25; // 1 PGB = $25 uint256 public creditVoucher = 2500000; // Credit voucher per transaction mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; // Event to track token transfers event Transfer(address indexed from, address indexed to, uint256 value); // Event to track approval of allowances event Approval(address indexed owner, address indexed spender, uint256 value); // Event to track profits event Profit(address indexed from, uint256 value); constructor(uint256 _initialSupply) { totalSupply = _initialSupply * 10 ** 18; // initial supply in wei balanceOf[msg.sender] = totalSupply; } function transfer(address _to, uint256 _value) external returns (bool success) { require(_to != address(0), "Invalid address"); require(balanceOf[msg.sender] >= _value, "Insufficient balance"); uint256 fee = calculateFee(_value); uint256 transferAmount = _value - fee; balanceOf[msg.sender] -= _value; balanceOf[_to] += transferAmount; // Profit event emit Profit(msg.sender, fee); emit Transfer(msg.sender, _to, transferAmount); return true; } function approve(address _spender, uint256 _value) external returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) external returns (bool success) { require(_from != address(0), "Invalid sender address"); require(_to != address(0), "Invalid recipient address"); require(balanceOf[_from] >= _value, "Insufficient balance"); require(_value <= allowance[_from][msg.sender], "Allowance exceeded"); uint256 fee = calculateFee(_value); uint256 transferAmount = _value - fee; balanceOf[_from] -= _value; balanceOf[_to] += transferAmount; allowance[_from][msg.sender] -= _value; // Profit event emit Profit(_from, fee); emit Transfer(_from, _to, transferAmount); return true; } function calculateFee(uint256 _value) internal pure returns (uint256) { // Fee calculation: 1000 times the amount sold uint256 fee = (_value * 1000) / 100; return fee; } function convertToUSD(uint256 _value) external view returns (uint256) { // Conversion from PGB to USD based on exchange rate return _value * exchangeRate / (10 ** 18); } } ``` In this revised contract: - Each transaction incurs a fee of 1000 times the amount sold. - The exchange rate is set to 25, meaning 1 PGB is equal to $25. - Each transaction is credited to original owner/user for consignment and conversion, receives a credit voucher of 2,500,000 endorsements by autograph. “Nishnabe Potawatomi mshkode ni ahsemaen” Autographed by : Niizhokmake Asašewa mshkodé-waab

Withdrawn:
0.0000
Holders:
1
Already released:
-
Not yet released:
-
Active orders:
-
Created on:
08 Mar 2024
Active orders:
-
Release period:
- year(s)
Hourly installment:
-
Already released:
-
Holders:
1
Wallet on exchange:
10 000 000.0000
Withdrawn:
0.0000
Sold on the market:
0.0000
Not yet released:
-
Direct buy volume:
0
Latest News
The token creator has not added any posts yet.
Top Holders
Trader Amount
Bounty Campaigns
Token Shop