-
Notifications
You must be signed in to change notification settings - Fork 229
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
Distribute fees #3030
Distribute fees #3030
Conversation
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.
The ERTP type change aside, this looks good!
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 except for the non-trivial perf issue of awaiting the reuslt of getAllegedBrand
That will result in O(n) cranks rather than O(1) cranks.
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 will admit that I didn't get everything that was going on in vat-bank, but I've reviewed the rest and it looks good.
1731e6b
to
46e5b38
Compare
packages/zoe/test/unitTests/contracts/newSwap/test-newSwap-swap.js
Outdated
Show resolved
Hide resolved
issue 3033 shows that reallocate fails unnecessarily if asked to reallocate to seats that had no previous allocation, even if the new allocations are empty. This works around that for the collectFees contract until a fix can be prepared.
7f833f2
to
334a253
Compare
With @Chris-Hibbert 's help, we leveraged the fee distribution and wired it into the chain bootstrap.