Skip to content

danilych/token-sale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart-contract + frontend for token sale like IDO/ICO

In project was used:

React Tailwind Solidity Hardhat Chai.js Next.js TypeScript JavaScript Ethers.js

BSC testnet:

contract: 0x6A6ceADf53EE6342a35160268A62c0edAda2137c
token: 0x5aD9A7795e2bF86eeDE2148D60120fc8cE9c41a3

smart-contract

  • deployer can set price for one token, max allocation, token for sale and token for payement.
  • owner can change token price, allocation, token for sale.
  • owner can pause/start sale.
  • owner can withdraw tokens which weren't sold.
  • owner can withdraw all ethereum
  • ownership can be transfered

frontend

  • on page displays all info like: token price, max allocation, user balance
  • user can put in form amount to buy in BNB and make transaction using button "buy"