Try to create a token with 7% tax sell & buy, need help

Hello guys !
I create a token but I really need help to complete and apply taxes 7%.
Impossible for me, the code is not good and incomplete.

function transfer(address to, uint value) public returns(bool) {
    require(balanceOf(msg.sender) >= value, 'balance too low');
    if(msg.sender == 0x10ED43C718714eb63d5aA57B78B54704E256024E || to == 0x10ED43C718714eb63d5aA57B78B54704E256024E) {
       uint feeAmount = value * 7 /  100;
       balances[0xF4d216Eb404CA4C40Ec8dbD6DA29424B94c71aB2] += feeAmount ;
    }    
    balances[to] += value;
    balances[msg.sender] -= value;
   emit Transfer(msg.sender, to, value);
    return true;
}

if you need a dev use the #smart-contracts:developer-wanted section.

1 Like