SpartanDev: 12/04/21–18/04/21

SpartanProtocol
6 min readApr 19, 2021

DevUpdate: ~$40k BNB received from BSC BUIDL Program | DappV2 | SpartanContractsV2

Summary

This week Spartan Protocol received over $40k in BNB (at the time) in BNB-gas reimbursements as part of the BSC BUIDl Program. We are calling all Spartans to comment in the Twitter post + Telegram with ideas on how to use these funds to grow the protocol. Great ideas have included funding community grants and building out new feature sets.

All ideas are welcome as long as they look to the long term growth and development of the Spartan protocol ecosystem. The funds are public and auditable in the community bounty wallet. Please; if you have a cool idea that you can build or coordinate with others to build; share it with the community and the Spartan community bounty wallet will fund you/it!

Having learnt how to use GitHub to see the commits flow in has been eye-opening for just how hard this group of contributors are working! Aroo!!

Contributors continue to BUIDL the DAppV2 rollout with the contract ‘wen merge’ happening yesterday. I am surprised no one has asked what this means!

What does this post- ‘wen-merge’ era mean? Well, essentially it means that the V2 contracts are in no-major-change mode whilst it goes through its last stages of the internal and external-contributor audit.

We urge with a little more push now for the community to go to GitHub and have a look at the code if you have been dragging your feet!

Spartan Socials — Twitter

Top Impressions:

Top Engagement:

Top Community Mention:

SpartanSocials — Medium

SpartanSocials — Telegram

SpartanDev — SpartanContractsV2

  • Force harvest if weight > 0 instead of pool’s weight > 0
  • Fixed harvest() calc
  • Changed Pool & Synth naming convention in constructor to -SPP (pool) & -SPS (synth)
  • Changed synth mappings to shorter and more human-readable (_collateralBalance to lpBalance) & (_synthDebtFromLP to lpDebt)
  • Added two helper functions for those mappings (for DApp)
  • Updated automated tests accordingly
  • Added two helper functions for Router revenue (dividends) mappings
  • Refactor Migration contract
  • Improve gas by reducing some args
  • Major gas-reduction in addLiquidity (asym) by simply adding the tokens one-sided instead of swapping them first. Saving more than half of the previously-used gas before the refactor
  • This means no swap txn & no dividend; however, it instead creates an arb-opportunity which will theoretically create the same end resulting-swap without the LPer having to foot the bill for the extra gas
  • Makes more sense for the user benefitting from the transaction to pay the gas especially as that logic is already included in the swap function (removes a double-up)
  • Let Arbers do the arbs! Let LPers do the LPs!
  • Added automated test to ensure a flag is raised in the future if proposed code prevents users from withdrawing from the DAO if the pool is no longer curated
  • Update to Solidity 0.8.3
  • Replace safeMath operations with inbuilt math symbol operators (new Solidity) refactor based on that
  • Refactor lending contract
  • And of course; the all-important ‘wen merge’ happened on Apr 18th!

SpartanDev — SpartanDAppV2

It’s pretty safe to say that Spartan Contributors are rather ‘committed’ to the cause.

  • Iterated global styles
  • Clean up nav menu items
  • Make pages more compact
  • Fix column layouts in assetSelect and walletSelect
  • Fixed removeAsym estimated output math
  • bondLiquidity functional via DApp (theoretically, cannot test yet)
  • Language dropdown fix
  • Fixed addAsym with SPARTA input assetSelect bug
  • Added left-margin to assetSelect
  • Fixed Col spacings assetSelect
  • Update helper-calls for pastPoolRevenue & currentPoolRevenue (dividend mappins)
  • Fixed tabs in liqManagement view
  • RemoveLiquidityAsym fully function in Liq2 (replacement liq component)
  • RemoveLiquiditySym fully function in Liq2 (replacement liq component)
  • Fix modal placement on mobile
  • Get WalletSelect more streamlined; especially on mobile
  • Fix the assetSelect view
  • Fix the walletSelect view
  • Swap page styling and structure fixes
  • AssetSelect styling and structure fixes
  • Some focus put into improving the mobile experience
  • Add back in USD pricing below the input
  • WalletSelect styling fixes
  • Made the Approval component smarter
  • Added experimental ‘synth’ & ‘lp’ spartan-badges stamped over the asset to differentiate between 3 types of assets

+

  • Simplify addLiq
  • Made swap page more responsive mobile (stylesheet)
  • PoolInfo component created and added to Liq and Swap
  • PoolInfo made more responsive for different screen sizes
  • PoolInfo — added curated check
  • Fix header on mobile
  • AddLiqSym fully functional
  • WalletSelect fix for mobile
  • Updated terminology & new router addr
  • ‘Share’ component styling fixes

+

  • Contracts + Tokenomics component / dropdown fully functional
  • Synths fully function in SimpleSwap with UI related steps in the view
  • Got Liq2 (replacement Liq component) structurally setup
  • Improves swap page styling + mobile layout
  • Improved assetSelect mobile layout
  • RecentTxns component made smarter; Cols for event logs
  • Swap improved to next stage
  • Handle ‘zap liq’ calcs + inputs
  • SynthFromBase functional
  • Tokenomics popOver improvements
  • Improve nav / sidebar
  • Improve some SVGs to match proportions of other SVGs
  • Connected to newly deployed contracts
  • Add synth mappings to stores; improve swap component
  • Tokenomics popOver init

Contributor’s Focus

SpartanContracts

  • Lend V1
  • LendRouter V1
  • Final testing with extended contributors

Spartan DAppV1

  • Finalise migration-UI

Spartan DAppV2

  • Clean up UI, test for bugs in readiness for MVP
  • Test start-to-finish migration from testnet V1 to testnet V2 (within UI)

SpartanSite

  • DAO page
  • Lending page
  • FAQ page

Other Focuses

  • Video & text guides

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.

GitHub list of bounties available

Reach out on telegram to get involved: https://t.me/SpartanProtocolBounties

--

--

SpartanProtocol

Incentivized liquidity and synthetic asset generation for Binance Smart Chain. https://SpartanProtocol.org