Skip to content

Commit ede0d94

Browse files
dckcmichaelfig
authored andcommitted
chore(vats): fix bad merge???
1 parent 2489f1d commit ede0d94

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

packages/vats/src/bootstrap.js

+5-30
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from '@agoric/swingset-vat/src/vats/network/index.js';
88
import { E, Far } from '@agoric/far';
99
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';
1111
import { installOnChain as installPegasusOnChain } from '@agoric/pegasus/bundles/install-on-chain.js';
1212
import attestationBundle from '@agoric/zoe/src/contracts/attestation/install-on-chain.js';
1313
import { bootstrapAttestation } from '@agoric/zoe/src/contracts/attestation/bootstrapAttestation.js';
@@ -242,26 +242,6 @@ async function makeChainBundler(
242242
displayInfo: { decimalPlaces: 6, assetKind: AssetKind.NAT },
243243
initialFunds: 1_000_000_000_000_000_000n,
244244
};
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-
};
265245

266246
// Create singleton instances.
267247
const [
@@ -277,12 +257,7 @@ async function makeChainBundler(
277257
E(vats.sharing).getSharingService(),
278258
E(vats.board).getBoard(),
279259
chainTimerServiceP,
280-
E(vats.zoe).buildZoe(
281-
vatAdminSvc,
282-
feeIssuerConfig,
283-
zoeFeesConfig,
284-
meteringConfig,
285-
),
260+
E(vats.zoe).buildZoe(vatAdminSvc, feeIssuerConfig),
286261
E(vats.priceAuthority).makePriceAuthority(),
287262
E(vats.walletManager).buildWalletManager(vatAdminSvc),
288263
]);
@@ -333,7 +308,7 @@ async function makeChainBundler(
333308
chainTimerService,
334309
nameAdmins,
335310
priceAuthority,
336-
zoeWPurse: zoeWUnlimitedPurse,
311+
zoe: zoeWUnlimitedPurse,
337312
bootstrapPaymentValue,
338313
feeMintAccess,
339314
}),
@@ -342,7 +317,7 @@ async function makeChainBundler(
342317
board,
343318
nameAdmins,
344319
namesByAddress,
345-
zoeWPurse: zoeWUnlimitedPurse,
320+
zoe: zoeWUnlimitedPurse,
346321
}),
347322
]);
348323

@@ -479,7 +454,7 @@ async function makeChainBundler(
479454
// Only distribute fees if there is a collector.
480455
E(vats.distributeFees)
481456
.buildDistributor(
482-
[treasuryCreator, ammFacets.creatorFacet].map(cf =>
457+
[treasuryCreator, ammFacets.ammCreatorFacet].map(cf =>
483458
E(vats.distributeFees).makeFeeCollector(zoeWUnlimitedPurse, cf),
484459
),
485460
feeCollectorDepositFacet,

0 commit comments

Comments
 (0)