So i think the behavior was a bit straightforward, the IERC20Update interface extends the IERC20 and adds a permit function, the permit function was only used in depositWithPermit function in TokenFactory this is why calling deposit with a regular Erc20 token without permit works, i have added a test that calls depositWithPermit using a regular Erc20 token without permit to confirm a revert behavior.
So i think the behavior was a bit straightforward, the
IERC20Update
interface extends theIERC20
and adds a permit function, the permit function was only used indepositWithPermit
function inTokenFactory
this is why callingdeposit
with a regular Erc20 token without permit works, i have added a test that callsdepositWithPermit
using a regular Erc20 token without permit to confirm a revert behavior.