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

rm offchain check for token pool rate limits #690

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

RensR
Copy link
Collaborator

@RensR RensR commented Apr 8, 2024

Motivation

Self serve will allow for token pools that do not have all the functions we currently call offchain

After this PR we assume it will go through due to the same rate limits being enforced onchain on send

Copy link
Contributor

github-actions bot commented Apr 8, 2024

I see you updated files related to core. Please run pnpm changeset to add a changeset.

@RensR RensR marked this pull request as ready for review April 8, 2024 06:01
@RensR RensR requested a review from a team as a code owner April 8, 2024 06:01
@RensR RensR force-pushed the rm-offchain-dest-pool-rate-limit-checks branch from ec2dd40 to d8f51d8 Compare April 8, 2024 06:01
) (executableMessages []ccip.ObservedMessage) {
inflightAggregateValue, inflightTokenAmounts, err := inflightAggregates(inflight, destTokenPricesUSD, sourceToDestToken)
inflightAggregateValue, _, err := inflightAggregates(inflight, destTokenPricesUSD, sourceToDestToken)
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably you can remove computing inflightTokenAmounts entirely from inflightAggregates fun

@@ -385,11 +305,6 @@ func (r *ExecutionReportingPlugin) buildBatch(
continue
}

if !r.isRateLimitEnoughForTokenPool(destTokenPoolRateLimits, msg.TokenAmounts, inflightTokenAmounts, sourceToDestToken) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove that function (isRateLimitEnoughForTokenPool) from the codebase

Copy link
Contributor

@mateusz-sekara mateusz-sekara left a comment

Choose a reason for hiding this comment

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

Looks good, make sure that CI is green ;)

@RensR RensR merged commit fd3faef into ccip-develop Apr 8, 2024
77 checks passed
@RensR RensR deleted the rm-offchain-dest-pool-rate-limit-checks branch April 8, 2024 11:59
asoliman92 pushed a commit that referenced this pull request Jul 31, 2024
## Motivation
Self serve will allow for token pools that do not have all the functions
we currently call offchain

After this PR we assume it will go through due to the same rate limits
being enforced onchain on send
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