An Avalanche Exchange for ERC20 tokens.
result = await avaSwap.buyTokens({ from : investor, value: web3.utils.toWei('1', 'ether')})
Investor must approve the token before transaction :
result = await Token.approve(avaSwap.address, tokens('100'), { from: investor})
Investor sells tokens :
result = await avaSwap.sellToken(tokens('100'), { from: investor })
Check Eth balance :
let EthBalance = await web3.eth.getBalance(avaSwap.address)
Check Token balance :
let TokenBalance = await Token.balanceOf(avaSwap.address)