-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow to set the matching pool token & amount to be something other than USD #3839
Comments
@CarlosQ96 pls pick this once your p0,p1 issues are done |
bumping the priority here, would love this to get done before our next qf round! |
can we make this a priority? for the polygon round, I'd love to put the "matching funds" in the db as... MATIC... is that going to be crazy? @CarlosQ96 😇 |
Im estimating this issue and will leave my estimation here tomorrow morning. I have to check if there is any side effect in the different codes like the weight/distributions. |
I feel this can work, but we should set a display setting. Because we save in the database BOTH the USD value and the token amount. Would require frontend to read this setting and choose the appropiate column to display. |
@laurenluz pls confirm if we can go ahead with what carlos proposed above. Adding @RamRamez for FE changes once @CarlosQ96 has implemented the BE changes. |
@laurenluz waiting on you to confirm |
yeah that sounds fine. so we would set in admin bro if we want to show the USD value or the token value in that case? and in admin bro the user would set the matching pool token & amount in that token? (rather than the USD value as we have it now?? @CarlosQ96 @RamRamez |
I added "allocated Token Symbol" and "allocated Token Chain Id" in AdminJS that allows us to set for new QF rounds. |
Re: your comment in the discord:
Yes! On the frontend, actually we need to consider several places... Right now, there are even bugs in what we show.... we are showing estimated matching table in DAI, when the round is not necessarily in DAI.... On donate page (should say "$amount" or "amount tokenname") On project single page (should say $amount" or "amount tokenname" in both the estaimted matching total amounts... and in the table, where right now it is saying DAI.. it should only say DAI if the token is DAI for that round) On project single page donate tab, qf round subtab: (should say "$amount" or "amount tokenname") On project card: (should say "$amount" or "amount tokenname")
If we have some kind of input field in adminJS where admin can set the matching pool amount, token.... I can retroactively edit the past rounds. Ideally, I could input:
... and then the USD value of the matching pool amount is fetched using price discovery from our backend... Ideally, we could have the option if the admin wants to show the matching pool in the Token... or show the USD value instead. |
@laurenluz token Is QF token chain id used anywhere? I've already added that field to QFRound, I'm just asking for clarification. |
I don't think it is... but I would love to use it in our qf round data export because atm... I need to filter through many addresses for each project to find the one to send matching funds to (as a new column) Just fyi @CarlosQ96 |
@RamRamez can you take up the FE changes for this as well |
I'm on it |
Done! @laurenluz Please check and approve this feature branch. You can toggle showing USD value or token amount in Qf round here: |
oh I don't have an ability to lock into this verson of admin bro - it's different from prod. Do I need to set something up for it specifically? @RamRamez |
Thanks for helping me set up the login @RamRamez!! Testing now, here's the bugs I'm finding: AllocatedFund = 10k MATIC When set to show USD value:
When set to show MATIC value:
If you are fixing things on that banner @RamRamez maybe you can also address this rounding issue on the stats banner...
|
…-token-&-amount-to-be-something-other-than-USD-#3839
@laurenluz Thanks for testing. |
Looks great! I just checked again, and didn't see any issues on the preview. |
…-token-&-amount-to-be-something-other-than-USD-#3839 # Conflicts: # src/apollo/gql/gqlProjects.ts # src/apollo/gql/gqlQF.ts # src/apollo/types/types.ts
…oken-&-amount-to-be-something-other-than-USD-#3839 Allow to set the matching pool token & amount to be something other than usd
@maryjaf to test and verify |
please take a look on below video @RamRamez
Screen.Recording.2024-05-06.at.4.15.36.PM.mov |
@maryjaf project cards need about 1 minute before refresh, I think it's ok because it's only set once for each QF round. |
@jainkrati @divine-comedian can we have a release for FE and BE soon to make this feature live? |
@RamRamez I guess it's related to her role? can you confirm what role is that email registered with on prod. |
@Meriem-BM her role is "admin" so he must be able to edit, I can't edit that page too with my own account, I had access before tho. |
I see, so there must be an error that appears on deployed prod, can you share with me the prod link and an account to test @RamRamez |
@RamRamez @Meriem-BM Checking in here, any updates from last week? Have we tested this further? Cc @laurenluz |
I've tested again on production and I didn't see the authorization error on edit page again, it seems it has been resolved . |
No, on stg it works also for rounds that was set up before, it seems there is a problem on prod @RamRamez |
@laurenluz this is not on production yet, it's only on staging as we talked before. |
but it is on production @RamRamez 🤔 the bug I had before was on prod... now there is no bug, but it doesn't work as expected. the screenshot I shared editing the round - that's all from admin bro in prod. Krati told me like last week that you guys merged & @maryjaf & I have been checking prod. Is admin bro up to date, but it's not supposed to be controlling things on the FE on prod? or how is this working? |
@laurenluz backend is merged on production so you can see the new fields are added in AdminJS but frontend not merged yet so it won't apply the changes. |
ooh I see. |
@laurenluz this feature is now live on production, you set custom tokens for matching pools, also you can define QF round banner and sponsors from AdminJS. Besides that, you can fill "Allocated Fund USD" and "Allocated Token Symbol" fields for previous QF rounds using AdminJS to show in /qf-archive page |
for many rounds, we will have matching pools in tokens beyond USD...
MATIC, mpETH, USDGLO, DAI, etc...
To date, all our matching pools are set as "matching pool amount in USD" - in admin bro & in the backend, and this number is used for a variety of other things including
I would like to be able to choose a chain & a token for the matching pool (and have this set in our backend) and then set the amount in that token. We will need to consider then that we should fetch the price of the token when showing estimated matching etc.
I think this is a backend first issue.
@jainkrati
The text was updated successfully, but these errors were encountered: