@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
23 lines • 749 B
TypeScript
export function prepare(zcf: ZCF<ScaledPriceAuthorityOpts>, privateArgs: object, baggage: import("@agoric/vat-data").Baggage): Promise<{
publicFacet: import("@endo/exo").Guarded<{
getPriceAuthority: () => Promise<PriceAuthority>;
}>;
}>;
export type ScaledPriceAuthorityOpts = {
sourcePriceAuthority: ERef<PriceAuthority>;
/**
* - sourceAmountIn:targetAmountIn
*/
scaleIn: Ratio;
/**
* - sourceAmountOut:targetAmountOut
*/
scaleOut: Ratio;
/**
* - targetAmountIn:targetAmountOut
*/
initialPrice?: Ratio | undefined;
};
import type { ZCF } from '@agoric/zoe';
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
//# sourceMappingURL=scaledPriceAuthority.d.ts.map