BUIDL-Weekly: 06JUN22 - 12JUN22

Dev Update

BUIDL-Weekly: 06JUN22 - 12JUN22

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-Weekly: 06JUN22 - 12JUN22

CoinMarketCap DEX Listing

The CoinMarketCap integration of the Spartan protocol pools is now finalised and live. A massive thank you to the team over at CMC for making it happen.

All listed and active pools will now show up as markets attached to the underlying assets on CoinMarketCap for users browsing their website.

SynthVault Claim Drop | SPIP-105

If you missed out on the SPIP-105 discussions, get up to date via this article. TLDR: SynthVault harvest will reduce, so make sure you harvest before each drop!

The next 1% drop will be occurring ASAP, so please ensure you have performed a SynthVault harvest to receive the current 2% rate.

NOWNodes Listing

NOWNodes provide node and explorer infra, including BNBChain. By the looks of things they will be listing SPARTA as an officially supported token with some reference info on their website, I am sure more info will follow later down the track (This is not a technical/protocol integration)


WhaleStats Mentions

Whalestats track up to 4000 of the largest BNB Chain wallets (the "whales") and provide some helpful metrics and data for users.

CoinMarketLeague Charts

Don't forget to vote for SPARTA each week, Spartans!


Weekly Community Call / Hangout

Don't forget to tune into the Telegram channel each week with @ReidyPhillip to get updates on the project and broader ecosystem. Join in the discussion with any ideas and questions!

Hosted every Wednesday but subject to change based on community feedback and availability. When the time is confirmed each week, we will do our best to share a reminder on the socials, but this can be difficult because of the distributed nature of the project and organisers.

Weekly LearnToEarn Quiz

Congratulations to the winners of the weekly Spartan Protocol LearnToEarn quiz.

There is a new #LearnToEarn quiz up and live for Spartans keen to learn and win some SPARTA in the process!

Don't forget to ask on the socials if you are not sure! The community is there to help and these quizzes are all about learning!


SpartAnalytics Report

Our community collates the public Spartan Protocol data into a PDF report each month covering Google Search (impressions, clicks, devices, keywords & geographical) & Twitter analytics. You can find the full May report here.


Community DApp

GitHub Repo: https://github.com/spartan-protocol/SpartanProtocol-DAppV2

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

Some major structure improvements are getting close to merging into the main branch, see below for some of the live and not-yet live updates that have been completed over the week

General

  • Update page meta tags / headers / titles to suit the BSC -> BNBChain change + also to make the DApp more clear its a separate community built & run project
  • Updated some fonts
  • Created some new icons to replace some old SVGs
  • Applied a more neutral styling throughout DApp
  • Removed colors from the icons in the top-right of DApp (SPARTA & BNBChain icons changed to greyscale)

Swap & Synth & Liquidity Pages

  • Applied changes as per #776 to iterate the swap UI towards a more scaled & clear one
  • These changes were also applied in the synth & liquidity pages
  • Applied some bandaid fixes to temporarily make the swap & liquidity pages snappy/quick again (the upgrade to newest CRA broke some stabilities we previously had) plans in place to rewrite these sections and add some Redux stores to handle the issue properly over the coming weeks, for now, these intrum changes will remove that delay experienced (in most instances) when changing the input value or clearing the input box or changing assets

Friends Page

  • Updated CoinGecko item to include DEX listing

Refactor Redux Stores

  • Refactor every Bond store action using getState + added conditionals
  • Refactor every Dao store action using getState + added conditionals
  • Refactor every Pool store action using getState + added conditionals
  • Refactor every Reserve store action using getState + added conditionals
  • Refactor every Router store action using getState + added conditionals
  • Refactor every Sparta store action using getState + added conditionals
  • Refactor every Synth store action using getState + added conditionals
  • Refactor every Utils store action using getState + added conditionals
  • Refactor every Web3 store action using getState + added conditionals
  • Searched for every ref of every changed action and adjusted in the components accordingly

Refactor Listeners

  • window.addEventListener('focus') && window.addEventListener('blur') removed from all pages
  • New FocusProvider context created to handle 'page is in focus' state globally and added cleanup functions + conditionals to reduce the un-needed load

DataManager Refactor

  • Major refactor and cleanup of the DataManager flow
  • Still some more improvements available after #801 & #802

