Hello, i am trying to build a simple dex using Moralis and 1Inch plugin but i have saome problems.
I am able to swap BNB to USDT without any issue but i am not able to swap USDT back to BNB even i have balance on both usdt and bnb address.
i have changed fromTokenAddress and toTokenAddress from bnb to usdt like fromTokenAddress:USDT_ADDRESS,
toTokenAddress:BNB_ADDRESS,
amount is 0.01 BNB.
but i am receiving this kind of error
Not enough allowance. Amount: 10000000000000000
on my wallet balance i have 28 USDT and over 200$ in BNB.
Now i am trying to swap 10 USDT for BNB but i am not able to do and i don’t know why, everything i am doing is correct. Both addresses, amont…
what i am missing please?