Optimization :Lack of Multicall Implementation (djed-sdk)

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Start with djed-sdk/src/djed/system.js and inspect getCoinDetails and its existing RPC calls. Research how the project can use a Multicall contract to aggregate them into one request; the issue gives no test or setup instructions. Done means the listed calls are aggregated into a single RPC request.

Written by the indexing model from the issue text.

Description

  • Issue: getCoinDetails in djed-sdk/src/djed/system.js performs ~6-8 separate RPC calls (totalSupply, scPrice, R, etc.) in parallel.

  • Impact: This floods the node with requests. Browser limits on concurrent connections (usually 6) will cause these to queue (waterfall), significantly slowing down the initial data load.

  • Fix: Implement a "Multicall" pattern (using a Multicall contract) to aggregate these into a single RPC request.

@Zahnentferner Please assign this me Optimization issue

Dominant language
JavaScript
Stars
16
Forks
29
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from StabilityNexus/StablePay

All issues in StabilityNexus/StablePay

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.