UNPKG

@lifi/composer-sdk

Version:

Public Composer SDK for building and submitting flows

26 lines (25 loc) • 992 B
import { __exportAll } from "../_virtual/_rolldown/runtime.js"; //#region src/generated/guards.generated.ts var guards_generated_exports = /* @__PURE__ */ __exportAll({ band: () => band, coreNumericInvariant: () => coreNumericInvariant, slippage: () => slippage }); /** Assert that output amounts are within a slippage tolerance in basis points */ const slippage = (config) => ({ kind: "slippage", ...config }); /** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */ const coreNumericInvariant = (config) => ({ kind: "core.numericInvariant", ...config }); /** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */ const band = (config) => ({ kind: "band", ...config }); //#endregion export { band, coreNumericInvariant, guards_generated_exports, slippage }; //# sourceMappingURL=guards.generated.js.map