-
Notifications
You must be signed in to change notification settings - Fork 54
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
Opt-in Aggregate Rate Limiter #698
Conversation
# Conflicts: # contracts/src/v0.8/ccip/offRamp/EVM2EVMOffRamp.sol # contracts/src/v0.8/ccip/onRamp/EVM2EVMOnRamp.sol # contracts/src/v0.8/ccip/pools/TokenPool.sol # contracts/src/v0.8/ccip/test/StructFactory.sol # contracts/src/v0.8/ccip/test/applications/ImmutableExample.t.sol # contracts/src/v0.8/ccip/test/e2e/End2End.t.sol # contracts/src/v0.8/ccip/test/offRamp/EVM2EVMOffRamp.t.sol # contracts/src/v0.8/ccip/test/offRamp/EVM2EVMOffRampSetup.t.sol # contracts/src/v0.8/ccip/test/onRamp/EVM2EVMOnRamp.t.sol # contracts/src/v0.8/ccip/test/pools/BurnMintTokenPool.t.sol # contracts/src/v0.8/ccip/test/pools/LockReleaseTokenPool.t.sol # contracts/src/v0.8/ccip/test/pools/USDCTokenPool.t.sol
Create 1.4 versions of all in-use contracts so nothing breaks
@@ -496,8 +528,9 @@ contract EVM2EVMOffRamp is IAny2EVMOffRamp, AggregateRateLimiter, ITypeAndVersio | |||
address receiver, | |||
bytes[] memory encodedSourceTokenData, | |||
bytes[] memory offchainTokenData | |||
) internal returns (Client.EVMTokenAmount[] memory) { | |||
Client.EVMTokenAmount[] memory destTokenAmounts = sourceTokenAmounts; | |||
) internal returns (Client.EVMTokenAmount[] memory destTokenAmounts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a named return saves some stack size
970d31d
to
8642350
Compare
LCOV of commit
|
8642350
to
488a841
Compare
488a841
to
e6681d4
Compare
LCOV of commit
|
LCOV of commit
|
e6681d4
to
95512b8
Compare
LCOV of commit
|
95512b8
to
a67cc61
Compare
LCOV of commit
|
a67cc61
to
9a9e5a9
Compare
9a9e5a9
to
a80a8b9
Compare
LCOV of commit
|
LCOV of commit
|
a80a8b9
to
0704b11
Compare
LCOV of commit
|
closed in favour of #714 |
Motivation
Currently, all token pools on a given lane are included in its ARL (Aggregate Rate Limiter). With permissonless token pools there may no longer be a price being reported for every token. ARL'ing should instead be opt-in, only when the pricegetter has been configured.
Solution
Add an additional piece of configuration per token for whether or not to include it in the ARL total.
This defaults to off, requiring admin/owner action to opt-in a token before it is included.