SpartanDEV: 31JAN22 - 06FEB22

Dev Update

SpartanDEV: 31JAN22 - 06FEB22

Catch up this week on all the latest Spartan Protocol news. Two pools raised caps, new DAO proposal, OKX live edu chat, new analytics report and much more!

SpartanDEV: 31JAN22 - 06FEB22

Summary

Read up on all the latest events in Spartan Protocol for the week!

  • BUSD & USDT pool caps raised
  • New DAO proposal
  • #FridayFor300 quiz updates
  • OKX AMA / educational DeFi chat
  • Upcoming ONTO wallet AMA
  • New SpartaAnalytics report for January 2022
  • Community DApp updates
  • New website/landing page updates

#OpenTheGates in $BUSD Pool

The $BUSD pool had its liquidity caps raised early in the week to allow in more SPARTA. Thanks to Leonidas I for making some noise with #OpenTheGates and making it happen!

New DAO Proposal - Curate $USDT Pool

Well, it certainly has been some time since we had an active DAO proposal! #FlashbacksToBond! The last proposal was for a grant to the community wallet to help with marketing & partnerships which we are still reaping the benefits of! Pretty early in the week, we saw a new proposal pop up to Curate the $USDT pool.

This means it would be enabled for DaoVault staking leading to its liquidity providers having weight in DAO proposals.  This will also increase the yield/revenue in the pool and is likely to drive the pool deeper.

Big thanks to our QueenGorgo for communicating this to the community and helping us all understand what this means!

Winners of #FridayFor300 Quiz

We had our fresh Sparta winners of the #EarnToLearn quiz this week raking in some sweet SPARTA rewards each! The question was:

Which Router function swaps your LP tokens for a different pool's LP tokens?

The answer of course was zapLiquidity()! 'Zapping' your liquidity between pools is quite a cool function to have. It might get some extra use when/if the $USDT pool gets Curated for some $BUSD LPers to zap some of their liquidity over to the $USDT pool 😉 Remember to check the slippage/fees when you do zaps to ensure your output rate meets your expectations

#OpenTheGates $USDT Pool

The DAO proposal to Curate $USDT appeared to inspire some new liquidity, reaching its caps pretty soon after being proposed. Here we can see the new liquidity entering the pool:

Thanks to EvilMessiah for making #OpenTheGates happen in the community!

New #FridayFor300 Quiz

We now have a new quiz live and ready to go!

Which DAO function claims SPARTA yield into your wallet?

This quiz is currently open and will remain open until ~Thursday so feel free to jump on & answer the question to be in the running for a SPARTA prize!

OKX Talks - DeFi AMA

We also saw our Spartan warrior Phillip donate his time to help contribute to the educational discussion on the topic of DeFi with our friends over at Coin News Extra, check out the chat here.

Upcoming ONTO Wallet AMA

Phillip will also be the face talking 'all things SPARTA' in the upcoming AMA with ONTO Wallet (what a busy guy!) Their lovely mobile wallet was recently integrated with the Spartan Protocol community DApp and this upcoming AMA will mark the first official event celebrating our newfound partnership together.

End-of-Week Proposal Update

The new DAO proposal was a little slow to get started but suddenly jumped forward in support literally just before the week ended. Spartans must have taken a few days to wake up and get involved! It is looking likely that we will have this proposal over the line this week, keep your eyes peeled and don't forget to vote if you support it and ask questions if you are not sure!


SpartAnalytics

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 January report here.


GitHub Activity - Spartan <> Bram NFTs

GitHub - spartan-protocol/spartan-nfts-bram-01: 🎭 Spartan Protocol NFTS 01: the Bram Vanhaeren Collection (https://twitter.com/BramVanhaeren)
🎭 Spartan Protocol NFTS 01: the Bram Vanhaeren Collection (https://twitter.com/BramVanhaeren) - GitHub - spartan-protocol/spartan-nfts-bram-01: 🎭 Spartan Protocol NFTS 01: the Bram Vanhaeren Collec...

Completed, all that remains is distribution! Please be patient and allow the contributors time to work out how these NFTs will be distributed. In the meantime please check out Bram on Twitter and show your support!

To Do:

  • Plan & distribute the NFTs

GitHub Activity - Spartan UI Library

GitHub - spartan-protocol/spartan-ui-library: ⚙ Spartan Protocol Community UI Components
⚙ Spartan Protocol Community UI Components. Contribute to spartan-protocol/spartan-ui-library development by creating an account on GitHub.

This component library has taken a bit of a back seat for now with a focus on cleaning up the existing DApp repo instead of rushing this one. Contributors can come back to this & work towards the initial plan of making it a whole component UI library (for all community DApps, not just the current one) instead of the in-between phase that it was becoming (the partial work will shift from here to a branch on the DApp repo soon for the DApp-refresh phase to continue)

Hence the below to-do list is now pointing towards what was previously meant to be the 'next stage':

To Do:

Create UI Library #00 · Issue #4 · spartan-protocol/spartan-ui-library
Phase 01 - Build Basic Library: #1 #3 #2


GitHub Activity - Spartan Docs

GitHub - spartan-protocol/spartan-docs: 📑 Spartan Protocol Community Documentation
📑 Spartan Protocol Community Documentation. Contribute to spartan-protocol/spartan-docs development by creating an account on GitHub.

To Do:

Need help with all sections ranging from grammar/spelling to copy-content creation, graphics (need to make it more visually appealing now!), to video versions of the text guides (these would be great under each relevant section), text guides and so on.

Some GitHub tasks are setup here:

Donate section · Issue #18 · spartan-protocol/spartan-docs
Get ready for live (first phase live): Why donate? (explain its a community project) What does it go towards (show examples of previous campaigns like codearena) How to donate guide
Upgrade Section · Issue #17 · spartan-protocol/spartan-docs
Get ready for live (first phase live): Whats with V1 & V2 How to upgrade guide (no need for the ‘claim’ stuff anymore, can be removed from docs & dapp)
Add a serverless ‘comments’ feature · Issue #10 · spartan-protocol/spartan-docs
Contributors who are maybe scared of Github or want to very quickly report a spelling mistake or something similar could benefit from a commenting system below each page. We can use GitHub Issues a...
Contribute Section · Issue #7 · spartan-protocol/spartan-docs
Get ready for live (first phase live): Telegram / socials (explain how to connect &amp;/or help in the community channels) Resources (how to contribute art, graphics, memes, etc) Make a quick guide...
Developers Section · Issue #6 · spartan-protocol/spartan-docs
Get ready for live (first phase live): List the API information &amp; links to the docs (or maybe use this as the official location for the API docs?) Swap aggregator integration guide (get BASE -&...
Add Coinbase Wallet info · Issue #21 · spartan-protocol/spartan-docs
Add Coinbase Wallet info to &#39;Choose Wallet&#39; section after integration Links to use: https://www.coinbase.com/wallet https://www.coinbase.com/wallet/getting-started-mobile…

GitHub Activity - Spartan DApp

GitHub - spartan-protocol/SpartanProtocol-DAppV2: 📱 Spartan Protocol Community DApp
📱 Spartan Protocol Community DApp. Contribute to spartan-protocol/SpartanProtocol-DAppV2 development by creating an account on GitHub.

Quite a few updates were squeezed into the DApp this week.

CoinBase Wallet Integration

Spartans may have noticed a new icon pop up in the DApp this week for CoinBase Wallet. Integration was completed this week and you can now use Walletlink / CoinBase Wallet mobile to connect and interact with the Spartan Protocol community DApp.

General Changes

  • Updated sitemap
  • Changed all document.location.reload() to document.location.reload(true) to enforce a hard refresh

Added LP Units Metrics

Data-lovers, we have a new metric to play around with when analyzing pools! Graphs of LP units should not be taken too seriously, but they are very helpful at determining the direction/velocity of liquidity in a pool. For instance if TVL drops in a pool, it is hard to know for sure whether it was because of underlying asset prices dropping or if it is because liquidity left the pool. Using a combination of TVL metrics + LP units metrics, we can now be a lot more sure what the cause is.

As you can see in the screenshot below, the AVA pool has had a very impressive natural and consistent accumulation of liquidity for over a month now. AVA:SPARTA warriors are silently accumulatingthose sweet AVAp's!  

BondVault Date Formatting

Previously we had the 'final date' for your Bond claim converted to your browser's locale to make it automatically suit your locale most of the time. However a more globally-obvious format was requested and actioned this week to now show dates like this: 01-JAN-2022. The same helper function is also used to format the dates underneath completed proposals, so you will also notice they have changed

AssetSelect Only if inFocus

There has been a range of issues in the DApp for instances such as:

  • On iPhone if you have more than one tab open with the DApp loaded yup in each

Selecting an asset on most screens would result in the selection acting weird and jumping between assets. This is of course quite edge-casey, but a solution was implemented this week to simply only run the logic to change the selected asset in the DApp if the tab/app/windon is in focus. Whilst this has been tested before merging in, it has a lot of contributing factors such as device/browser/app/etc so if you still manage to run into this issue, please take note of your device, browser etc and reach out on Telegram or Github to let us know

Hide 'Current' TVL on Testnet

Another little minor one, on testnet we have had some scares where users think the TVL has dropped down to zero because testnet assets have no value and the charts reflect that. To nip this one in the bud we simple chack if the selected networks not mainnet and hide the last datapoint (current) if so.

Hide Positions on Testnet

We also put in a check to make sure the positions page doesn't show up if you are on testnet, as Positions don't really apply there.

Fallback y-axis Scale for Price Charts

Previously, the charts all auto-scaled to the range of data available. This is only really an issue on line charts of stablecoin prices. We were finding that extremely stable pricecharts were being viewed as 'very volatile' due to the data range being so small and the chart auto-zooming right in.

This has been solved by adding a fallback range of 6% in both directions. The end result as you can see below is closer to expectations, where the stablecoin price charts are sufficiently zoomed out enough by default to match the stable, non-volatile nature of their price action.

Bonus points also for noticing that the BUSD chart has been un-hidden not that averaged internal pricing is using both the BUSD & USDT pools. USDT is sufficiently deep enough now to have some weight in the average pricing in USD for our DApp.

SynthVault Changes

Some changes as requested by community member in the SynthVault too. Instead of replacing the 'harvestable' amount with 'baseCapped' when the pool is full. We now show the amount that 'would have been claimable' and instead disable the button and show the message there as 'Pool at Capacity' instead which is a lot less ambiguous for new users.

To Do:

Liquidity Page | Add DaoVault APY · Issue #678 · spartan-protocol/SpartanProtocol-DAppV2
Add in the DaoVault APY below the pool APY like on the home/pools page

GitHub Activity - Spartan Subgraph

GitHub - spartan-protocol/spartan-subgraph: 🏃‍♀️ Spartan Protocol Subgraph
🏃‍♀️ Spartan Protocol Subgraph. Contribute to spartan-protocol/spartan-subgraph development by creating an account on GitHub.

The new subgraph was used to facilitate the addition of the 'LP Units' metric as explained above. Thanks, Subgraph!


GitHub Activity - Spartan Resources

GitHub - spartan-protocol/resources: 🎨 Spartan Protocol Branding & Resources
🎨 Spartan Protocol Branding & Resources. Contribute to spartan-protocol/resources development by creating an account on GitHub.

No activity in this repo for the week.


GitHub Activity - Spartan Site

GitHub - spartan-protocol/spartan-site: 🕸 Spartan Protocol Community Website
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.

Quite a lot of changes in the website/landing page repo this week! This has become a major focus and will continue to be for likely another week or two whilst working on delivering a fresh new 'non-content-heavy' website for our hungry Spartans now that we have the heavy text content covered by our documentation.

Here's a little taste of a recent mockup for the mobile layout from a lovely Spartan community member:

General Summary (Mobile layout):

  • Navbar was built
  • Header-hero was built
  • Each informational-hero section was templated and content pulled in thru API
  • Security feature boxes all templated up and pulled in
  • Added feature to dynamically load scaled down/up image size based on size of screen for faster load-times on mobile devices

To Do (Mobile Layout):

  • Replace footer with new mockup version
  • Replace navbar with darker non-transparent mockup version
  • Adjust fonts as per new mockup

To Do:

Build Mobile Layout (xs) · Issue #71 · spartan-protocol/spartan-site
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.
Build Tablet Layout (sm) · Issue #72 · spartan-protocol/spartan-site
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.
Build Laptop Layout (md) · Issue #73 · spartan-protocol/spartan-site
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.
Build Desktop Layout (lg) · Issue #74 · spartan-protocol/spartan-site
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.
Build High-res Layout (xl) · Issue #75 · spartan-protocol/spartan-site
🕸 Spartan Protocol Community Website. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.
Fine-tune content in CMS · Issue #76 · spartan-protocol/spartan-site
This will be a communal effort to fine-tune any wording and other content within the CMS to have it best suited to the end-result website in each layout

GitHub Activity - Spartan Arena Contracts

GitHub - spartan-protocol/spartan-arena-contracts: ⚔ Spartan Arena Contracts
⚔ Spartan Arena Contracts. Contribute to spartan-protocol/spartan-arena-contracts development by creating an account on GitHub.

No public Github activity on the NFT/Gaming contracts this week.


GitHub Activity - Spartan API

GitHub - spartan-protocol/spartan-api: 👩‍💻 Spartan Protocol Simple Headless API
👩‍💻 Spartan Protocol Simple Headless API. Contribute to spartan-protocol/spartan-api development by creating an account on GitHub.

No public Github activity on the API this week.


GitHub Activity - Spartan Contracts

GitHub - spartan-protocol/spartanswap-contracts: 📃 Spartan Protocol Smart Contracts
📃 Spartan Protocol Smart Contracts. Contribute to spartan-protocol/spartanswap-contracts development by creating an account on GitHub.

No public Github activity on the DeFi contracts this week.


Project Information

  • Website: https://spartanprotocol.org/
  • DApp: https://dapp.spartanprotocol.org/
  • Documentation: 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.‌

Engage with the community and contributors

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