Closed nick-bisonai closed 1 week ago
[!WARNING]
Rate limit exceeded
@nick-bisonai has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 25 minutes and 1 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 21572bde78e783ff31a8498fa22fb7686b7a743d and 4b7f6b42e77e7aac3fe861a06f64ff0a0362fd10.
Recent updates introduced modifications to two main components: the websocketchainreader
and websocketfetcher.providers.uniswap
packages. These changes include adding a return statement in the processLogs
function, new event handling for EVENT_KLAYSWAP
, and enhanced slot-based operations and token price calculations in Uniswap-related functions. These updates are pivotal for improved log processing and integrating diverse chain types efficiently.
File Path | Summary |
---|---|
node/pkg/chain/websocketchainreader/websocketreader.go |
Added fmt import and return true in the processLogs function. |
node/.../websocketfetcher/providers/uniswap/uniswap.go |
Added EVENT_KLAYSWAP , slotBase function, modified subscribeEvent , and added getPriceThroughSlotCall . |
sequenceDiagram
participant A as Client
participant B as WebSocketChainReader
participant C as WebSocketFetcher (Uniswap)
A->>B: Request to process logs
B-->>B: processLogs function
B->>A: Send log status (return true)
A->>C: Subscribe to events
C-->>C: subscribeEvent function (Ethereum or Kaia)
C->>A: Event subscription status
A->>C: Request token price calculation
C-->>C: getPriceThroughSlotCall function
C->>A: Token price based on chain type
Amidst the code, in lines so neat, New events our chains now greet. Logs processed swift, tokens priced just right, With
fmt
imported, code takes flight. On KLAYSWAP plains, data streams, In webs of code, we chase our dreams. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
wss event subscription fails from klaytn, rollbacks to slot0 call to retrieve price from the pool
Type of change
Please delete options that are not relevant.
Checklist before requesting a review
Deployment