PlatformFee
PlatformFee
allows you to charge a percentage fee wherever there is a transfer of currency (ERC20 tokens or native tokens) in your contract.
View on GitHub
The PlatformFee
extension is an abstract contract, and expects you to implement the following functions by yourself:
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
None of the base contracts implement this extension.