Multisig - avoid submitting same proposal twice if not intended
One should check that no proposal doing the exact same thing as what is about to be proposed exists in the current pending operation of a multisig.
The main use case of such check would be in the multisig as owner feature (not implemented yet).
If a CHILD
multisig wants to approve a pending operation P1
of a PARENT
multisig, the flow is:
- In the pending operation tab of
PARENT
a user being part ofCHILD
owners clicks on approve button linked to theCHILD
multisig - It create a lambda
L
, that once executed will actually call the approve endpoint ofPARENT
-
L
is sent as a proposalP2
toCHILD
- Other
CHILD
owners approve and executeP2
, which leads toL
execution andCHILD
calling the approve endpoint ofPARENT
.
So, if you want to approve the transaction, you need to propose to approve the transaction, or approve an already existing proposal to approve the transaction.
You do not want to propose the same thing twice (at least not without a warning). You want to propose if it has not been done yet, or approve the existing proposal.