SpartanDev: 08NOV21 - 14NOV21
Last week went by in a flash... faster than a Flash Bond! The DAO saw a cancelled ETH proposal and a promising BUSD one, meanwhile, Synths were enabled to be Forged finally on V2 marking a very large milestone for this community project!

Dao Proposals
This week the proposal to get ETH listed as a Curated pool did not meet consensus and was cancelled, followed by a new proposal to list BUSD for Bond which reached consensus very fast and is likely to be finalised very soon!
DAO Update
— Spartan Protocol (@SpartanProtocol) November 12, 2021
Proposal #5
Initial consensus has been reached to list $BUSD for the #Bond program. Looks like the majority want to Bond some #stablecoins!
3 day cool-off period just began, after which if it still has > 50% support can be finalised!$SPARTA #DAO #SpartanProtocol pic.twitter.com/Cwa0fdnEdf
Flash Bonds
A round of small Flash Bonds went live to make up for the imperfect attempt at regulating the first Bond allocation via the pool caps. It was very successful with 500K SPARTA being bonded on 4 occasions 12 hours apart giving everyone a chance to get some Bond in. There were some unfortunately-timed RPC issues for 2 of the Bond events but ultimately time was the bigger factor here with each allocation being eaten up in a mere minute or two. Spartans wanna Bond it would seem!
With Flash Bonds out of the way, we can now resume the usual 2M full allocations as proposed and actioned by the DAO.
📸Flash Bonds Complete📸
— Spartan Protocol (@SpartanProtocol) November 11, 2021
👏There you have it folks, $7M+ TVL!
🦸This controlled round was better aligned with the intended plan for the 1st Bond
🫂 If the DAO proposes future Bond allocations:
- Full 2M $SPARTA
- No #OpenTheGates to worry about
⚔️Onward!⚔️ pic.twitter.com/yNEaqRIkW5
SYNTHS!
Wow-what a week! And to top it all off we got Synths enabled too! That's right! Synths are now enabled on Spartan Protocol V2. The Synth Caps are dynamic and open up every second to let in more Synth minters.
SynthVault incentives are not yet enabled, once some time has passed to allow more distributed weight (remember we did the same thing with the DaoVault harvest rewards) the incentives will be enabled and no doubt drive a lot more demand for these yield-generating assets.
1/ Synthetics are now live!
— Spartan Protocol (@SpartanProtocol) November 12, 2021
- SynthCaps dynamically change with pool depth & time
- Only curated assets can be Synthesized (currently $BNB, $BTCB & $BUSD)
- There is no rush to forge Synths, everyone will have the opportunity in their own time
#300SPARTA Quiz Fridays
The first quiz Friday kicked off with an easy one to grease the wheels!
The competition is still open, all you have to do to qualify is reply to the tweet with the answer to the quiz question "Name the settlement asset used in the Spartan Protocol pools"
🤓 #FRIDAYFOR300 Quiz Time! 😋
— Spartan Protocol (@SpartanProtocol) November 12, 2021
Winners will be announced next week 🥳
Topic = AMM (Automated Market Maker)
Difficulty = Easy
Name the settlement asset used in #SpartanProtocol pools.#300SPARTA
Spartan Pools
Just a friendly reminder that Spartan Protocol is an AMM that provides its own markets for swapping assets. If you are looking to trade $SPARTA you really should be doing it through the Spartan pools to ensure you get the best rate!
Have had many reports recently of Spartans buying $SPARTA on other DEXs and being exposed to massive price impact/slippage. A quick thread comparing rates here:
🤔Comparing rates to buy $SPARTA 🙌
— Spartan Protocol (@SpartanProtocol) November 9, 2021
Winner - Spartan Protocol 😍 🥳https://t.co/yQZUSH03K2
Swap Rate
1 $BNB = 1,558 $SPARTA pic.twitter.com/VUHq8nUcrW
Wednesday feeBurn Update
As the use of SpartanProtocol V2 increases, so does the feeBurn activity of $SPARTA (first time over 100,000 being burnt in a week).
🔥🔥 $SPARTA feeBurn Update🔥🔥
— Spartan Protocol (@SpartanProtocol) November 10, 2021
Total Burnt🔥
⚔️ This week - 671,720
🛡 Last week - 568,068
Weekly Burn 🔥
🔼 This Week - 103,652
🔼 Last Week - 80,498https://t.co/HNIIKR3Vui#OpenTheGates #BinanceSmartChain #DeFi #Crypto #bsc #bnb #SpartanProtocol pic.twitter.com/HrXCWugS36
Spartan Socials - Twitter



Tweet of the Week:
We've been through alot. 😮💨
— Spartan Protocol (@SpartanProtocol) November 8, 2021
And we're going to make it. 😈$SPARTA
Community Tweet of the Week:
@SpartanProtocol #spartanprotocol #synths $SPARTA #BSC #BinanceSmartChain
— Crypticalcrypto (@crypticalcrypto) November 11, 2021
Who is ready?! pic.twitter.com/i5jX9FCEuP
SpartanSocials - Medium

