slack-tipbot icon indicating copy to clipboard operation
slack-tipbot copied to clipboard

"don't have enough balance" when I do

Open jakswa opened this issue 9 years ago • 6 comments

First, thanks for this, and good work! Setup was really simple. This bot surfaced when I googled something close to, 'slack bitcoin bot.'

I'm receiving "You don't have enough balance" when the balance command shows that I do. I dug into the code really quick and looks like this error message might have multiple underlying meanings? I'm not sure whether I've set up something incorrectly (and it really can't find the wallets it has created), or whether it truly thinks my balance is below 1bits.

Anyways, here's my chain of events in case it helps:

  • sent transaction for main wallet during setup
  • interacted with the bot to sanity check things (at which point it created my personal wallet)
  • waited for that main transaction to finish
  • also waited for a separate transaction to finish (me manually funding my tip wallet, since it was created before the main wallet was funded)
  • verified that the balance command was returning successfully ("You've got 100 bits")
  • started doing some secret reactions to test, noticed that no transactions were being created in coinbase
  • did some manual tip <user> <amount> commands in private chat with the bot (for 10bits and 1bits) and am now getting this error message every time: You don't have enough balance for that

edit: to clarify, when I say, "noticed that no transactions were being created in coinbase," I meant that I didn't notice any tip transactions being created. During initial interactions, the wallets for new users were being created successfully and their initial 100bits were being sent succesfully

jakswa avatar Dec 11 '15 10:12 jakswa

also, I learned that it will PM the recipient in the event of this error, which I did not expect to happen when testing late at night...

jakswa avatar Dec 11 '15 14:12 jakswa

Since I see other issues where users are successfully using this, my best guess is that this is happening because the default balance of 100 bits isn't enough to actually send bitcoin, if there are fees being added on the transactions?

jakswa avatar Dec 15 '15 22:12 jakswa

For example, I sent $1 between two coinbase wallets and there is a 100 bits fee added onto this transaction: screen shot 2015-12-15 at 6 03 53 pm

jakswa avatar Dec 15 '15 23:12 jakswa

After adding $1 to my wallet, I was able to successfully tip someone (and was not able to tip that person before the transaction completed). The default minimum balance looks to be too low.

jakswa avatar Dec 15 '15 23:12 jakswa

Doesn't coinbase have an off-chain micropayments api? If the bot is creating all wallets, they are all coinbase wallets and should be able to be fee-free.

illuzen avatar Dec 16 '15 12:12 illuzen

I think you are right about fees not applying to transactions between coinbase wallets. However, multiple people have tried tipping with our tipbot and experienced this behavior. My guess that it's related to fee logic still stands, since I have no other ideas. No tipping works unless you have more than 100 bits, even if you're only trying to send 100 bits. After your wallet balance exceeds 100 bits, you must tip at least 100 bits for it to work:

screenshot from 2015-12-20 18 34 47

I don't have enough balance to send 99, but I have enough for 100? Regardless, I guess we personally discovered the reason behind things not working, and even then tipbot doesn't seem to be something we'll use, so I'm unsubbing from this issue. Feel free to close this, or leave it open to provide insight to others.

edit: to clarify, I'd say we're abandoning this due the issues described above combined with the slowness of transactions between coinbase wallets (which I kind of expected)

jakswa avatar Dec 20 '15 23:12 jakswa