In ERC20 I don't know how to limit X amount per transaction. Thank you for your time.
Best wishes
In ERC20 I don't know how to limit X amount per transaction. Thank you for your time.
Best wishes
Hey @RyanSS8 try this:
add this variable:
uint256 maxTxAmount = <put here the amount> * 10 ** _decimals;
add this inside transfer
function:
require(amount <= maxTxAmount, "Amount is exceeding maxTxAmount");
Thank you FreezyEx!
Only this way?. Another alternative?. Thank you again.
Best wishes
RyanSS8