users account if the user account approves the smart contract?
Yes there is a function and theres a way
it doesn't seem to work for bnb. only other tokens would work
For bnb's it cant cause you have not written bnbs contract, for the token you create it can be done
I see, wrapping bnb address inside IERC20 won't work Right?
Would work for wrapping bnb but again that has different contract and contract address
Would also need BNB to already be wrapped, not many folks have already wrapped BNB sitting in their wallet
I am confused, so it doesn't mean you can wrap bnb address inside IERC20 and do something like IERC20(bnbAddress).transferFrom(from, address(this), amountIn);
Обсуждают сегодня