etherdelta / etherdelta.github.io

https://etherdelta.com
552 stars 688 forks source link

insufficient funds for gas * price + value #563

Open Cyrano71 opened 6 years ago

Cyrano71 commented 6 years ago

Hi,

I want to send a TakeOrder, I use the function of your c# bot :

  internal async Task<TransactionReceipt> TakeOrder(Order order, BigInteger amount)
        {
            var funvtionInput = new object[] {
                order.TokenGet,
                order.AmountGet.Value,
                order.TokenGive,
                order.AmountGive.Value,
                order.Expires,
                order.Nonce,
                order.User,
                order.V,
                order.R.HexToByteArray(),
                order.S.HexToByteArray(),
                amount
            };
            var fnTrade = EtherDeltaContract.GetFunction("trade");
            var data = fnTrade.GetData(funvtionInput);

            var txCount = await Web3.Eth.Transactions.GetTransactionCount.SendRequestAsync(Config.User);
            var encoded = Web3.OfflineTransactionSigner.SignTransaction(Config.PrivateKey, Config.AddressEtherDelta, amount,
                txCount, Config.GasPrice, Config.GasLimit, data);

            var txId = await Web3.Eth.Transactions.SendRawTransaction.SendRequestAsync(encoded.EnsureHexPrefix());
            var receipt = await Web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(txId);
            return receipt;
        }

But I have the error : insufficient funds for gas * price + value. I have funds at my wallet. I have enough funds deposited to smart contract. I don't understand why I have these issue

GoldRat commented 5 years ago

+1. Is EtherDelta.com alive at all?