This is an ERC20 token and Dapp, that implements a bonding curve for dynamic token distribution.
It implements a basic bonding curve where currentPrice = tokenSupply
Clone and install dependencies
$ git clone git@github.com:Kifen/SmartToken.git
$ cd SmartToken && npm i
Create file .env.development.local in project root and add the following:
RINKEBY_URL= <Infura Rinkeby URL>
PK=<Private Key>
RESERVE_TOKEN=0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea
Set environment to development.
$ export NODE_ENV=development
Run tests
$ npx hardhat test
Run Dapp - ensure Metamask is installed. Dapp supports only Metamask, and runs on the Rinkeby network.
$ npm start
The webapp runs on http://localhost:3000/
