-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feat/permit fees #43
Feat/permit fees #43
Conversation
@0x4007 This PR generates a separate fee permit for the treasury address (along with our traditional permits for solving an issue and comments). Example with 10% fee:
The thing with this approach is that treasury address must have a github account (i.e. registered with the |
Oh I see. If it simplifies the code then yeah it probably is the best approach. |
@gentlementlegen Help There are 5 failing tests in this CI run which are failing with the More logs:
Somehow Perhaps you see what's wrong? |
@rndquu When the Jest runs, since it's a fork, it doesn't have access to secrets: https://github.com/ubiquibot/conversation-rewards/actions/runs/9872254093/job/27262322258?pr=43#step:1:32
|
As far as I understand it does have access to secrets but only to those set in the forked instance. Ok, thank you, I'll try one of the proposed solutions. |
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.
this looks good but I have another idea:
how about we add another variable fee
(percentage) and totalAfterFee
/totalBeforeFee
and we leave other values unmodified? this way we can display a comment which includes information about the total reward, how much was the fee and total reward after the fee.
This would increase transparency so the user can clearly see how much the comments/task was worth and sees how much was the fee
You mean adding those properties to the |
Depends on #40
Resolves ubiquity-os/permit-generation#16
This PR introduces permit fees. When issue is closed as completed then additional permit will be generated for the treasury. Treasury must be a separate github account (i.e. registered with
/wallet
).QA (no fees):
rndquu-org/test-repo#62 (comment)
QA (10% fee, i.e.
PERMIT_FEE_RATE=10, PERMIT_TREASURY_GITHUB_USERNAME=rndquu3
):rndquu-org/test-repo#62 (comment)
2 permits (assignee reward + treasury fee) are generated in a DB: