SpartanDev: 15NOV21 - 21NOV21

Dev Update

SpartanDev: 15NOV21 - 21NOV21

Another busy week of building from the Spartan Protocol community with the Positions page, SynthVault incentives, BUSD Bond-listing & charts of metrics all going live

SpartanDev: 15NOV21 - 21NOV21

Positions Page

The 'Positions page' is now live! You can visit the community DApp and have it easily crunch through all your liquidity-related transactions to assess your current position in seconds - a vast improvement on the V1 Positions page!

Many scopes are covered to ensure you can assess from all angles. Visit the page here:

Spartan Protocol | Liquidity & Synthetics on BSC | DeFi
Spartan Protocol provides community-governed and programmable token emissions functions to incentivize the formation of deep liquidity pools

Keep in mind, positions are quite complex, you might want to take your time and follow the guide in the Docs the first time you use the Positions page:

Positions - Spartan Protocol

Synths

In case you have been living under a rock, Synths are now live! Every second, the SynthCap is gradually increasing, allowing more Spartan Protocol yield-generating synthetic assets to be forged.

The high APY and caps have ensured that each of the first three synthetic assets has constantly pushed against its cap, and they are proving to be very popular.

This increase will be a very gradual process for the first month or two whilst the caps progress up towards the 15% mark.

First Quiz Winners

Our first #FridayFor300 quiz was completed this week with the 3 Spartan winners receiving their 100 $SPARTA each. The question was 'Name the settlement asset used in Spartan Protocol pools' and the answer was of course $SPARTA!

Every pool has its token paired with $SPARTA so that there is a common settlement asset to derive pricing and demand.

New Quiz

The new #FridayFor300 quiz was kicked off the next day and is still open. The question is: "Name one advantage of a Spartan Protocol Curated pool".

Feel free to follow the below link to reply on Twitter with your answer & a chance to #LearnToEarn:

AVA - #OpenTheGates

With the $AVA : $SPARTA pool hitting its caps this week, there was some community drive to #OpenTheGates and let some more TVL flow into that pool.

The cap was doubled, and we very quickly saw almost the entire cap-room fill up immediately. Might not be long until we see another demand to #OpenTheGates for the AVA pool.

BUSD Bond-Listing

The DAO has been a bit out of the spotlight this week vs previous weeks, but it is still chugging along doing its thing! The DAO proposal to list $BUSD for the Bond program reached majority consensus and was successfully passed.

Charts

The DApp has been having a bit of a 'data' focus since the SubGraph was set up for the Positions page as explained above, which also enables historical data and general metrics to be presented, which are quite cool. Some of this data was showcased this week with the beginning of some charting being added to the DApp.

Here we have some examples of the global metrics:

And the pool metrics:

FeeBurn Update

Now that the FeeBurn is well understood by the Spartan community, burn event updates and highlights will be shared monthly instead of weekly.

You may however check the current burn status whenever you like by visiting the DApp and clicking the fire icon in the top-right.

Spartan Socials - Twitter

Tweet of the Week:

Community Tweet of the Week:

SpartanSocials - Medium‌

SpartanSocials - Telegram


Contributor's Focus

Its been a busy couple of months since the release of MainNet v2, completing objective after objective. We move into an era of further refinement and shift focus more to the integration of Spartan Protocol into aggregators and the wider BinanceSmartChain Ecosystem as originally intended.

COMPLETE  ✅ - Enable Synths

COMPLETE  ✅ - Build a 'positions' page for the DApp

COMPLETE  ✅ - Enable SynthVault Incentives

IN PROGRESS - Build some charting/analytics into the DApp

IN PROGRESS - Connect SPARTAv2 pools to aggregators

Overhaul style/UI of DApp

Post-C4-contest article on the top issues

Work with CMC/CoinGecko to feed in the SPARTA pool info

March onwards with our original goals of building the decentralised, yield-generating synthetics protocol on Binance Smart Chain


