Custom Token
The best way for integrating lossless protection into your token contract that has custom functions is to inherit from LERC20.
However in cases where you want to modify one of the public functions like:
transfer
transferFrom
approve
increaseAllowance
decreaseAllowance
You must add before modifier to these functions. This modifier must call lossless controller hook function and forward all of the initial function call parameters. An example of how these modifiers can be found here:
Last updated