-
Notifications
You must be signed in to change notification settings - Fork 51
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
Refactor batch payer #639
Refactor batch payer #639
Conversation
I merged #623 in order to have a solution for the release. |
…butor-organization/tezos-reward-distributor into refactor-batch-payer
…butor-organization/tezos-reward-distributor into refactor-batch-payer
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.
LGTM, I will let @dansan566 make 1 payment with this branch and merge afterwards
Did a dry run, and got this:
Payouts to the address worked on the main branch, and the contract is not liquidated! I had this error on more than 30 addresses, all of them KT1... (smart contracts) |
@dansan566 ok thank you for the insight! retry failed payments on master and we will investigate |
@jdsika, there are no failed payments if skipped! |
Two issues.
|
@jdsika I did a dry run on the branch, and it worked so the error has been fixed by @rvermootenct |
🔥 🔥 |
name: Pull Request
about: Create a pull request to make a contribution
labels:
IMPORTANT NOTICE:
I read and understood the guidelines for contributions to the TRD. The contribution may qualify for being compensated by the TRD grant if approved by the maintainers.
Please be aware that the failing tests can be seen on master as well atm..
This PR resolves the issue 641. The following steps were performed:
Analysis: The batch payer class is very tough to work with and has no unit tests. It requires a huge refactor but needs initial building blocks before that will be possible. There is a lot of technical debt in this class that needs to be paid.
Solution: BatchPayer needs to have functions pulled out and unit tested. Naming conventions need to be better.
Implementation: Pulled out a bunch of little functions into a utils file. Renamed a number of vars within the class for better understanding. Wrote tests.
Performed tests: Tests should pass no problem and I was able to test locally on ghostnet that the batch payer acted as expected.
Work effort: 20h
GIF TAX: