I have an escrow contract where party A is sending some token to party B and right now held in escrow. I want to use the timer function in smart contract so that the token will be held for a certain period of time. After that time, the token will be reverted back to originator account, that is party A.
I am adding the escrow in an ERC20 smart contract so I can call it inside the smart contract.
How can I create a holding frame of 30 days in smart contract and after 30 days the token will be reverted back?