SpartanDev: 18APR22 - 24APR22

Dev Update

SpartanDev: 18APR22 - 24APR22

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.

SpartanDev: 18APR22 - 24APR22

Listed as Exchange on CoinMarketCap

A big thankyou to CoinMarketCap for pushing this through and getting the Spartan Protocol pools linked up as a decentralised exchange listing. Now when viewing listed assets (that have their BEP20 equivalent linked via CMC) we will see the SPARTA pairs listed under the 'markets' tab with some of the relevant liquidity details.

This is not yet in a final state, ongoing work is to be done so keep your eyes peeled for any possible finalisations of the integration in the future.

Wind Down SynthVault - 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!

Pooled Stablecoins Update

This week we saw another stablecoin update go out, check out the community DApp for the latest APY estimates (currently 9% to 17% pool APY for stables + ~40% additional for DaoVault staking)

DApp Improvements Live

The front-end community contributors have been hard at work over the past months, rebuilding the bones of the community DApp. It was functional enough to merge live this week for Spartans to use with mainly technical/functional improvements but also some UX improvements. With the stylesheets ripped out early in this process, most of the colors/style elements (UI) are basic placeholders so don't stress if you don't like how it looks as much as the previous branch, with the DApp moving into a position for branding/style experts to begin putting out some suggested color schemes etc as that obviously has not been a focus yet.

WhaleStats Charts

BNBMaster Notable DEX List

BSCDaily Top Gainers

CoinMarketLeague Charts

4thTech Dev Update

LearnToEarn Quiz Winners

Congratulations to our most recent Spartan quiz winners! The question/answer was a reminder that the protocol does not provide fixed APYs, we can only estimate them as we do via the community DApp

New 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 in the social channels if you are not sure! The community is there to help and these quizzes are all about learning!


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


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.

General:

  • Outline-style buttons make text normal color
  • Dropdown menus (dark theme) make dark color for text readability
  • Added some default theming to Popovers to suit both dark/light modes
  • Added some default theming to Tables to suit both dark/light modes
  • Added some body and html CSSrules to make mobile browser behaviour with vh100 a little better
  • Added BNBChain & CoinGecko to Icons component
  • Removed old Footer component
  • Added a scroll-shadows css rule (one for dark mode and one for light mode) to add visual cues when an area is scrollable (especially for areas where we have hidden the scrollbar like the sideNav bar)

Modals:

  • Replaced default scrollbar with a simple styled one that suits the theme a little better (won't work on all browsers)
  • Changed the desktop 50% height to 95 view height max-height on all device sizes (mainly solves on desktop: no more short, stumpy modals with scroll, no more super-tall empty-bottom modals)
  • Simplified header & footer bg-color to just be a semi-transparent darken (so that when color palettes change later these don't have to be changed

Settings:

  • Added a 'reset to default' function to the settings component
  • Added a button to change selected settings to recommended

Swap:

Created a new feature to derive the estimated USD value from CoinGecko as a 1st priority

  • Added tooltip mentioning where the pricing data is derived from (internally or coingecko)
  • If the DApp fails to call the CG data, it falls back to previous behaviour(internal pricing)
  • This is only for the ~$USD figure that is displayed underneath the input token amount and output token amounts on the swap page
  • Contracts page removed useTheme dynamic styling and let CSS rules handle it instead
  • Now, when there user is performing a successful arbitrage, for instance: user swap 10 BUSD for 11 USDC (gain of ~10%) instead of the dapp showing a negative (loss) number due to deriving internal pricing on one or two unbalanced pools, it will show a positive number (as long as CG data is correct & in balance)

TopNav + Wallet:

  • Refactored AddressConn.js to remove repeat code and some states/functions that didn't really need to be there
  • This component now shows the BNBChain icon with a connection indicator and the connected wallet's shortened address. If no wallet is connected it shows 'Connect Wallet'
  • Supply component changed slightly with dollar sign and larger sparta icon
  • Removed the ThemeSwitcher (now in sideNav)
  • Removed the LanguageDropdown (now in sideNav)
  • Removed the Contracts (now in sideNav)
  • Added hamburger menu icon for desktop size (instead of 'fixed' toggling arrow) and changed the behaviour accordingly to suit (hover over sidenav still expands it, but clicking the hamburger icon toggles it locked extended or compact)
  • Added horizontal (non compact) version of the Spartan Protocol logo + text in the topNav rather than sideNav
  • TopNav changed to run the full width of the screen and sideNav now starts underneath it

SideNav / Sidebar:

  • Created a Utilities component to house the Settings, LanguageDropdown & ThemeSwitcher components
  • Place the Utilities inside the sideNav for mobile and desktop and created a general structure & style
  • Rebalanced the structure and items in the sideNavs and added overflow handling so that the whole sidebar is never larger than the available height space of the screen
  • The behaviour now is that the top and bottom of the sidebar are always visible and the middle section (the nav links) have a hidden overflow with the ability to scroll just that middle section
  • Scroll shadows added for this section and the scrollbar hidden (might need better UX visual cues added here but its pretty good as is for the minor few who have screen resolutions that small (would have to have less heigh pixels than an iPhone to come across the nav menu being exposed to overflow scroll)
  • Language dropdown component rebalanced and cleaned up a bit for better styling, force the dropdown to appear top on mobile and right on desktop
  • Moved most of the sidebar open/close fixed/dynamic state handling logic to the parent components it can be passed down to multiple components where required

Liquidity:

  • Added a conditional check for 'curated' for the 'frozen' confirmation for pools that are out of their TWAP zone

Synths:

  • Removed the internally derived USD value estimates temporarily whilst work on a less nuanced solution

To Do:

Dark mode system settings + edge case browsers Β· Issue #768 Β· spartan-protocol/SpartanProtocol-DAppV2
The current SVGs (and some other elements) act wierd if user is using a safari related browser and device is set to dark mode in its system settings and light mode inside the DApp If we add a hard ...
WalletConnect | Investigate and fix Β· Issue #767 Β· spartan-protocol/SpartanProtocol-DAppV2
Add chainId to new WalletConnectConnector() object setup in web3React.js On 1-device connections, the default button shown works great but connects to ethereum network instead of BSC Fix button&#39...
TopNav & SideNav changes | Logo + menu trigger Β· Issue #762 Β· spartan-protocol/SpartanProtocol-DAppV2
Now that we have moved elements from the topNav and have room on all screen sizes (potentially) for the full horizontal logo, lets make the next few changes. This will also solve the sometimes-bad-...

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.

Temporary refresh of existing/old site:

  • Added a .gitignore for the old simple HTML website
  • Changed 'Gitbook' refs to 'Docs'
  • Changed 'DAppV2' refs to 'DApp'
  • Changed 'BSC' refs to 'BNBChain' (where it made sense)
  • Removed the separate pages of the website (DAO, pools etc)
  • Changed the nav menu to jump to sections of the landing page rather than the separate pages of the website
  • General resize of major elements
  • Updated the language used throughout including the header tags
  • Removed most of the existing text and added quick informational replacements for the relevant features available on the protocol. Added jump anchor IDs for the nav to jump to
  • Removed some less important social links from the hero (they are all still available in the footer)

To Do:

  • Create an alternative style mockup then review and build for A/B compare to the other new website

GitHub Activity - Spartan V3 Contracts

GitHub - spartan-protocol/spartan-contracts: πŸ“ƒ Spartan Protocol Smart Contracts V3 Suite
πŸ“ƒ Spartan Protocol Smart Contracts V3 Suite. Contribute to spartan-protocol/spartan-contracts development by creating an account on GitHub.

General:

  • Setup placeholder repo to coordinate any future pools v3 smart contract code

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:

Developers Section Β· Issue #6 Β· spartan-protocol/spartan-docs
Get ready for live (first phase live): List the API information & links to the docs (or maybe use this as the official location for the API docs?) Swap aggregator integration guide (get BASE -&...
Contribute Section Β· Issue #7 Β· spartan-protocol/spartan-docs
Get ready for live (first phase live): Telegram / socials (explain how to connect &/or help in the community channels) Resources (how to contribute art, graphics, memes, etc) Make a quick guide...

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:

  • Distribute the NFTs

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.

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.

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.

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.

GitHub Activity - Spartan V2 Contracts

GitHub - spartan-protocol/spartanswap-contracts: πŸ“ƒ Spartan Protocol Smart Contracts V1 - V2
πŸ“ƒ Spartan Protocol Smart Contracts V1 - V2. Contribute to spartan-protocol/spartanswap-contracts development by creating an account on GitHub.

Project Information

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.

Engage with the community and contributors

Where to find out about all the latest updates or suggest improvements β€” get involved.