7
7
} from '@agoric/swingset-vat/src/vats/network/index.js' ;
8
8
import { E , Far } from '@agoric/far' ;
9
9
import { makeStore } from '@agoric/store' ;
10
- import { installOnChain as installTreasuryOnChain } from '@agoric/treasury /bundles/install-on-chain.js' ;
10
+ import { installOnChain as installTreasuryOnChain } from '@agoric/run-protocol /bundles/install-on-chain.js' ;
11
11
import { installOnChain as installPegasusOnChain } from '@agoric/pegasus/bundles/install-on-chain.js' ;
12
12
import attestationBundle from '@agoric/zoe/src/contracts/attestation/install-on-chain.js' ;
13
13
import { bootstrapAttestation } from '@agoric/zoe/src/contracts/attestation/bootstrapAttestation.js' ;
@@ -242,26 +242,6 @@ async function makeChainBundler(
242
242
displayInfo : { decimalPlaces : 6 , assetKind : AssetKind . NAT } ,
243
243
initialFunds : 1_000_000_000_000_000_000n ,
244
244
} ;
245
- const zoeFeesConfig = {
246
- getPublicFacetFee : 50n ,
247
- installFee : 65_000n ,
248
- startInstanceFee : 5_000_000n ,
249
- offerFee : 65_000n ,
250
- timeAuthority : chainTimerServiceP ,
251
- lowFee : 500_000n ,
252
- highFee : 5_000_000n ,
253
- shortExp : 1000n * 60n * 5n , // 5 min in milliseconds
254
- longExp : 1000n * 60n * 60n * 24n * 1n , // 1 day in milliseconds
255
- } ;
256
- const meteringConfig = {
257
- incrementBy : 25_000_000n ,
258
- initial : 50_000_000n ,
259
- threshold : 25_000_000n ,
260
- price : {
261
- feeNumerator : 1n ,
262
- computronDenominator : 1n , // default is just one-to-one
263
- } ,
264
- } ;
265
245
266
246
// Create singleton instances.
267
247
const [
@@ -277,12 +257,7 @@ async function makeChainBundler(
277
257
E ( vats . sharing ) . getSharingService ( ) ,
278
258
E ( vats . board ) . getBoard ( ) ,
279
259
chainTimerServiceP ,
280
- E ( vats . zoe ) . buildZoe (
281
- vatAdminSvc ,
282
- feeIssuerConfig ,
283
- zoeFeesConfig ,
284
- meteringConfig ,
285
- ) ,
260
+ E ( vats . zoe ) . buildZoe ( vatAdminSvc , feeIssuerConfig ) ,
286
261
E ( vats . priceAuthority ) . makePriceAuthority ( ) ,
287
262
E ( vats . walletManager ) . buildWalletManager ( vatAdminSvc ) ,
288
263
] ) ;
@@ -333,7 +308,7 @@ async function makeChainBundler(
333
308
chainTimerService,
334
309
nameAdmins,
335
310
priceAuthority,
336
- zoeWPurse : zoeWUnlimitedPurse ,
311
+ zoe : zoeWUnlimitedPurse ,
337
312
bootstrapPaymentValue,
338
313
feeMintAccess,
339
314
} ) ,
@@ -342,7 +317,7 @@ async function makeChainBundler(
342
317
board,
343
318
nameAdmins,
344
319
namesByAddress,
345
- zoeWPurse : zoeWUnlimitedPurse ,
320
+ zoe : zoeWUnlimitedPurse ,
346
321
} ) ,
347
322
] ) ;
348
323
@@ -479,7 +454,7 @@ async function makeChainBundler(
479
454
// Only distribute fees if there is a collector.
480
455
E ( vats . distributeFees )
481
456
. buildDistributor (
482
- [ treasuryCreator , ammFacets . creatorFacet ] . map ( cf =>
457
+ [ treasuryCreator , ammFacets . ammCreatorFacet ] . map ( cf =>
483
458
E ( vats . distributeFees ) . makeFeeCollector ( zoeWUnlimitedPurse , cf ) ,
484
459
) ,
485
460
feeCollectorDepositFacet ,
0 commit comments