how to know the price of a token on pancakeswap in solidity ? is there a snippet code ?
Nov 7, 2021, 4:46 PM
you have to get the pair token/busd, and divide the reserves
it's a blockchain but you can get BNB for free "test network"
Nov 7, 2021, 4:51 PM
Ah ok, so it s even better than truffle because you test it in real life mode right ?
Nov 7, 2021, 4:51 PM
I don't know what's better, I never used truffle
Nov 7, 2021, 4:52 PM
It seems that truffle not only include a test environment, but generate fake adress with ether on it to order, and is kind of working with react and node.js if i understand good. The tuto i m following is the building of a dapp (yield farm) from the web page to the smart contract
Thanks for your recommandations Maxime
Nov 7, 2021, 4:55 PM
testnet is not a copy of the blockchain, it's another blockchain you can use for free
so you won't have every contracts, not the same address... if you want to make something like beefy for example, it will be hard on testnet
Nov 7, 2021, 4:58 PM
Ok
Nov 7, 2021, 4:58 PM