@moneypot/hub 1.9.0-dev.11 → 1.9.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,6 +196,7 @@ export function MakeOutcomeBetPlugin({ betConfigs }) {
196
196
  riskPolicy: betConfig.riskPolicy,
197
197
  displayUnitName: dbCurrency.display_unit_name,
198
198
  displayUnitScale: dbCurrency.display_unit_scale,
199
+ outcomes: input.outcomes,
199
200
  });
200
201
  if (!riskResult.ok) {
201
202
  throw new GraphQLError(riskResult.error);
@@ -1,9 +1,11 @@
1
+ import { DbOutcome } from "./db/types.js";
1
2
  import { Result } from "./util.js";
2
3
  export type RiskPolicyArgs = {
3
4
  currency: string;
4
5
  wager: number;
5
6
  bankroll: number;
6
7
  maxPotentialPayout: number;
8
+ outcomes: DbOutcome[];
7
9
  };
8
10
  type AtLeastOneKey<T, Keys extends keyof T = keyof T> = Keys extends keyof T ? Required<Pick<T, Keys>> & Partial<Omit<T, Keys>> : never;
9
11
  export type RiskLimits = AtLeastOneKey<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.9.0-dev.11",
3
+ "version": "1.9.0-dev.12",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [