BUIDL-Weekly: 27MAR23 - 02APR23

Dev Update

BUIDL-Weekly: 27MAR23 - 02APR23

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

BUIDL-Weekly: 27MAR23 - 02APR23

Web3 Berlin

Some community members have organised and paid for a spot in Web3 Berlin this year. Expect more info to follow as those plans develop, for now feel free to visit their website for more info about the conference.

Community Mentions

CoinMarketLeague

Remember to cast your vote for SPARTA every day, Spartans!


‌SpartAnalytics Report

Our community creates a monthly PDF report that includes an overview of Spartan Protocol data from Google Search (impressions, clicks, devices, keywords, and geographical data) and Twitter analytics.


‌Community DApp‌

‌GitHub Repo: https://github.com/spartan-protocol/SpartanProtocol-DAppV2

Front-end: https://dapp.spartanprotocol.org/

various changes

  • added DApp alert on load. ideally we should also work on an OPSEC & self-sovereignty guide in the Docs to link to here (guide users on best ways to interact with DApps in general like a Ledger wallet linked to a good extension like Rabby). Open to working on the wording of this message of course, should serve as a placeholder for now
  • added disabled button state, and improved clarity of wording when dao vars are set to equal ('paused') state, again this is a placeholder, open to suggestions on improved wording, i think the nuance should probably live somewhere like the documentation though (with a link from the DApp) but we are also overdue to maybe do a wider summary of some sort of a road to v3 being deployed by the community too, these kinds of V2 nuances should be covered in that too
  • updated most of the content on the donate page to reflect no campaigns currently in action, also disabled that route in the DApp for now as its mostly clutter
  • updated the ssutils contract address

To do:


‌Protocol Site

GitHub Repo: https://github.com/spartan-protocol/spartan-site

Front-end: https://spartanprotocol.org/

To do:

‌Protocol API

GitHub Repo: https://github.com/spartan-protocol/spartan-api

Front-end: https://api.spartanprotocol.org/api/v1/pools

To do:

‌Protocol Subgraph

GitHub Repo: https://github.com/spartan-protocol/spartan-subgraph

Front-end: https://thegraph.com/hosted-service/subgraph/spartan-protocol/pool-factory

‌Protocol Contracts V3

GitHub Repo: https://github.com/spartan-protocol/spartan-contracts

To do:

‌Protocol Resources

GitHub Repo: https://github.com/spartan-protocol/resources

‌Protocol Docs

‌GitHub Repo: https://github.com/spartan-protocol/spartan-docs

Frontend: https://docs.spartanprotocol.org/

To do:

‌Protocol Contracts V1 - V2

GitHub Repo: https://github.com/spartan-protocol/spartanswap-contracts


‌Ecosystem Project: SpartanSwap‌

SpartanSwap is a separate project currently in development with the goal of creating a user-friendly interface for interacting with Spartan Protocol pools. Initially, the focus will be on providing swap functionality, with the long-term aim of becoming a swap aggregator for BNB SmartChain and potentially other chains in the future

SpartanSwap Contracts

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapContracts

To Do:

SpartanSwap DApp

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapDApp

mid-march incomplete changes

incomplete changes from mid-march

  • made the selected swap rate item styling less in-your-face
  • changed some function names and locations
  • started splitting swapSources into individual files for each swap source

add pricing features and better ux

  • created a redux action to reset estimated outputWei of every source back to 0
  • called this new reset function whenever asset1 or asset2 selections change (should help resist stale estimates especially if APIs are under load/failing)
  • added coingecko calls in redux store to get usd prices per unit of asset1, asset2 and the native gasAsset. currently calls every 15s when on the swap page
  • the table is now sorted by best total output amount in usd value *after gas*
  • changed all *unit-like* vars to have the unit-type in the name. ie: input -> inputUnits && outputAmount -> outputWei && gasEstimate -> gasEstGwei
  • added the estimated usd value of each input/output/gas shown in the UI
  • added button to flip selected asset1 <> asset2
  • finished splitting up each swap source into their own file-per-source
  • cleaned up var names in each formatting helper
  • added a convertGweiToWei helper
  • added a helper to return a formatted usd value for use throughout the UI

allowance init

  • added an 'allowance' field to each swap source
  • if the wallet is supplied, this will call all allowances at the same time as the quotes are generated
  • and some clearValueOn() checks for the approval value for each source
  • added ERC20 ABI
  • added 1inch allowance check call
  • added spv2 allowance call. also added approval call
  • changed some source function names to be shorter
  • created an async wrapper to force returns to match (typescript bandaid)
  • added visual indicator next to each swap source for if(allowance > input)
  • added icons and animations for approvals

To Do:

SpartanSwap Resources

GitHub Repo: https://github.com/Spartan-Swap/SpartanSwapResources


‌Ecosystem Project: SpartanArena‌

SpartanArena is a separate project that focuses on developing subprojects related to gaming. Some ideas that are being considered for the future include an NFT looter game, a lottery, and a prediction/parimutuel game

SpartanArena Contracts

GitHub Repo: https://github.com/SpartanArena/SpartanArenaContracts

SpartanArena DApp

GitHub Repo: https://github.com/SpartanArena/SpartanArenaDApp

SpartanArena Resources

GitHub Repo: https://github.com/SpartanArena/SpartanArenaResources


‌Ecosystem Project: SpartanToolkit

Spartan Toolkit is an ecosystem project initiated by the Spartan Protocol community with the goal of improving tools for projects and users within the BNBChain ecosystem, including Beacon, Smart, and BAS chains

BepTools Fork

GitHub Repo: https://github.com/Spartan-Toolkit/beptools

Legacy BepTools Repo: https://gitlab.com/canyacoin/binancechain/beptools (will request a PR and/or mirror to GitHub)

Temp Frontend: https://beptools.netlify.app/

The contributors of Spartan Toolkit have forked and updated/fixed the wallet connections in the BepTools DApp to enable BinanceChain/BeaconChain/BEP2 users to freeze/unfreeze and batch send BEP2 tokens on the BNB Beacon Chain

Web3BNB Library

GitHub Repo: https://github.com/Spartan-Toolkit/web3-bnb

A React library with the intention of providing builders with a plug-and-play solution for any web3 wallet compatible with BNB ecosystem chains (Beacon, Smart, BAS etc)

BNB Beacon Chain Toolkit DApp

GitHub Repo: https://github.com/Spartan-Toolkit/beacon-chain-tools-dapp

A tooling user interface for users + projects on BNB Beacon Chain. Batch-send, freeze/unfreeze, deploy BEP2 token etc without touching the command line!

BNB Smart Chain Toolkit DApp

GitHub Repo: https://github.com/Spartan-Toolkit/beacon-chain-tools-dapp

Tooling and informational user interface for users + projects on BNB Smart Chain‌


Protocol Information

Project Community

Spartan Protocol and its related ecosystem is a 100% open-source community initiative. As an open organization, the community is responsible for building, running, and maintaining everything. If you are interested in contributing or learning more, please reach out in the community channels!