SpartanSocials - Telegram


Contributor's Focus
COMPLETE ✅ - DAO incentives
COMPLETE ✅ - DAO proposals
COMPLETE ✅ - Begin Bond V2
COMPLETE ✅ - Reserve diversifying into LPs
COMPLETE ✅ - Set up Subgraph
COMPLETE ✅ - Enable Synths
IN PROGRESS - Build a 'positions' page for the DApp
IN PROGRESS - Connect SPARTAv2 pools to aggregators
Enable SynthVault Incentives
Build some charting/analytics into the DApp
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 Contracts v2
Main Branch
contracts/Router.sol
- Simplified dividend revenue 'history' logic (use subgraph instead)
contracts/Synth.sol
- Added a 'realise' event to keep Subgraph in sync
sLend Branch
contracts/lendBase.sol
- Set up contracts for 'Lend SPARTA' implementation (yes... single staking SPARTA):
- Users bring SPARTA to lend to the protocol
- Gets asymmetrically added as liquidity, LP tokens held by protocol (POL)
- The user gets no exposure to impermanent loss / impermanent gain and no exposure to revenue/incentives from the LP tokens, if they provide 1000 SPARTA, they are owed 1000 SPARTA + pre-agreed interest when their position expires
- Fixed lend sizes, slots & time periods f0r a fixed % yield
- A lot of details still to simulate and work out of course, and this is just one of many implementations. But it's a nice simple one that could be turned around rather fast compared to a lot of others (and it has the advantage of offering single staking + protocol owned liquidity with minimal development time)
GitHub Activity — Spartan DApp v2
General
- Updated ABIs to fix any broken txn parsing (for recent txns/history list)
- Updated every web3 function/action to include the new rpcs list (to ensure best RPC is used)
- Replaced all dividend/incentive tracking logic to use subgraph data instead
- Added a bunch of tooltips
- Show full WEI amount in tooltip on hover of the input wallet balance on all components & also on the pools page when hovering over the token's derived price

