Hello world, Hope you are well!
I am doing some tests with a clone of the earlybird contract, but i got stuck when swapping from bnb to ebird4 and from ebird4 to bnb. after the deploy I add a liquity of 1bnb and then I activate trading.
I have a few questions please if anyone can help me. Many thanks in advance.
Liquidity
- Question 1:
if I try to buy 0.001BNB it fail with the following error.
Otherwise if I try to buy to same token amount 99650500 the estimate change to 0.000999999BNB and I can swap token without problems.
Can anyone please explain to me what happens and how to solve the problem ?
- Question 2:
I can not swap EBIRD4 -> BNB, with any amount I always get back to error The transaction cannot succeed due to error: undefined.
Contract Address in testnet 0x38a1364A04E81b496979292d5e3B00582E865938
Sorry I use jsfiddle I haven't found another way to share the code