# \[Proposal\] Live Balancer contract segments visualization and subscriptions

**URL:** <https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539>\
**Category:** Ecosystem Fund \[deprecated\]\
**Created:** [November 13, 2020, 5:22pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539 "2020-11-13T17:22:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabhaav\_SimpleID](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/prabhaav_simpleid/32/279_2.png) [@Prabhaav\_SimpleID](https://forum.balancer.fi/u/Prabhaav_SimpleID)\
**Post date:** [November 13, 2020, 5:22pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/1 "2020-11-13T17:22:00Z")

</div>

**#The proposal in one sentence:**

Live Balancer contract segments visualization and subscriptions

**##What? _What will be done, what are the deliverables_**

- We will build 5 custom segments of Balancer contract data that community members can visualize and subscribe to for regular updates. The subscriptions can be used for monitoring tools, custom trading bots, arbitrage opportunities, dashboards, etc.

- The community can request and vote on the custom segments we will build (The data must be on-chain). Potential segment ideas that are of interest to include:

- We have already built out parts of the needed infrastructure and visualizations to support this proposal:

**##Why? _What problem it solves_**

 ![https://s3.us-west-2.amazonaws.com/secure.notion-static.com/3655a30e-cc43-4849-9d81-a25ebb89774e/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAT73L2G45O3KS52Y5%2F20201112%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201112T200652Z&X-Amz-Expires=86400&X-Amz-Signature=00d7eb83608c8557c51c71df69318c1b120b77a89133cddd84741e4c2583f37d&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22](https://canada1.discourse-cdn.com/flex027/uploads/balancer/original/1X/ec08e482629c37d63caa80f70793122555633ba3.png)

- Easy access to structured high-performance blockchain data is imperative to promote new products being built on Balancer. Balancer segment data can help developers build trading/arbitrage bots, boutique financial instruments, and monitoring tools easily. We believe this will increase the liquidity available on Balancer while improving the efficiency of the protocol.

- We give developers an easy to use live segment data subscription service. This frees them from creating and maintaining custom sub-graphs or advanced-SQL to continuously monitor Balancer on-chain data.

- Multiple analytics/monitoring proposals in the community can take advantage of our service: [https://forum.balancer.fi/t/proposal-marketing-growth-grant/201](https://forum.balancer.fi/t/proposal-marketing-growth-grant/201), [https://forum.balancer.fi/t/proposal-dashboard-to-view-the-bal-community/248](https://forum.balancer.fi/t/proposal-dashboard-to-view-the-bal-community/248), [https://forum.balancer.fi/t/liquidity-vision-balancer-grant-proposal/464](https://forum.balancer.fi/t/liquidity-vision-balancer-grant-proposal/464)

**##When? _Timeline and milestones with the requested payment schedule in BAL (subject to vesting) or DAI/USDC_**

**Phase 1: Build Custom Segments & Multiple Subscription Service**

- Est. Completion: March 2021
- Deliverables
  - [https://balancer.simpleid.xyz](https://balancer.simpleid.xyz)
    - 5 custom segments
    - Segment visualizations updated every 20 minutes
    - Allows viewers to subscribe to updates for each segment
      - 20k Max.
      - First come, first served
      - 3-failed requests drops subscription

- Budget:
  - 2.5K Balancer Tokens vested over 12 months
  - Covers infrastructure costs for 12 months
  - Segment Pricing: $400 / month (5-segment pricing), Includes
    - 20 minute updates
    - 20 minute visualization updates
    - Server, Compute & DB Instances
    - Daily wallet & token balance updates
    - Data transfer
    - Storage

**Phase 2: Live Updates (1-3 Block Delay)**

- Est. Completion: June 2021
- Deliverables (beyond phase 1)
  - [https://balancer.simpleid.xyz](https://balancer.simpleid.xyz)
    - 5 additional live update custom segments
    - Segment visualizations updated every 1-3 blocks
    - Allows viewers to subscribe to updates for each segment:
      - 20k authenticated URLs for high-performance updates (updated on avg. 15-45s)
      - 100k for regular perforamance updates (every 20 min.)

- Budget:
  - 12K Balancer Tokens vested over 12 months
  - Covers infrastructure costs for 12 months
  - Segment Pricing $2000 / month (5-live segment pricing), Includes:
    - 1-3 block updates
    - 1-3 block visualization updates
    - Server, Compute & DB Instances
    - Wallet & token balance updates every minute or faster
    - Performance replication costs
    - Data transfer
    - Storage

**##Where?**

The project will be available at [https://balancer.simpleid.xyz](https://balancer.simpleid.xyz)

**##Who? _Team members and their roles in the project and backgrounds_**

Prabhaav Bhardwaj  
Role: Software Engineer, UX/UI Designer  
GitHub: [https://github.com/prabhaav](https://github.com/prabhaav)

**Background:**  
Co-founder at SimpleID  
10+ years of SW Development

Alex Carreira  
Role: Systems Engineer  
GitHub: [https://github.com/AC-FTW](https://github.com/AC-FTW)

**Background:**  
Co-founder at SimpleID  
20+ years of HW(FPGA) & SW Development

---

<div class="post-metadata">

**Author:** ![tongnk](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/tongnk/32/160_2.png) [@tongnk](https://forum.balancer.fi/u/tongnk)\
**Post date:** [November 17, 2020, 6:46am UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/2 "2020-11-17T06:46:45Z")

</div>

My thoughts on this is that I’m really unsure about the use case and especially the cost proposed. Given most things are built on top of subgraph - asking devs to build and maintain their own databases seems to be a bit counterintuitive vs utilising subgraph.

From an analytics project perspective we wouldn’t be able to utilise this as we rely on subgraph right now and don’t plan on storing the data ourselves (as it gets very expensive). I’d love to be proven wrong and we would be able to utilise this without moving from subgraph though.

Also for clarification - segment pricing $2k p/m is that Segment the software ([segment.com](http://segment.com)) or is that something else

---

<div class="post-metadata">

**Author:** ![Prabhaav\_SimpleID](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/prabhaav_simpleid/32/279_2.png) [@Prabhaav\_SimpleID](https://forum.balancer.fi/u/Prabhaav_SimpleID)\
**Post date:** [November 18, 2020, 6:24pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/3 "2020-11-18T18:24:09Z")

</div>

Thanks for your perspective @tongnk, and I totally agree with you that the Graph could satisfy some use cases. However, what we’re offering are _ **complete solutions** _ that add value to new smart pool managers, LPs, traders, investors, community members, etc in a few ways:

- flexibility to add features that require external data and non-chain data (i.e. price feeds):

- monitoring smart pools and alerting system for timely notifications:

- pre-calculated metrics and visualizations:

- infrastructure benefits:

As for the pricing you mentioned. The $2k/month (200 BAL/month/segment) was a breakdown of per segment pricing for the number of Balancer tokens (12k BAL) we requested for 12-months. It has nothing to do with [segment.com](http://segment.com).

What has your experience been developing with the Graph in terms of adding new features, expanding the subgraph, or joining data across different protocol subgraphs in a query?

---

<div class="post-metadata">

**Author:** ![markus](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/markus/32/880_2.png) [@markus](https://forum.balancer.fi/u/markus)\
**Post date:** [November 24, 2020, 9:10pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/4 "2020-11-24T21:10:25Z")

</div>

Thanks for the detailed proposal, @Prabhaav_SimpleID

Push notifications for state changes seem like a very useful feature at the base layer, but I hope we can hear from the Balancer community what they would like to build or see others build on top of this. This will help us more objectively scope the proposal (ie. clearly define the “segments” that will be built) so that everyone is on the same page from the start.

---

<div class="post-metadata">

**Author:** ![Prabhaav\_SimpleID](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/prabhaav_simpleid/32/279_2.png) [@Prabhaav\_SimpleID](https://forum.balancer.fi/u/Prabhaav_SimpleID)\
**Post date:** [November 25, 2020, 12:55pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/5 "2020-11-25T12:55:32Z")

</div>

Thanks, @markus. I agree we want to build the segments & visualizations that add the most value to the community. It looks like some of the work we’ve proposed is already of interest:

- #3 (_dynamic smart pool adjustments_) of the custom segments mentioned in my initial post is now a bounty offered: [https://github.com/balancer-labs/balancer-bounties/issues/2](https://github.com/balancer-labs/balancer-bounties/issues/2).

- Advanced data analytics of Balancer usage, mentioned in @immutbl’s blog post: [https://medium.com/balancer-protocol/batch-2-of-balancer-ecosystem-fund-grants-is-now-available-c6b1bf567483](https://medium.com/balancer-protocol/batch-2-of-balancer-ecosystem-fund-grants-is-now-available-c6b1bf567483)

---

<div class="post-metadata">

**Author:** ![immutbl](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/immutbl/32/272_2.png) [@immutbl](https://forum.balancer.fi/u/immutbl)\
**Post date:** [December 9, 2020, 11:22pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/6 "2020-12-09T23:22:39Z")

</div>

Hey @Prabhaav_SimpleID, appreciate your patience and apologies for the delay.

The feedback I’ve received on this proposal is that the visualizations proposed can be done on Dune Analytics, and the key differentiator in this tech seems to be the ability to subscribe to specific state changes within Balancer - eg weights/fees being updated, large swings in spot price. Ideally this proposal would be coupled with another one that makes use of the tech on that front, not just for visualizations.

So as this proposal stands, I’m going to decline this.

I highly appreciate your proposal and I would encourage you to consider Markus’ suggestions both here on the forum and in your 1-on-1 discussions if you’re interested in continuing to pursue a grant for this idea. Also would love to see proposals for any other interesting ideas you may have.

Thank you! 🙏

---

<div class="post-metadata">

**Author:** ![Prabhaav\_SimpleID](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.balancer.fi/prabhaav_simpleid/32/279_2.png) [@Prabhaav\_SimpleID](https://forum.balancer.fi/u/Prabhaav_SimpleID)\
**Post date:** [December 10, 2020, 4:12pm UTC](https://forum.balancer.fi/t/proposal-live-balancer-contract-segments-visualization-and-subscriptions/539/7 "2020-12-10T16:12:43Z")

</div>

Understood @immutbl. Will work with @markus on fleshing out the details for the smart pool monitoring system for a different proposal.
