MooPay Open MooPay

Policy rules

Read the code that limits what the agent can spend.

All limits live in src/agent/policy.ts. They are pure functions, so they are easy to test.

FunctionJob
decideAuto, ask or deny for one payment.
rulesNeedApprovalSays if a rules change needs your OK.
scopeDenyChain, asset and recipient allow lists.
agentDenyLimits on one agent key.
Default rules
export const DEFAULT_RULES: Rules = {
  floatUsd: 25,
  dailyCapUsd: 50,
  newRecipientLimitUsd: 10,
  approveAboveUsd: 25,
};

Loosening a rule or changing the payout wallet needs a human. A new payout wallet waits PAYOUT_HOLD_MS, which is 24 hours.

Need help? support@moopay.cash