ㅤ
Swap tokens using PancakeSwap Smart Contract on Binance Smart Chain.
- Get token price directly from PancakeSwap contract
- Check wallet balance for selected token
- Check allowance (if selected token approved spending for router contract)
- Approve contract if it was not approved before
- Swap Tokens
- Tokens used: BNB, BUSD
You need to connect your MetaMask wallet to Binance Smart Chain to use the template.
The template uses Web3 & MetaMask plugin to connect and interact with Smart Contracts.