Skip to content

Commit a6b86da

Browse files
committed
chore(fast-usdc): prune testBorrow, testRepay methods
1 parent 1f5f385 commit a6b86da

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/fast-usdc/src/fast-usdc.contract.js

-29
Original file line numberDiff line numberDiff line change
@@ -151,35 +151,6 @@ export const contract = async (zcf, privateArgs, zone, tools) => {
151151
async makeOperatorInvitation(operatorId) {
152152
return feedKit.creator.makeOperatorInvitation(operatorId);
153153
},
154-
/**
155-
* @param {{ USDC: Amount<'nat'>}} amounts
156-
*/
157-
testBorrow(amounts) {
158-
console.log('🚧🚧 UNTIL: borrow is integrated (#10388) 🚧🚧', amounts);
159-
const { zcfSeat: tmpAssetManagerSeat } = zcf.makeEmptySeatKit();
160-
poolKit.borrower.borrow(tmpAssetManagerSeat, amounts);
161-
return tmpAssetManagerSeat.getCurrentAllocation();
162-
},
163-
/**
164-
*
165-
* @param {RepayAmountKWR} amounts
166-
* @param {RepayPaymentKWR} payments
167-
* @returns {Promise<AmountKeywordRecord>}
168-
*/
169-
async testRepay(amounts, payments) {
170-
console.log('🚧🚧 UNTIL: repay is integrated (#10388) 🚧🚧', amounts);
171-
const { zcfSeat: tmpAssetManagerSeat } = zcf.makeEmptySeatKit();
172-
await depositToSeat(
173-
zcf,
174-
tmpAssetManagerSeat,
175-
await deeplyFulfilledObject(
176-
objectMap(payments, pmt => E(terms.issuers.USDC).getAmountOf(pmt)),
177-
),
178-
payments,
179-
);
180-
poolKit.repayer.repay(tmpAssetManagerSeat, amounts);
181-
return tmpAssetManagerSeat.getCurrentAllocation();
182-
},
183154
});
184155

185156
const publicFacet = zone.exo('Fast USDC Public', undefined, {

0 commit comments

Comments
 (0)