Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I seem to be getting the grasp of it and I'm getting closer. right now this one has a bit of a problem as this line -> const busdContract = new ethers.Contract(busdContractAddress, busdContractAbi, signer); has a typerror of abi is undefined for some reason. I've found the abi and copy pasted it in a json file so the variable itself doesn't seem to be an issue so I'm a bit confused xD
Yes I know that, I've actually added a function which, given the address of a token will withdraw the funds back to the owner (me). I'm also using testnets right now so my funds are not in danger whatsoever I am mostly running tests :)
I've tested it with BNB and it worked well! I've also tested it with sending custom tokens as well (not from react). I haven't been able to check if it accepts BUSD just yet