-
Notifications
You must be signed in to change notification settings - Fork 61
September 2023 Update Adjustments #818
base: development
Are you sure you want to change the base?
September 2023 Update Adjustments #818
Conversation
✅ Deploy Preview for ubiquibot-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks solid is that the whole spec? Hard to tell from mobile
I made some additional adjustments |
My question still stands |
…hey were also the assignee
It should be all now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AmountInBigNumber
instead I think is more expressive
const claimUrlRegex = new RegExp(`\\((${permitBaseUrl}\\?claim=\\S+)\\)`); | ||
const permitCommentIdx = comments.findIndex((e) => e.user.type === UserType.Bot && e.body.match(claimUrlRegex)); | ||
const claimUrlRegex = new RegExp(`\\((${permitBaseUrl}\\S+)\\)`); | ||
const permitCommentIdx = comments.findIndex((e) => e.user.type === UserType.Bot && e.body.match(claimUrlRegex) && e.body.includes("Task Assignee Reward")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it makes sense to call this Assignee Reward because task is implicit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't change it because it will break backwards compatibility. We need to implement comment metadata first and then we can change format
@@ -148,8 +154,8 @@ export const calculateIssueCreatorReward = async (incentivesCalculation: Incenti | |||
incentivesCalculation.paymentPermitMaxPrice | |||
); | |||
|
|||
if (!result || !result.account || !result.amountInETH) { | |||
throw new Error("Failed to generate permit for issue creator because of missing account or amountInETH"); | |||
if (!result || !result.account || !result.rewardInTokens) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's as expressive as inBigNumber etc it implies 1e18 format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not in 1e18 format, but with decimals like 5.235
Co-authored-by: アレクサンダー.eth <[email protected]>
Resolves #798