BUIDL: 27MAY24 - 16JUN24

Dev Update

BUIDL: 27MAY24 - 16JUN24

Welcome to another weekly wrap-up, Spartans! Thanks to all the community contributors and friends who helped Buidl, promote and support during the week! Read on for the update

BUIDL: 27MAY24 - 16JUN24

Subgraph Sunset

As discussed recently, the subgraph data used for some historical data in the DApp and API was sunset recently. Outlined at the time was a bit of a checklist of items to deal with in advance (and reactively afterwards)

  • The TVL + swap volume historic charts: The DApp has been updated and now only shows the current TVL. We no longer have a historic chart to view in-app of the TVL nor swap volume.
  • Pool APYs: The DApp has been updated and no longer shows the APYs. We can look to maybe add these back in creatively using the subgraph data but more likely we'll just simplify this to use current pool/vault data combined with derived harvest calcs to forecast APYs instead of historical data.
  • Pool volume data: Fortunately we have managed to find some middle ground on this for now, the API still calls the subgraph data (non-hosted version now) but this is not a sustainable solution. When the bills get too large to pay this will be scaled down gradually until its completely not feasible at which time we'll have to stop feeding data to CG/CMC and lose some good info they list about our pools. So the plan is still to reach out to DEX-listing apps like DexTools to ensure our DEX data remains available (potentially an overall improvement).
  • Positions page in the DApp: This page relied entirely on Subgraph data and far too heavily at that, there was no feasible way to keep it going. The DApp has been updated and this feature completely ripped out.
  • Historic token price charts in the swap page of the DApp: While we could potentially feed in data from sources like CG, the primary purpose of these charts was to display internally derived token prices from our pools. So they have now been ripped out of the DApp entirely.
  • Liquidity/pool assessment charts in the DApp: Unfortunately, this useful tool relied entirely on the Subgraph, so it has been removed. Assessing a pool's viability will become more challenging without it, but it's a problem we'll try to address when the community fork is live and new DApps/interfaces handle this centralized-leaning stuff.

Past few weeks have been quite busy work tie-ing off headaches like this but they are all steps towards making everything more self-sufficient and sustainable so we can start shifting focus to the community fork without distractions!

API changes

Reduce subgraph dep

  • init reduce subgraph dep
  • re-test old way with caching

Set cache headers

  • set all cache headers
  • swap subgraph url

Cache testing

  • remove cg call
  • drop cache times to test changes
  • bump back up cache

Community DApp

‌GitHub Repo: https://github.com/spartan-protocol/spartanprotocol-dappv2

Front-end: https://dapp.spartanprotocol.org/

Trim dapp

  • hide synths side panel
  • hid all data that relies on subgraph for now
  • we can gradually roll out solutions to anything important where feasible like vault APYs
  • remove synth/lp positions pages
  • remove the relevant subgraph calls along with the `getSubGraphBlock` call

Use internal pricing

  • changed the CG icon on swap tokens page to show internally derived USD instead of CG for SPARTA prices
  • added option to see USD value in daovault harvest section
  • change all sparta pricing to be internally derived


  • Bump braces from 3.0.2 to 3.0.3

‌Established Projects

Protocol Information