hello
iMe and my team are working on a staking / subscribing dappsubscribing dApp on the ethereum blockchain using erc20 stablecoins like usdt and dai.
we We encounterd an error on the approve()approve()
and transferfrom() functions transferfrom()
functions, and we need help....
how
How can write a code that allows a user to approve our dapp contract to transfer usdt on his behalf, and also allows the contract admin to transfer the token when the function transferfrom()transferfrom()
is called.. this? this is actually needed for the subscribe part of our dapp.