This repository contains the TEC's Bonding Curve interface. Forked from Aragon Converter.
First, run the development server:
yarn start
Open http://localhost:8080 with your browser to see the result.
This project forked from aragon/convert.aragon.org
Convert between your Aragon tokens
Home Page: https://convert.tecommons.org
This repository contains the TEC's Bonding Curve interface. Forked from Aragon Converter.
First, run the development server:
yarn start
Open http://localhost:8080 with your browser to see the result.
We are using the colors and logos from ANJ in the stepper page:
The assets are being reworked by @fioreb, when ready they should be added to the frontend and do any other appropiate change.
Potential improvements that have major scope... probably not needed
The ABC was made into a single app and this issue is blocking the ABC Freeze (so is getting Gardens on xDai)
Do what was done in the hatch... if you are on the wrong network, alert the user!
We can reuse the work in the Hatch Front End
When we are using makeBuyOrder and makeSellOrder we are not requiring a _minReturnAmountAfterFee
, see [1] and [2] respectively.
We may want to set it up with an allowed slippage of -1%. For this we need to complete first #4, to know in the frontend which are the entry and exit tributes.
The minimum received should appear in the interface as well. It can appear below The conversion amount is an estimate
, take inspiration from uniswap/honeyswap:
Main line:
1 TEC = 0.00655 (?)
Info box:
Exit tribute (5%): 0.0001 xDAI
Minimum received: 0.0065 xDAI
The new tooltip should divide the conversion information into two lines. There is a line break in the code which gets processed (since the "\n" doesn't show up in the frontend), but somewhere along the way it ends up being all in one line again.
I love the fact that the Entry Tribute is in the ? mark and not cluttering the main screen... but maybe we should also highlight how much money is being sent to Advance Token Engineering.
Paulo will fill out a bit more... Feel free to just edit this text Paulo!!
The gov link redirects to gov.tecommons.org, which seems to be broken
Add a button that adds the TEC token to MetaMask. @sembrestels suggested adding it in the "change completed" popup to keep the usage flow the same
it should show:
Bonus
Right now, if the user inputs a number of Tec Tokens to sell higher than the total supply Metamask throws an error (since 'calculatePurchaseReturn' in the bonding curve reverts), but the interface doesn't change and just continues showing the last valid number introduced.
Realistically, if somebody tries something like that it will just fail, but for completeness' sake it would be nice to catch the error and notify the user.
I assume we distribute 1 million testDai to each person
Use the Commons Upgrade as the first example for building this library
We have to do the Commons Upgrade of course first, but while doing it we can think about the library
At the moment is is hardcoded here.
At the moment only ERC20 can be used as collateral.
Related to Stats page
Right now token info is defined in config.json
file. It would be nice if it is gotten from bondedToken and collateralToken smart contracts, for the sake of simplicity.
We can get all known contracts using only MARKET_MAKER and COLLATERAL_TOKEN addresses.This is how you can get the rest of them:
@mendesfabio we could take inspiration from the swiss dapp
Now we have the favicon from Aragon, we need to change it
Discuss with @0xGabi
The tribute is not applied in the frontend conversion and can mislead on how much collateral you are going to receive when selling bonded tokens.
The entry tribute
and exit tribute
should appear just below The conversion amount is an estimate
, you can take inspiration from uniswap/honeyswap's liquidity provider fee:
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.