Greetings!
I do believe this is bug;
I have next code in typescirpt:
if (allowance.lt(payAmount)) {
await erc20Contract
.approve(contract.address, payAmount)
.then((tx) => handle(tx))
}
In the new mm UI, user has to explicitly set up approve value or user can click default
and accept value from dApp. In my case value of payAmount
. For example:
If payAmount
is 42*10**18
: that is 42 ERC token with decimals 18 to approve. So if user clicks default
it expected value in new form is 42
, but actual is 42*10**18