Closed anilhelvaci closed 9 months ago
We need another dialog to let the borrowers do an adHoc borrowing. This dialog should open when the borrower clicks a rental that is on the Catalog page. Here's the required spendAction data:
adHoc
Catalog
spendAction
const spendAction = { method: 'executeOffer', offer: { id: 'borrow-ad-hoc', invitationSpec: { source: 'agoricContract', instancePath: ['Crabble'], callPipe: [ ['getRentalByHandle', [rentalHandles[0]]], // Borrower wants to rent the first rental ['makeBuyOutInvitation'] ] }, proposal: { give: { Collateral: collateralAmount, RentalFee: rentalFeeAmount }, want: { Utility: utilityAmount, } }, offerArgs: { rentingDuration: config.rentingDuration, } }, };
Name of the related wireframe in balsamic: Borrow - AdHoc cc @GrigoriGrigoryanBytepitch
Borrow - AdHoc
We need another dialog to let the borrowers do an
adHoc
borrowing. This dialog should open when the borrower clicks a rental that is on theCatalog
page. Here's the requiredspendAction
data: