Skip to content
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

Add rate limit #3

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Add rate limit #3

merged 1 commit into from
Oct 30, 2024

Conversation

zpetersen-paxos
Copy link
Collaborator

Changes:

  • Add rate limit
  • Update readme

]

async function main() {
ValidateEnvironmentVariables(initializerArgs)
ValidateEnvironmentVariables(TOKEN_ADDRESS, ETH_ENDPOINT_CONTRACT_ADDRESS, DELEGATE_ADDRESS, DESTINATION_EID, LIMIT, WINDOW )

Choose a reason for hiding this comment

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

why switch from initializerArgs to explicit list?
is it because of the rateLimitConfig object in the array?
I'd suggest to add logic to ValidateEnvironmentVariables in introspect objects and ensure their members are non-null. That way the lists of args to be verified and used will not go out of sync.

wdyt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it's because of the rateLimitConfig object. We can add that logic to ValidateEnvironmentVariables , but for now we should just keep it since this is the code that has been audited by Zellic.

@zpetersen-paxos zpetersen-paxos merged commit 168b4c3 into master Oct 30, 2024
1 check passed
@zpetersen-paxos zpetersen-paxos deleted the add-rate-limit branch October 30, 2024 18:42
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