How to use a token transfer function into another function ? [ ERC20 ]

A post was split to a new topic: Deploy ERC20 contract