SynthItem & SynthTableItem Refactor

  • Whilst combing, found out that every instance of SynthItem & SynthTableItem was calling the global synthVaultWeight RPC calls every time synthDetails or poolDetails change
  • Was about 15 RPC calls per 10s period when user had the synth view open
  • Refactored this to the parent including a conditional to get the same result from 1-2 RPC calls per 10s period

Refactor UseEffects

  • src/components/Approval/index.js
  • src/components/AssetSelect/index.js
  • src/components/PoolSelect/index.js
  • src/components/Settings/index.js
  • src/components/Share/index.js
  • src/components/WalletSelect/index.js
  • src/components/WalletSelect/tabs/Txns.js
  • src/containers/Common/DataManager/index.js
  • src/containers/Common/Navbar/components/Supply.js
  • src/containers/Dao/NewProposal.js
  • src/containers/Dao/index.js
  • src/containers/Donate/index.js
  • src/containers/Liquidity/Components/Metrics.js
  • src/containers/Liquidity/LiqAdd.js
  • src/containers/Liquidity/LiqRemove.js
  • src/containers/Liquidity/index.js
  • src/containers/PU/Others.js
  • src/containers/PU/ReserveDetails.js
  • src/containers/Pools/NewPool.js
  • src/containers/Pools/SynthItem.js
  • src/containers/Pools/SynthTableItem.js
  • src/containers/Pools/index.js
  • src/containers/Positions/PoolPositions.js
  • src/containers/Positions/SynthPositions.js
  • src/containers/Swap/swapLps.js
  • src/containers/Swap/swapTokens.js
  • src/containers/Synths/index.js
  • src/containers/Vaults/BondVault.js
  • src/containers/Vaults/DaoVault.js
  • src/containers/Vaults/SynthVault.js

To do:


Protocol Site

GitHub Repo: https://github.com/spartan-protocol/spartan-site

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

New layout branch: new-site-tailwind

  • Setup new repo for newer layout
  • Switched to tailwindcss
  • Created DAO section
  • Created hero section
  • Created navbar
  • Created landing section
  • Created pool section
  • Created stake section
  • Created swap section

To do:

  • Continue working on newest layout design

Protocol API

GitHub Repo: https://github.com/spartan-protocol/spartan-api

Front-end: https://api.spartanprotocol.org/api/v1/pools

To do:

Protocol Subgraph

GitHub Repo: https://github.com/spartan-protocol/spartan-subgraph

Front-end: https://thegraph.com/hosted-service/subgraph/spartan-protocol/pool-factory

Protocol Contracts V3

GitHub Repo: https://github.com/spartan-protocol/spartan-contracts

To do:

  • Draft up general pool structure

Protocol Resources

GitHub Repo: https://github.com/spartan-protocol/resources

Protocol Docs

GitHub Repo: https://github.com/spartan-protocol/spartan-docs

To do:

Protocol Contracts V1 - V2

GitHub Repo: https://github.com/spartan-protocol/spartanswap-contracts


Ecosystem Project: SpartanSwap

SpartanSwap is just a placeholder for now, but it is a separate project with the intention of building an alternative frontend for users to interact with the Spartan Protocol pools. With a focus on swap functionality to start with and with larger dreams to iterate towards swap aggregation

SpartanSwap Contracts

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapContracts

  • Contracts repo placeholder setup

SpartanSwap DApp

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapDApp

  • DApp repo placeholder setup

SpartanSwap Resources

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapResources

  • Resources repo placeholder setup, just a temporary placeholder logo in there for now

Ecosystem Project: SpartanArena

SpartanArena is another separate project with a focus on creating subprojects that lean more towards 'gaming'. Some ideas in the works for the future may include an NFT looter game, lottery and a prediction / paramutuel game.

SpartanArena Contracts

GitHub Repo: https://github.com/SpartanArena/SpartanArenaContracts

SpartanArena DApp

GitHub Repo: https://github.com/SpartanArena/SpartanArenaDApp

SpartanArena Resources

GitHub Repo: https://github.com/SpartanArena/SpartanArenaResources


Project Information

Community Contribution

Spartan Protocol is at its core a community-built and run project. In this vein, the more contributors, the better. There is a great opportunity for community members to contribute. Please reach out in the community channels if you are interested.

Engage with the community and contributors

Where to find out about all the latest updates or suggest improvements — get involved.