GitHub Activity — Spartan DApp v2

/package.json

  1. Added chart.js & react-chartjs-2 dependencies to enable charting in the DApp

src/components/Approval/Approval.js

  1. Fixed broken gas check in the Approval component

src/components/DataManager/DataManager.js

  1. Added loop to get the global metrics from subgraph every 20s

src/store/web3/*.js

  1. Added getGlobalMetrics logic to handle adding the called data to the Redux store

src/utils/extCalls.js

  1. Added callGlobalMetrics() to handle calling the subgraph to get the global metrics data
  2. Added callPoolMetrics() to handle calling the subgraph to get a specific pool's metric data

src/utils/math/nonContract.js

  1. Added helper formatDateDay() to retrieve the day of the month from a Unix timestamp

src/utils/web3.js

  1. Changed the synthHarvestLive const to true so that the DApp reflects the SynthVault incentives being live

/views/pages/Liquidity/Components/Charts/ChartRevenue.js

  1. Created a chart component for pool's revenue

src/views/pages/Liquidity/Components/Charts/ChartTVL.js

  1. Created a chart component for pool's TVL

src/views/pages/Liquidity/Components/Metrics.js

  1. Created parent component to crunch the data and house the charts/metrics in the liquidity view

src/views/pages/Pools/Charts/ChartTVL.js

  1. Created a chart component for global TVL

src/views/pages/Pools/Charts/ChartVol.js

  1. Created a chart component for global volume

src/views/pages/Pools/SummaryItem.js

  1. Replaced the text here with the new charts

src/views/pages/Positions/Overview.js

  1. Added an information tile to the Positions page with a link to the docs

src/views/pages/Swap/Components/Charts/ChartPrice.js

  1. Created a chart for the historical price of token (derived internally via pool ratios) in the Swap screen

src/views/pages/Swap/Components/Metrics.js

  1. Added a parent metrics component for the swap screen

src/views/pages/Vaults/SynthVault.js

  1. Fixed missing synthMinting data with clean page refresh on SynthVault page by adding a call to getSynthMinting()

src/views/pages/Vaults/SynthVaultItem.js

  1. Fixed broken SynthVault APY by adding in the missing fees argument

GitHub Activity — Spartan Subgraph

/schema.graphql && /subgraph.yaml

  1. Changed mintSynth -> forgeSynth
  2. Changed burnSynth -> meltSynth
  3. Added tokenPrice to MetricsPoolDay to track historical internally derived token price

src/mappingDao.ts

  1. Fixed 'Bond events making pool balances & supply increase' by commenting out the additional lines updating the pool balances before the addLiq event is emitted which does the same thing (double up)

src/mappingPool.ts

  1. Added all the logic for handleMintSynth
  2. Added all the logic for handleBurnSynth

src/utils.ts

  1. Added logic to internally derive and log tokenPrice once per day in checkMetricsDay

GitHub Activity — Spartan NFTs

Setup playground repo for contributors to experiment with ERC-1155 (BEP-1155) contracts and general tooling to get set up for minting the Spartan Protocol Bram Vanhaeren Collection of NFTs (https://twitter.com/BramVanhaeren)

Just an initial commit for now with a bunch of general Solidity & local-blockchain tooling as a base to get started.


Project Information

  • Website: https://spartanprotocol.org/
  • DApp: https://dapp.spartanprotocol.org/
  • GitBook (Docs): https://docs.spartanprotocol.org/
  • GitHub: https://github.com/spartan-protocol

Community Contribution

Spartan Protocol is at its core, a community-driven and led project. In this vein, the more contributors the better. There is a great opportunity for community members to contribute by making LP reward analysis tools, etc.

Recently, community members have been graciously funnelling in to contribute to explainer articles, ideas and even $SPARTA donations to support the growth of the platform.‌

Binance Smart Chain testnet Faucet

Engage with the community and contributors

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