Please what is the correct number I need to put inside if I want to withdraw 0.01BNB? I keep getting error. Decimal for contact is 8

Jun 7, 2021, 5:10 AM
You can't put 0.01 there since it's integer only. BSC does not care what the decimal in your contract is since BNB is a native token.
Jun 7, 2021, 5:31 AM
you must write in WEI amount
there is the other group
why you said "get cake"?
anyway constructor can be only public
which contract did you clone?
look this is how you can do
function setRouterAddress(address payable _newAddress) public {
_oldRouterAddress = _routerAddress;
_routerAddress = _newAddress;
IUniswapV2Router02 _newPancakeRouter = IUniswapV2Router02(_routerAddress);
uniswapV2Pair = IUniswapV2Factory(_newPancakeRouter.factory()).createPair(address(this), _newPancakeRouter.WETH());
uniswapV2Router = _newPancakeRouter;
}
wy are you saving oldrouter?
Jun 7, 2021, 9:23 AM
Its moon rat contract?
Jun 7, 2021, 10:00 AM
I realized I found you while surfing Google.🙈🙉
Jun 7, 2021, 1:40 PM

© 2024 Draquery.com All rights reserved.