Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ethyla
Copy link
Contributor

@ethyla ethyla commented May 26, 2025

No description provided.

Copy link

@web3security web3security left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we can´t processExits during the same block due to this, I'd suggest we protect the new unprotected predicate requiring the caller to be "us".

It is true that we are "implicitly removing its usage" here as part of the first batch, but just in case.

Then we can delay its removal to the following block after the exit has been processed.

wdyt?

@ethyla
Copy link
Contributor Author

ethyla commented Jul 2, 2025

As we can´t processExits during the same block due to this, I'd suggest we protect the new unprotected predicate requiring the caller to be "us".

It is true that we are "implicitly removing its usage" here as part of the first batch, but just in case.

Then we can delay its removal to the following block after the exit has been processed.

wdyt?

I see what you mean. It should never happen that someone else calls this, but just to be extra sure I can require this predicate to be called by the multisig.

Copy link

@web3security web3security left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Just a comment, in the fork test AFAIK we could assert this between both timelock calls to ensure we get the erc20predicate back before 2nd call, isn't it?
I mean this

 address newOldPredicate = registry.erc20Predicate();
 assertEq(currentPredicate, newOldPredicate);

Copy link

Copy link
Member

@dev1644 dev1644 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's prepare the batch.

Copy link

@web3security web3security left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Here some suggestions:

  • To add to this PR, a gas report this time (including estimate gas) considering the issue we had. This could become a best practice from now on as well if that is ok with you all.

  • To add a comment in the new predicate about why that specific funds need special release, we can link the proof and the errored tx or something. So it might be easier during signing process as well as for brand reputation.

@ethyla
Copy link
Contributor Author

ethyla commented Jul 24, 2025

I don't think gas is important this time, because the relevant contract is not being touched.
But I agree we should add to our checklist whether special gas considerations need to be taken.

@ethyla
Copy link
Contributor Author

ethyla commented Sep 17, 2025

Completed

@ethyla ethyla closed this Sep 17, 2025
@ethyla ethyla deleted the tmp/logIncrease branch September 17, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants