You are viewing a single comment's thread from:

RE: Withdrawal Function on Project Steem-Roller Finished Today!

in #steem-dev5 years ago

This looks great, nice work. I am curious what made you decide to make funds need to be deposited and withdrawn? It would have been way easier for you if you just made it directly use the user's account.

I recently built a quick betting app for a coin flip I am about to open source it: https://steemflip.com it took a solid day, but I used the Steem Keychain browser extension. It reduces the complexity greatly.

I think the benefit of your approach is bets can be instant, it's one less step than requiring the user to constantly approach each action. Are you just using SteemConnect for balance stuff or straight Steem API calls?

Posted using Partiko Android

Sort:  

Great comment. Will answer your questions below!

The reasoning behind having users deposit their STEEM funds rather than have to sign in via STEEMconnect is simple really, in order for a player or investor to utilize services in the "real world" most places don't allow you to invest IOU's or gamble them. Given that on chain betting is extremely slow at around 1 bet every 3-20 seconds and that invested STEEM must be available for gamblers to win and withdraw if they win, a STEEMconnect method of play and invest simply wouldn't work.

Will check out your coin flip app here shortly! Always a pleasure to meet a fellow STEEM developer. What's the application built in language wise..?

Balances are kept track of server side on the Steem-Roller database and updated in real time every bet/invest/divest action.. it's quite CPU and memory intensive but it provides an incredibly fast real-time betting experience and lucrative leverage enabled STEEM investment vehicle.

Are you interested in helping bug test in the upcoming closed beta testing? Can always use a hand with bug hunting before we go fully live sometime in March.

That's awesome @klye and makes total sense. You've opted for convenience and speed of bets at the expense of a couple of extra steps upfront, I totally get that. Thanks for taking the time to respond.

Will check out your coin flip app here shortly! Always a pleasure to meet a fellow STEEM developer. What's the application built in language wise..?

It's definitely nothing special. It doesn't even have a design, I just quickly threw it together in a day. I spent the most time laying things out on the screen to be honest, ha. Likewise meeting another developer, I am trying to be more active in the Steem development community.

For me, the fun is in building something, not necessarily styling it up or making it pretty. I think that is common for most developers, not very good in the design department (probably why most open source software is ugly).

The app itself is a Node.js application, running on Firebase. The cool thing is that it's run by a Firebase Cloud Function, which is basically a lambda function if you're familiar with AWS. You get charged for invocations and running time, not for constantly running server. The front-end is using Aurelia for the JS framework.

Most of the code is just there to check somebody isn't trying to game the system (replaying requests and so on). The keychain extension handles the transfer on the blockchain, then it's passed off to the server and everything is validated. I trust nothing coming from the front-end.

As you might notice when you take a look, it's slower than what you have. You're right about deposits making things faster. Every flip is done server-side, so it's a little slower and you can't rapidly bet.

Are you interested in helping bug test in the upcoming closed beta testing? Can always use a hand with bug hunting before we go fully live sometime in March.

I would love to help. Send me a Discord link or wherever you hang out.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.032
BTC 60318.52
ETH 2983.06
USDT 1.00
SBD 3.78