-
Notifications
You must be signed in to change notification settings - Fork 219
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
Integrate JS RUN fees with the x/distribution module #3135
Conversation
889436a
to
1bbf7dc
Compare
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.
Go stuff looks good.
}, | ||
async pushAmount(amount) { | ||
const value = AmountMath.getValue(feeKit.brand, amount); | ||
await bankCall({ |
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 assume that this implicitly throws any error returned by the call?
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.
Yes, an async
method always returns a promise. await x
either returns the resolved value of x
, or if x
is rejected, throws the rejected reason (if uncaught, resulting in a rejected promise with the same reason).
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 good. One comment needs to be updated.
@@ -30,56 +26,28 @@ export function makeTreasuryFeeCollector(zoe, treasuryCreatorFacet) { | |||
// remainder till the next epoch. | |||
|
|||
/** @type {BuildFeeDistributor} */ | |||
export function buildDistributor(treasury, bank, epochTimer, params) { | |||
export async function buildDistributor( |
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.
Please update the comment above.
// A distributor of fees from treasury to the Bank module. Each time the
// epochTimer signals the end of an Epoch, it will ask
// the treasury for the fees that have been collected to date and send that
// payment to the depositFacet.
Note: #3114 |
1bbf7dc
to
9c6e9f9
Compare
9c6e9f9
to
7e97cc1
Compare
vpurse.epochDuration
genesis parameter,