alpha-fi / clp-contracts Goto Github PK
View Code? Open in Web Editor NEWAMM and Continous Liquidity Provider smart contracts on NEAR blockchain
License: GNU General Public License v3.0
AMM and Continous Liquidity Provider smart contracts on NEAR blockchain
License: GNU General Public License v3.0
Storage optimization
With this we will like to support both: NEP21 and Safe Fungible Tokens.
This will require:
Possibly using a modified version of Token Lists JSON templates.
NEAR team released new version of dependencies. Especially the SDK was bumped to 2.0
When user is adding a liquidity he is receiving share tokens. On the pool page we should show the user amount of share tokens and a total share tokens for each pool, eg 100/2000000
(I have 100 shares out of 2000000).
Connecting to a smart-contract will be done in other task (linked below).
The formula to calculate the slippage is following:
price = calculate_price(token, amount)
unit_price = calculate_price(token, 1)
no_slippage_price = unit_price*amount
slippage = (price - no_slippage_price)/no_slippage_price
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.