0

When I call the approve function of the ERC20 token standard, it asks me to set a custom spending cap, as shown below.

enter image description here

But I need to use the default value every time without clicking "use default." It should always recognize "use default" as default method. How can I do that?

1 Answer 1

2

Simple answer, you cannot for good reason.

Find your answer here.

We designed this interface to give you more control and visibility over your token allowances, since you'll be prompted to always input a preferred limit, rather than default to the amount proposed by the dapp (though you can still select this default allowance if you choose).

1
  • What if I want to modify this value?
    – Matteo_Sid
    Jan 7 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.