Hi. I need to make a proxy contract so that users can invoke other contracts with it, but as soon as I give permission. Like delegate call, but only after some time. For example, a user wants to make a swap, he calls my contract, and contract uses delegate call to call a swap on uniswap when I call the administrator cue method. How can I do this? What to see?

Nov 25, 2022, 5:42 PM
Isn't delegate call, considered unsafe to use with proxy contracts?
Nov 25, 2022, 5:48 PM
Yes, but I do not know how to implement it
For example. 1)The user calls my contract (with the necessary information for swap on uniswop) 2) His transaction does not go further, but as if it is saved. I don't know how. 3) When necessary, I call the "x" method from my contract. And this transaction goes through. Moreover, the sender, etc., must be the user himself, as with delegate call.
Nov 25, 2022, 6:00 PM
I think you will need they to sign a transaction, and in a later date you send it, otherwise you cannot keep him as msg.sender without delegate call
I'm not sure about that
Nov 25, 2022, 6:03 PM
Like in permit method?
Nov 25, 2022, 6:04 PM
Yep
Nov 25, 2022, 6:05 PM
But don't I need the contract that is eventually called to support the possibility of signing? Can I just sign a transaction and then send it whenever I want?
Do I understand correctly what you mean? The user signs his uniswap call transaction and sends it to me. When I do, I send it to the network. And it passes from his face. Is that how it works? Are there any links to EIP or code examples?
Nov 25, 2022, 6:13 PM
I understood what you are trying to do, but its probably not going to work as uniswap swaps have a deadline param to it
Nov 25, 2022, 6:18 PM
Yeah you need the support on the contract called
Nov 25, 2022, 6:18 PM
It is sad. Thank you
Maybe MPC will help. Will the transaction hang until the second person confirms it?
How do you think it will work? Or will the gas price change and there is no point?
Nov 25, 2022, 6:32 PM

© 2024 Draquery.com All rights reserved.