diff --git a/src/families/crypto_org/specs.ts b/src/families/crypto_org/specs.ts index dcbb439205..b390971b92 100644 --- a/src/families/crypto_org/specs.ts +++ b/src/families/crypto_org/specs.ts @@ -5,12 +5,6 @@ import { pickSiblings } from "../../bot/specs"; import type { AppSpec } from "../../bot/types"; import { DeviceModelId } from "@ledgerhq/devices"; -// this spec defines a set of "rules" that the bot will follow -// to accumulate transactions on accounts. -// right now, it will rotate the funds among 3 accounts by doing a 50% send each run. -// TODO: more cases to cover -// TODO: more assertions could be written - const sharedMutations = ({ maxAccount }) => [ { name: "move 50%", @@ -46,9 +40,29 @@ const crypto_org_croeseid: AppSpec = { "balance is too low" ); }, - mutations: sharedMutations({ maxAccount: 3 }), + mutations: sharedMutations({ maxAccount: 5 }), +}; + +const crypto_org: AppSpec = { + name: "Crypto.org", + currency: getCryptoCurrencyById("crypto_org"), + appQuery: { + model: DeviceModelId.nanoS, + appName: "Crypto.orgChain", + }, + testTimeout: 4 * 60 * 1000, + transactionCheck: ({ maxSpendable }) => { + invariant( + maxSpendable.gt( + parseCurrencyUnit(getCryptoCurrencyById("crypto_org").units[0], "0.01") + ), + "balance is too low" + ); + }, + mutations: sharedMutations({ maxAccount: 5 }), }; export default { crypto_org_croeseid, + crypto_org, };