Is it possible to create a function that will allow deposits of other ERC-20 tokens to my newly created smart contract then lock them?
For example, I created a token ABC but I will need collateral from the owner using other ERC-20 tokens like DAI or USDT. The owner will deposit this DAI to the contract then lock it in for a certain period of time.
Is this possible? Basically, there are 2 concerns: The contract will accept other ERC-20 tokens then the next one is locking those other ERC-20 tokens.