lesson 3 fund me in binance #443
              
                
                  
                  
                    Answered
                  
                  by
                    cromewar
                  
              
          
                  
                    
                      gunomnifluencer
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hello, How to use fund me (FundMe.sol) with BEP20 token? please answer Thanks | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            cromewar
          
      
      
        Nov 26, 2021 
      
    
    Replies: 1 comment
-
| Hello @gunomnifluencer Binanace Smart Chain is a fork of Ethereum so it works as same as any other ERC20 token, so if you want the users to pay with that token you have to approve it and require payment with it, use this as example:  function pay(IERC20 Token) public payable {
        require(
            Token.transferFrom(
                msg.sender,
                address(this),
                amount
            )
        );
} | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        gunomnifluencer
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hello @gunomnifluencer Binanace Smart Chain is a fork of Ethereum so it works as same as any other ERC20 token, so if you want the users to pay with that token you have to approve it and require payment with it, use this as example: