-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine unclaimed permits tool #139
Comments
Spent yesterday designing a new database schema which will also indicate if the permit is claimed (or invalidated) which is useful context for you to know |
Is this available to pick?! |
Not yet, depends on #136 |
Sorry for the slow communication on architecture updates @rndquu However, my new database architecture solves this pretty easily because 1. it'll be storing all of the permits and 2. it has a column for The significance of the Lastly, each permit is associated with a GitHub user ID with the This should make it pretty easy to directly query for all available permits for a specific user. |
Updated description
I think it is better to make the bot responsible for all write operations to a DB (i.e. the bot could search for payout transactions and match them with permits). Basically we're going to have a DB shared by 2 apps (bot and |
In theory I agree, but I think its worth focusing the cost-benefits of this trade-off. Costs
Benefits
ConclusionsPerhaps this is a slippery slope, which is what I'm crediting your point mostly for; but at least at this stage it is only a single column |
Question on invalidation #136 (comment) |
Current issue seems to be irrelevant because the latest bot's version supports rolled-up permits. Regarding the invalidation, I don't think we will make bounty hunter to invalidate anything. It is simpler to create a script to invalidate all unclaimed permits in a single multicall tx. |
So then for this flow to work, the bot needs to:
Also for accounting in the background:
So we should close as unplanned? |
I thought it should be a script that we run only once.
Yes |
# Issue was not closed as completed. Skipping. |
Any time a user wants to roll up their outstanding permits. I think the best user experience would be that the user can log on to pay.ubq.fi at any time and click a single button which collects all of the rewards that is owed to them. Behind the scenes it would do all this, for example. |
The latest bot's release posts payment permits as it used to post (i.e. directly in github comments, 1 solved issue = 1 payment permit), right? I think we should get back to the "pay.ubq.fi payout interface" when we're done with taiko's NFT rewards because:
|
|
I meant the case when we have only
Getting rewards info require access to a DB (i.e. via supabase's anon key) so I meant that we will have to redo the |
Perhaps you can file a new issue for this? |
I'll create one once we decide on a virtual cards API provider because this all looks like a new task for a single payout interface. |
Just reviewing all my unresolved old notifications. Any update here? |
Not yet, I need ~2 more days for stripe research |
Depends on #136, ubiquity/ubiquibot#644
Original discussion
Right now we support payment permits only in a single token (example). When ubiquity/ubiquibot#769 and #136 are implemented the
pay.ubq.fi
page will start accepting an array of permits (for payouts in multiple tokens).It is not very convenient for a bounty hunter to find all of his unclaimed permits (issue solver rewards, issue creator rewards, comment rewards, etc...). We should create a tool that finds all of bounty hunter's unclaimed permits and generates a new permit URL which combines all of the bounty hunter's unclaimed permits.
What should be done:
pay.ubq.fi/combine-rewards
where a bounty hunter will be able to authorize via github and get a single URL of all of his unclaimed permits.Notice that you can get all generated permits directly from a DB using the supabase
anon
key (ask for it when you start the current issue).The text was updated successfully, but these errors were encountered: