Skip to content

Implement L2 spell to update OFT rate limits#2

Open
SidestreamColdMelon wants to merge 2 commits intodevfrom
L2UpdateOFTRateLimitsSpell
Open

Implement L2 spell to update OFT rate limits#2
SidestreamColdMelon wants to merge 2 commits intodevfrom
L2UpdateOFTRateLimitsSpell

Conversation

@SidestreamColdMelon
Copy link
Copy Markdown

Implements, according to the spec outlined here: https://hackmd.io/@ColdMelon/HyEA0M63bl

  • Reusable L2 spell L2UpdateOFTRateLimitsSpell
  • Relevant L1 helper relayUpdateOFTRateLimits
  • Relevant happy-path E2E tests of the spell and the helper
  • Gas profiler to evaluate required gas SkyLinkGasProfiler

Gas profiler output for the spell:

$ forge script script/SkyLinkGasProfiler.s.sol:SkyLinkGasProfiler --sig "run_rate_limits_update_spell(uint32 dstEid, address receiver, address remoteEndpoint, address usdsOftAddress)" 30106 0x6fdd46947ca6903c8c159d1dF2012Bc7fC5cEeec 0x1a44076050125825900e736c501f859c50fE728c 0x4fec40719fD9a8AE3F8E20531669DEC5962D2619

  Starting gas profiling for lzReceive on dstEid: 30106
  ---------------------------------------------------------
  Aggregated Gas Metrics Across All Payloads:
  Overall Average Gas Used: 58528
  Overall Minimum Gas Used: 58528
  Overall Maximum Gas Used: 58528
  Estimated options:
  0x0003010011010000000000000000000000000000f00e
  ---------------------------------------------------------
  Finished gas profling for lzReceive on dstEid: 30106
  ---------------------------------------------------------

@SidestreamColdMelon SidestreamColdMelon changed the title add L2UpdateOFTRateLimitsSpell and a helper function for L1 Implement L2 spell to update OFT rate limits Apr 15, 2026
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