In this code example, the setProjectAddress function can be called by the contract owner to set whether a project address should be excluded from transaction fees. The transfer function checks whether the sender is a project address, and if so, simply transfers the tokens without a fee. If the sender is not a project address, a fee is calculated as 0.5% of the transaction amount, and then subtracted from the transferred amount. Finally, the fee is transferred to the contract owner.
🎯 Acceptance Criteria
[ ] Project addresses should be excluded from transaction fees.
[ ] The setProjectAddress function should allow the contract owner to set whether a project address should be excluded from transaction fees.
[ ] The transfer function should check whether the sender is a project address, and if so, transfer tokens without a fee.
📝 Additional Notes
The setProjectAddress function should only be callable by the contract owner.
The contract owner should not be able to exclude their own address from transaction fees.
📝 Issue Description
All project addresses should be excluded from transaction fees.
Code Example
In this code example, the setProjectAddress function can be called by the contract owner to set whether a project address should be excluded from transaction fees. The transfer function checks whether the sender is a project address, and if so, simply transfers the tokens without a fee. If the sender is not a project address, a fee is calculated as 0.5% of the transaction amount, and then subtracted from the transferred amount. Finally, the fee is transferred to the contract owner.
🎯 Acceptance Criteria
📝 Additional Notes
The setProjectAddress function should only be callable by the contract owner. The contract owner should not be able to exclude their own address from transaction fees.