Hive dApps Update: cashback.distriator.com - working on faster claims

in HiveDevs2 months ago

Hello hive community members,

We are working tirelessly to improve the experience for cashback.
We have developed 2 new API-Endpoints.

API End points

Get Cash back details

  • Usually, front-end would call /claim/v2 for user who is logged in.
  • Now, we'll do all calculations & processing here. It's defined as below
  • Fetch account history (user who is logged in)
  • Filter outgoing transactions
  • Filter transactions having memo
  • Filter transactions with memo with matching defined patterns of Invoice-IDs
  • Get all businesses
  • Filter transactions with whitelisted businesses
  • Filter transactions by time - last 2 hours only
  • If we find legit payment transaction(s), we fetch more account history
  • Check past payments & cash backs
  • Based on past cash backs, we decide user is at which level.
  • Based on level, cashback % is calculated
  • For a given country, a random max cashback payment transaction value is determined
  • And after all of these, user gets response (we didn't put in details here for v4v - it's even more)
  • You can imagine the wait due to all of these.

/v2/reward API

  • /v2/reward api does all of above on top of additional checks as listed below.
  • Get specific business
  • Is that business whitelisted yet?
  • Get specific user
  • Is that user banned?
  • Does business review post exists?
  • Does post have valid beneficiary settings?
  • Does post have valid json meta data?
  • Does post have any edits?
  • Does post have valid content etc etc.
  • After all checks passed (approx 15-16), cashback is given
  • Cashback given = transfer funds
  • After that backend triggers discord webhook
  • After that backend drops a comment on business review post
  • After that user gets a response Yay 🎉, you got your cashback
  • Till that time, I guess gets a power nap.

power nap

/v3/reward

  • We have built v3 API, which will do all of these in async manner
  • User will get response, thank you for submitting, you'll get your reward soon.
  • You'll be informed by a comment on your review

front-end

This is how front-end would look after submitting review.

More on this, I'll share later. For now, I'll keep quite & keep building

shhhh

I will share as soon as it's ready, I'll inform it to alpha users & after that beta users.


🚀 My Contributions to ♦️ Hive Ecosystem

ContributionToHiveEcosystem
Hive Witness NodeHive API Node3Speak Video Encoder Node Operator (highest number of nodes)3Speak Mobile App Developer
Podcast App Developer3Shorts App Developer3Speak Support & Maintenance TeamDistriator Developer
CheckinWithXYZHive InboxHiFindHive Donate App
Contributed to HiveAuth Mobile AppEcency ↔ 3Speak IntegrationEcency ↔ InLeo IntegrationEcency ↔ Actifit Integration
Hive Stats AppVote for Witness AppHiveFlutterKitNew 3Speak App

🙌 Support Back

❤️ Appreciate my work? Consider supporting @threespeak & @sagarkothari88! ❤️

Sort:  

Faster claims sound great! 🚀 Makes getting those cashback details even smoother. Keep up the good work! 👍

Loading...

This post has been manually curated by @bhattg from Indiaunited community. Join us on our Discord Server.

Do you know that you can earn a passive income by delegating to @indiaunited. We share more than 100 % of the curation rewards with the delegators in the form of IUC tokens. HP delegators and IUC token holders also get upto 20% additional vote weight.

Here are some handy links for delegations: 100HP, 250HP, 500HP, 1000HP.

image.png

100% of the rewards from this comment goes to the curator for their manual curation efforts. Please encourage the curator @bhattg by upvoting this comment and support the community by voting the posts made by @indiaunited..

This post received an extra 7.52% vote for delegating HP / holding IUC tokens.

Thanks for all your hard work. How's your mum?
I hope she's recovering well from the surgery. Greetings 😊 🙏

Loading...