The current implementation allows users to send and receive cross-chain tokens and messages without incurring any transaction fees. While this might seem user-friendly, it can potentially lead to economic inefficiencies and discourage protocol sustainability. Charging a fee for cross-chain transactions is a common practice in many decentralized protocols to cover operational costs and prevent abuse.
Recommendation
Introduce a fee mechanism in the ONFT protocol by adding a fee variable to the onft_config. Implement a fee percentage that is deducted before tokens are sent across chains. This will ensure that the sender contributes to network maintenance and helps mitigate spam or abusive transactions.
Description
The current implementation allows users to send and receive cross-chain tokens and messages without incurring any transaction fees. While this might seem user-friendly, it can potentially lead to economic inefficiencies and discourage protocol sustainability. Charging a fee for cross-chain transactions is a common practice in many decentralized protocols to cover operational costs and prevent abuse.
Recommendation
Introduce a fee mechanism in the ONFT protocol by adding a fee variable to the
onft_config
. Implement a fee percentage that is deducted before tokens are sent across chains. This will ensure that the sender contributes to network maintenance and helps mitigate spam or abusive transactions.Example Code:
Add a fee field in
onft_config
: