barmstrong / slack-tipbot

Reward teammates in slack with bitcoin!
MIT License
74 stars 19 forks source link

"don't have enough balance" when I do #2

Open jakswa opened 8 years ago

jakswa commented 8 years ago

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:

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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.

illuzen commented 8 years ago

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.

jakswa commented 8 years ago

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)