?
(i.e.: contractA can spend token from contractB)
So that contractA can spend contractB's tokens, or contractB itself.\
ContractA can transfer token for contract B ContractA.transferFrom(contractB, ... )
there is no auto allowance in solidity, assuming erc20 allowance, once you transfer or transferFrom within allowance amount, you need approve again for next transfer/from
I know some hack for approve, in first time send max.bignumber 🤣
when will you know the amount, or would it be ok to just set it to uint256.max()
Обсуждают сегодня