src/components/DataManager/DataManager.js
- Added call (20s interval) to check all RPCs and sort by best first
- Added call (whenever curated pools update) to get the new rolling 30-day incentives data from the subgraph
src/components/Notifications/Notifications.js
- Updated notification text to point user at the right spot (recent txns is in the wallet modal now)
src/components/WalletSelect/WalletSelect.js
- Improved WalletConnect logic:
- Uses best RPC available instead of the index[0] now
- Listens/waits for the user confirming to connect on their app, when its successful automatically directs the user to their actual assets/wallet now instead of having to close the modal and re-open
src/store/pool/*.js
- Removed all logic relating to:
mapAddress_30DayDividends
&mapAddress_Past30DayPoolDividends
recentDivis
&lastMonthDivis
2. Added getMonthIncentives()
to get the new incentives/dividend subgraph data
src/store/utils/*.js
- Culled most of the logic here, its pretty much all covered by our off-chain math now
src/store/web3/*.js
- Added
getRPCBlocks()
to test/check all RPCs and sort by preference (this can be further improved at some point)
src/utils/extCalls.js
- Added subgraph call
getSubGraphBlock()
to get the subgraphs most recent block (this helps figure out how far behind sync the subgraph is) - The above function is interfaced inside
getMemberPositions()
so that we can mark down the block relevant to the subgraph positions pulled instead of using the 'current time' which isn't useful - Added subgraph call
getPoolIncentives()
to grab the most recent 30day rolling dividend/incentives data by pool:
- Uses Curated pools array to cut down on wasted calls, this means if a pool is removed from Curated its APY will drop down a fair bit as the dividend/incentives data will be ignored (non-issue but worth noting)
src/utils/math/nonContract.js
- Fixed SynthVault weight logic bug (unfiltered array used in parallel with filtered array resulting in some wrong weights on occasion)
- Updated
calcAPY()
function:
- Removed old dividend logic, replaced with the new subgraph supplied data
- Added a fallback for baseDepth used in this calculation, if a pool has less than 10K SPARTA depth, we use 20K SPARTA as the pool's TVL to calc the pool's APY (prevent ridiculous APYs from showing up on shallow pools)
- Converted the APR logic into a conservative monthly-compound APY (technically its instant-compounding every txn, but using a more conservative algo will help nerf out any extreme APY percentages & average out IL/asset movements a bit)

src/utils/math/router.js
- Fixed bug in 'Swap + Forge Synth' logic where the Synth Cap check was not allowing non-SPARTA users to Forge Synths
src/utils/web3.js
- Updated addresses & commit hashes
- Updated all RPCS
- Added
synthHarvestLive
const to easily enable all the disabled logic when synth harvest incentives are enabled - Added
changeRpcNew()
to handle, filter and select the best RPC (with a dash of randomization) - Added router to most
masterAbi
refs to handle the newDividend
event that didn't exist when this logic was created on testnet (this mostly fixed any recent txn parse issues for the recent txns / history component)
src/utils/web3React.js
- Changed all connectors to use dynamic RPC & network (higher probability of using a good RPC)
src/views/pages/Dao/NewProposal.js
- Added check for >250K SPARTA depth for proposing a Curated pool (consider bumping this up more)
- Hid some proposal types that are irrelevant for the current stage of the protocol
- Added tooltip for the proposal fee

src/views/pages/Dao/ProposalItem.js
- Changed 'Vote Up' to 'Add Vote'
- Changed 'Vote Down' to 'Remove Vote'
- Dynamically show one button or the other based on whether the user has already voted for the proposal

src/views/pages/Dao/types.js
- Added long description & link to the Docs for every proposal type (this could do with some community input making the words a bit more understandable/clear)

src/views/pages/Liquidity/LiqAdd.js
- Added helper to calculate the estimated combined revenue from the asymmetrical add liquidity transaction

src/views/pages/Liquidity/LiqBond.js
- Fixed Progress Bar bug (two bars with the same key)
src/views/pages/Liquidity/LiqRemove.js
- Added helper to calculate the estimated combined revenue from the asymmetrical remove liquidity transaction

src/views/pages/Liquidity/Overview.js
- Added URL-param functionality to navigate to a tab directly via link (this was so we can have CTAs to direct users to Bond specifically but can be used for all tabs on the Liquidity page)
src/views/pages/PU/Overview.js
- General cleanup in the PU dashboard
- Fixed Cols (multiple cards in a row instead of pushed to next row)
- Added a simple RPC status viewer (check which RPCs are best)

src/views/pages/Pools/NewPool.js
- Changed min SPARTA input to create a pool to 20K SPARTA

src/views/pages/Pools/Overview.js
- Fixed pool count bug based on hidden pools & new pools
src/views/pages/Pools/PoolItem.js
- Pulls in the new subgraph dividend/incentives data
- Updated APY to hand in that new data
- Added Synth Cap visual indicator & tooltip

src/views/pages/Positions/Overview.js
- Added block (from subgraph data) to the positions array so that we know how old/new/stale the data is
- Added the 'good' RPCs current block for us to compare to
- Made the 'wait 60s' button dynamic with a countdown instead
- Fixed some Popover incorrect headers

src/views/pages/Swap/SwapPair.js
- Pulls in the new subgraph dividend/incentives data
- Updated APY to hand in that new data
src/views/pages/Synths/Overview.js
- Updated everything to align with the rest of the DApp for mainnet
- Added harvest check/confirm
- Simplified the confirm switches with tooltips and shorter messages
- Added in all the relevant data grabbers
- Added helper to calculate the estimated combined revenue from the synth transaction
- Added Synth Cap visual indicator & tooltip

src/views/pages/Vaults/BondVaultItem.js
- Added direct links to go to the Bond section/tab

src/views/pages/Vaults/Components/SynthHarvestAllModal.js
- Added full list of Synths that would be time-locked
src/views/pages/Vaults/Components/SynthHarvestModal.js
- Added full list of Synths that would be time-locked
src/views/pages/Vaults/DaoVault.js
- Added 'Harvestable' tooltip

GitHub Activity — Spartan Subgraph
/schema.graphql
- Fixed
MintSynth
&BurnSynth
double-up names (same key) - Added daily & rolling 30day incentives to
MetricsPoolDay
src/mappingDao.ts
- Fixed bug causing
pool.tokenAmount
andpool.totalSupply
to go out of sync with each Bond event (commented out as a reminder to not forget and add it back in)
src/mappingPool.ts
- Added
handleMintSynth()
to parse and process all 'Forge Synth' related events - Added
handleBurnSynth()
to parse and process all 'Melt Synth' related events
src/mappingReserve.ts
- Added call to update daily metrics after a realise event
src/mappingRouter.ts
- Added call to update daily metrics after a realise event
src/utils.ts
- Added logic to handle the 30 day rolling figure
- Made some variable names more clear
GitHub Activity — Spartan Site
- Removed
target="_blank"
from all external links
Please stop forcing your Web 3 apps to open in a new browser tab. It's annoying and even worse on mobile MetaMask. Thanks. #crypto #web3
— fluidsonic (3,3) (@fluidsonic) November 12, 2021
Project Information
Official Links
- 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.
- Medium: https://medium.com/spartanprotocol
- Twitter: https://twitter.com/spartanprotocol
- Telegram Community: https://t.me/spartanprotocolorg
- Telegram Announcements: https://t.me/spartanprotocolann
- Discord Academy: https://discord.gg/wQggvntnGk