-
Notifications
You must be signed in to change notification settings - Fork 212
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
chore: fusdc multichain support #10626
Changes from all commits
eb975f1
24bd0cf
80d279e
9664aaa
4bb39bd
944df0b
64a6dce
1847618
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,7 @@ export const prepareAdvancerKit = ( | |
* notifyFacet: import('./settler.js').SettlerKit['notify']; | ||
* borrowerFacet: LiquidityPoolKit['borrower']; | ||
* poolAccount: HostInterface<OrchestrationAccount<{chainId: 'agoric'}>>; | ||
* intermediateRecipient: ChainAddress; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we seem to throw away all but the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. better to check it, but even without checking it there's utility in knowing it's not just a string but a ChainAddress |
||
* }} config | ||
*/ | ||
config => harden(config), | ||
|
@@ -187,12 +188,20 @@ export const prepareAdvancerKit = ( | |
* @param {AdvancerVowCtx & { tmpSeat: ZCFSeat }} ctx | ||
*/ | ||
onFulfilled(result, ctx) { | ||
const { poolAccount } = this.state; | ||
const { poolAccount, intermediateRecipient } = this.state; | ||
const { destination, advanceAmount, ...detail } = ctx; | ||
const transferV = E(poolAccount).transfer(destination, { | ||
denom: usdc.denom, | ||
value: advanceAmount.value, | ||
}); | ||
const transferV = E(poolAccount).transfer( | ||
destination, | ||
{ | ||
denom: usdc.denom, | ||
value: advanceAmount.value, | ||
}, | ||
{ | ||
forwardOpts: { | ||
intermediateRecipient, | ||
}, | ||
}, | ||
); | ||
return watch(transferV, this.facets.transferHandler, { | ||
destination, | ||
advanceAmount, | ||
|
@@ -250,6 +259,7 @@ export const prepareAdvancerKit = ( | |
notifyFacet: M.remotable(), | ||
borrowerFacet: M.remotable(), | ||
poolAccount: M.remotable(), | ||
intermediateRecipient: ChainAddressShape, | ||
}), | ||
}, | ||
); | ||
|
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 have a way to make the type name be the same as the value name in JSDoc. In
.ts
one would usually doenum
. I'm not sure how to do it in .ts without enum.