SpartanDev:01/03/21–07/03/21
DevUpdate: Bug Fixes| DappV2| SpartanContractsV2
DevUpdate: Bug Fixes| DappV2| SpartanContractsV2
Summary
After a couple of action-packed weeks delivering new and exciting features (Positions Page, APY display etc) the contributors have focused on building out and testing SpartanContractsV2, the migration contracts and DAppV2 with other efficiencies upgrades across the board.
Time to learn more about Spartan Protocol Synths
Thanks to Marco for some great content that explores the implementation of Synths within the SpartanProtocol ecosystem, suggest you take the time to understand the importance of what it means for SP.
https://spartanprotocol.org/synths.html
Spartan Socials — Twitter
Top Impressions:
Top Engagement:
Top Community Mention:
SpartanSocials — Medium
SpartanSocials — Telegram
GitHub Activity
SpartanContractsV1
The SimpleSwap function exists in the contracts but was not connected to the UI and also not 100% lined up with the mapping of TVL etc. Some community members started interacting with the function (which works great by the way, thanks for testing!) directly on-chain which was throwing out the mappings of TVL for the UI
The community UI devs replaced the mapping with a custom function in the UI and moved along. A couple of weeks later the community noticed an increase in failing txns. After some investigation, it turned out there was some reliance within the ‘swap’ function on that TVL mapping being higher than the swap amount. A quick fix in the contracts sorted it out quick-smart, new router address here:
https://bscscan.com/address/0x6239891FC4030dc050fB9F7083aa68a2E4Fe426D#readContract
SpartanContractsV2 (Multiple iterations under different branches)
V2 contracts have been a solid focus of late, preparing and testing the new pools, synths, migration contracts etc ready for a smooth transition to the extended Spartan ecosystem.
The next step here will likely be releasing the new SpartanPools contracts and migration contracts at the same time.
The migration will then be the biggest priority; making sure its as easy as possible for everyone to migrate to the new SPT2 pools from a simple ‘migration’ page with a simple set of steps signed by your wallet in the correct order.
With that out the way, the focus will then be on the compound and lending contracts whilst the UI contributors refine the experience of minting/burning and using synths.
spartan-protocol/spartanswap-contracts
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or…github.com
Testing of the global upgrade / migrations:
global upgrade test 01 · spartan-protocol/spartanswap-contracts@badb55a
SpartanSwap Contracts. Contribute to spartan-protocol/spartanswap-contracts development by creating an account on…github.com
Synths swap testing:
synths swap testing complete · spartan-protocol/spartanswap-contracts@497406c
SpartanSwap Contracts. Contribute to spartan-protocol/spartanswap-contracts development by creating an account on…github.com
SpartanSite
Thanks to the community-contribution by Marco to update the ‘Synths’ page with relevant information from the most recent implementation.
Merge pull request #42 from spartan-protocol/synths-page-update ·…
Landing Page. Contribute to spartan-protocol/spartan-site development by creating an account on GitHub.github.com
SpartanDAppV1
DAppV1 is close to being replaced by DAppV2 and hence the time spent on it is a low priority. However, there were a few things this week that warranted attention.
As shortly touched on above; the TVL reported in the UI was wrong, so needed to be removed and replaced with a custom function:
POOLS | TVL is incorrect, too low · Issue #478 · spartan-protocol/spartanpools-dapp
Something wrong with the "total pooled" reported - $30.6m is understated, BNB pool is $29.7m Check how it's called…github.com
Positions page; make the API calls more efficient:
POSITIONS | Change CG API to grab price history by token; not by txn · Issue #480 ·…
Change it to grab the price history for each pool by day within large range (whole relevant history) and iterate the…github.com
POSITIONS | Update to include RouterV2c · Issue #486 · spartan-protocol/spartanpools-dapp
Edit descriptiongithub.com
SpartanDAppV2
DAppV2 has been a solid focus; getting the file structure and libraries agreed upon and linking up the current SpartanContracts to the web3 files.
dancespiele - Overview
Always working with great enthusiasm with javascript tech Arctic Code Vault Contributor Pro Awesome Yew with Yew-Router…github.com
Big thanks to Spiel from the Spartan community for reaching out to help with building out the new DApp with the existing contributors. His current focus has been to implement redux and converting the web3 functions for better global usage and error handling. Also implementing testing in the front-end which previously was only done back-end, will help with avoiding bugs in the future.
Converting standard web3 functions for the store and handling errors:
Adding all the relevant contract functions as simple web3:
More web3 contract functions & some UI work:
Work on the user interface, components, header etc:
Current Contributor’s Focus
SpartanContracts
- Bond V4
- Dao V2
- DaoVault V1
- Router V3
- SP2UP (Migration Contract)
- Utils V2
- LoanVault V1
- MasterLoan V1
- Pool V2
- Factory V1
- Synths V1
Spartan DAppV1
- All work ceasing on v1 except urgent/major issues
Spartan DAppV2
- Convert web3 functions for redux and error-handling
- Build out pools pages
- Build out dao pages
SpartanSite
- DAO page
- Lending page
- FAQ page
Other Focuses
- Video & text guides
- Get TrustWallet and BinanceWallet price feed in place
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.
GitHub list of bounties available
spartan-protocol/spartan-site
New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its…github.com
Reach out on telegram to get involved: https://t.me/SpartanProtocolBounties
Engage with the community and contributors
Where to find out about all the latest updates or suggest improvements — get involved.
- Github: https://github.com/spartan-protocol
- Medium: https://medium.com/spartanprotocol
- Twitter: https://twitter.com/spartanprotocol
- Telegram Community: https://t.me/spartanprotocolorg
- Telegram Announcements: https://t.me/spartanprotocolann
- Telegram Bounties Channel: https://t.me/SpartanProtocolBounties