Skip to content

refactor: modify style of Zenith functions #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

anna-carroll
Copy link
Contributor

  • refactor from structs as params & big loops -> single-token-per-function call.
    • this means that callers need to submit multiple function calls in a batch transaction, rather than a single function call which performs a batch of transfers.
  • refactor from two function signatures per token function -> single function signature with if/else
    • from "submit" and "submitEth" -> single "submit" with an if/else

@anna-carroll anna-carroll self-assigned this May 29, 2024
@@ -12,53 +12,25 @@ contract Passage {
/// @notice The address that is allowed to withdraw funds from the contract.
address public immutable withdrawalAdmin;

/// @notice Thrown when attempting to fulfill an exit order with a deadline that has passed.
error OrderExpired();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was no longer used in the Host passage contract

Copy link
Member

@prestwich prestwich left a comment

Choose a reason for hiding this comment

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

yeah, it's good

@anna-carroll anna-carroll merged commit f86a1c1 into main May 29, 2024
1 check passed
@anna-carroll anna-carroll deleted the anna/refactor branch May 29, 2024 17:12
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.

2 participants