bibliothecadao / instaswap Goto Github PK
View Code? Open in Web Editor NEWInstaSwap - decentralized token swap protocol for ERC-1155 tokens on Starknet.
License: MIT License
InstaSwap - decentralized token swap protocol for ERC-1155 tokens on Starknet.
License: MIT License
The goal for this is to have an npm
package installable via yarn add @bibliothecadao/instaswap
This package would have all the write and read functions available for easy integration with any client.
instaswap_pair.cairo has a lot of todo about "emit event", implement it
Add test for get_currency_amount_when_buy and get_currency_amount_when_sell functions which is in library.cairo.
Implment the u256_sqrt in utils/helper.cairo.
math detail is about Babylonian method: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
solidity version can be found at uniswapv2: https://github.com/Uniswap/v2-core/blob/master/contracts/libraries/Math.sol
instaswap_pair.cairo currently uses a recursive call to represent a loop. Since cairo1 supports the loop keyword, we can refactor it using loops.
Just like uniswapv2, we need to charge fee on add_liquidity and remove_liquidity method.
Please refer to uniswapv2 _mintFee for Inspiration
Every amm has pair part and factory part. The factory part has not implemented yet. We need to implement it.
You can refer to uniswapv2 factory and NiftySwap factory for more inspiration
We need to add specifications about the core function of InstaSwap. Just like Niftyswap's specifications.
https://github.com/0xsequence/niftyswap/blob/master/SPECIFICATIONS.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.