Closed webs7er closed 4 years ago
In the example failed transactions that you've shown, the functions being called are "lock" and "free" respectively. I'm not sure what these functions are supposed to do. They aren't ERC-20 functions, and we don't support them in MetaMask as far as I know.
I don't believe the screenshot shown would ever be shown for the transaction in question. Does that make sense? Let me know if you think I'm mistaken about any of this.
Hi @Gudahtt, thanks for taking the time to look into this.
I am not quite familiar with the concept of limit permissions and I'm not sure what problem they are trying to solve. Personally, I believe they are not needed in this particular use case - although I did get the option to set a them (see Step 3. above).
In any case, I'd like to know what causes the withdrawal to fail (with the error 'ds-token-insufficient-approval') - is it something linked to the limits I set (and/or how I set them), or is there another issue elsewhere? Would it help if I try reaching out to the MakerDAO developers?
is it something linked to the limits I set (and/or how I set them), or is there another issue elsewhere? Would it help if I try reaching out to the MakerDAO developers?
Yes, I think that would help. The failure you're asking about is specific to this contract (or type of contract), so the MakerDAO developers seem like the appropriate people to ask.
I'm going to close this issue for now, as I don't think there is any MetaMask bug here. But thanks for reporting this, and good luck in investigating this further!
I signed the MakerDao voting contract while setting a max spend limit of "6.5". (Note: screenshot is from another wallet)
When depositing to the contract, I could deposit MKR exceeding the pre-set limit, see tx: https://etherscan.io/tx/0x5559d3dd99a0442cd88195d4eef3193191a7f294861fe62eb8e6ebf50e5cba5f
On the other hand, when withdrawing from the voting contract, I could only take out up to "6.5" MKR.
To Reproduce:
Expected behavior From my understanding of the "spend limit" function, step 5. above should fail, whereas step 6. should succeed.
Browser details (please complete the following information):