Skip to content

Vue boilerplate dex. Connect metamask at BNB chain and can change ERC20 tokens using pancake swap

License

Notifications You must be signed in to change notification settings

HarborEx/vue-swap-boilerplate-bnb

Repository files navigation

Vue BNB swap boilerplate

# install dependencies
> npm i
# serve with hot reload
> npm run dev
  • - Connect MetaMask
  • - Show BNB balance
  • - Show token's list
  • - Approve tokens to pancake swap
  • - Swap token to another token
  • - Change network, if metamask give not BSC
  • - Add support other networks
  • - Refactor

Contracts

  • Use 1inch oracle to get token's rate.
  • USDT to get token -> dollar price.
  • Pancake Swap to swap tokens
// src/utils/conracts.ts
export const contractAddresses = {
  oneInchOracle: "0xfbD61B037C325b959c0F6A7e69D8f37770C2c550",
  USDT: "0x55d398326f99059fF775485246999027B3197955",
  pancakeSwap: "0x10ed43c718714eb63d5aa57b78b54704e256024e",
};

Contacts

Contact us Telegram

Donation

ETH/BNB/Polygon - 0xef8d23c5402630cc94d142eeee34c3e10035238e

About

Vue boilerplate dex. Connect metamask at BNB chain and can change ERC20 tokens using pancake swap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published