Skip to content

Conversation

@pxrl
Copy link
Contributor

@pxrl pxrl commented Sep 13, 2023

There are many now, so it makes sense to split them apart before adding new ones. While here:

  • Enforce that deposits revert for the expected revert reasons.
  • Enforce that deposits succeed and emit a "FundsDeposited" event.
  • Tweak a utility function for simplicity.

Done in advance of a proposed change to the SpokePool quoteTimestamp validation.

There are many now, so it makes sense to split them apart before adding
new ones. While here:

 - Enforce that deposits revert for the expected revert reasons.
 - Enforce that deposits succeed and emit a "FundsDeposited" event.
 - Tweak a utility function for simplicity.

Done in advance of a proposed change to the SpokePool quoteTimestamp
validation.
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

This looks like a straightforward refactor

await spokePool.setEnableRoute(
route.originToken,
route.destinationChainId ? route.destinationChainId : consts.destinationChainId,
route.enabled !== undefined ? route.enabled : true
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice changes

@pxrl pxrl merged commit 853f46d into master Sep 15, 2023
@pxrl pxrl deleted the pxrl/refactorTest branch September 15, 2023 09:59
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