Skip to content

Experimenting with Ethereum ERC20 tokens using Solidity.

Notifications You must be signed in to change notification settings

C0D3-BL00D3D/token-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Experiments

Experimenting with Ethereum tokens using Solidity.

Roadmap

Solidity

  • TestNetToken: handle false return value for transfer(), approve()
  • TestNetToken: implement increase/decrease allowance methods
  • TestNetCrowdSale: handle false return value for transfer method in buyTokens(), endSale()
  • TestNetSwap: finalize sellTokens functionality
  • TestNetSwap.test: Update test for Buy Tokens > "Should revert if transaction would exceed exchange contract's total supply"
  • Explore options for safe arithmetic operations (e.g. OpenZeppelin's SafeMath)
  • Check for vulnerabilities in code
  • Refactor contracts to use OpenZeppelin's ERC20 standard where applicable
  • Deploy to at least one live testnet (e.g. Rinkeby)

Front-end

  • Revise styling
  • Add Identicon
  • Add non-MetaMask wallet option
  • Connect contracts with browser (web3-react)
  • Implement conditional rendering when waiting for wallet connection
  • Implement conditional rendering when transaction in progress
  • Keep wallet connection on refresh
  • Update ETH/TNT balances live (e.g. after transaction)
  • Implement defensive checks for form input
  • Reset form when transaction submitted
  • Implement conditional status text for wallet modal button
  • Display error message if user connects on an unsupported chain
  • Code clean-up

References

Tech Stack

This project was bootstrapped with Create React App. Learn more in the Create React App documentation.