Spending Limits

Your on-chain safety net. Spending limits are what keep Miko's autonomous payments operating within the boundaries you define—enforced by smart contracts, not application code.

What Are Spending Limits?

Miko pays autonomously. Spending limits ensure that autonomy is bounded. Three time-based caps give you complete control:

Period
Timeframe
Purpose

Daily

24 hours

Prevents day-to-day overspending

Weekly

7 days

Caps weekly budget

Monthly

30 days

Long-term spending control

All limits are enforced on-chain. Before every payment. No exceptions.

How Limits Work

The Hierarchy Rule

Limits must be logically nested:

Monthly ≥ Weekly ≥ Daily

✅ Valid:
Daily:   0.01 SOL
Weekly:  0.05 SOL
Monthly: 0.2 SOL

❌ Invalid:
Daily:   0.1 SOL
Weekly:  0.05 SOL  ← Less than daily
Monthly: 0.2 SOL

Automatic Resets

  • Daily: Resets every 24 hours from your first transaction of the day

  • Weekly: Resets every 7 days

  • Monthly: Resets every 30 days

Resets are automatic. No manual intervention needed.

Real-Time Enforcement

Before every payment, Miko checks:

If any check fails, the payment is blocked. No money leaves your wallet.

Setting Up Limits

Tier
Daily
Weekly
Monthly
Use Case

Conservative

0.01 SOL (~$2.50)

0.05 SOL (~$12.50)

0.2 SOL (~$50)

Learning the system

Moderate

0.02 SOL (~$5)

0.1 SOL (~$25)

0.4 SOL (~$100)

Daily API access

Power User

0.1 SOL (~$25)

0.5 SOL (~$125)

2 SOL (~$500)

Heavy usage

Enterprise

1 SOL (~$250)

5 SOL (~$1,250)

20 SOL (~$5,000)

Production workloads

Start conservative. Scale based on actual usage.

Smart Contract Configuration

Limits are stored on-chain for maximum security:

On-chain enforcement means limits:

  • Cannot be bypassed by application bugs

  • Cannot be manipulated by external actors

  • Are transparent and auditable

  • Are trustless—enforced by mathematics

Web UI for limit management coming soon (no Solidity knowledge required).

Monitoring Your Spending

Current Usage

Check via Miko chat or the dashboard:

Alerts (Coming Soon)

  • 80% warning — "You've used 80% of your daily limit"

  • Limit reached — "Payment rejected: Daily limit exceeded"

  • Anomaly detection — "Spending spike detected: 3x normal daily average"

Adjusting Limits

Increasing Limits

Takes effect immediately. Does not reset already-spent amounts.

Decreasing Limits

Also takes effect immediately. If you've already exceeded the new limit, no further payments are allowed until the next reset.

Temporary Overrides (Coming Soon)

One-time limit increases for specific needs:

  • Boost a limit for 24 hours

  • Requires additional wallet confirmation

  • Automatically reverts after expiration

  • Audit trail logged on-chain

Limit Scenarios

Scenario 1: Within All Limits ✅

Scenario 2: Daily Limit Exceeded ❌

Scenario 3: Daily OK, Weekly Exceeded ❌

All limits must pass. One failure blocks the payment.

Smart Contract Details

Core Functions

Approved Spenders

Authorize Miko402 to check and record spending on your behalf:

You control who interacts with your limits.

On-Chain vs. Database

Feature
Smart Contract
Traditional Database

Tamper-proof

✅ Immutable

❌ Editable

Transparent

✅ Public

❌ Opaque

Auditable

✅ On-chain

❌ Requires access

Trustless

✅ Math-enforced

❌ Trust required

Best Practices

1. Start Small, Scale Gradually

2. Review Weekly

Check total spending, analyze per-service costs, look for patterns, and adjust limits as needed. Five minutes of review provides peace of mind.

3. Use Separate Wallets

  • Testing Wallet — Low limits, experimental services

  • Operational Wallet — Moderate limits, trusted services

  • Cold Storage — No Miko access, main holdings

4. Set Realistic Limits

Base limits on your budget, expected usage, typical service costs, and risk tolerance:

Security Considerations

What Limits Protect Against

Even if someone gains unauthorized wallet access, they cannot:

  • Exceed your configured limits

  • Modify limits without your wallet signature

  • Bypass on-chain enforcement

  • Drain your wallet beyond the daily cap

Limits are your last line of defense.

Smart Contract Audits

The SpendingLimits contract is:

  • Audited — By professional security firms

  • Battle-tested — Used in production

  • Upgradeable — With 48-hour timelock for safety

Troubleshooting

Cannot Set Limits

  1. Ensure wallet is connected

  2. Verify hierarchy: Monthly ≥ Weekly ≥ Daily

  3. Check gas balance for the transaction

  4. Confirm smart contract approval

Payment Rejected Despite Having Funds

Check all three limits—one may be at capacity while balance is sufficient:

Limits Not Updating

  1. Wait for the transaction to confirm (check block explorer)

  2. Hard refresh the page (Ctrl+Shift+R / Cmd+Shift+R)

  3. Clear browser cache

  4. Verify the transaction succeeded on-chain

Advanced Features (Coming Soon)

  • Multi-Signature Limits — Require multiple approvals for limit changes

  • Dynamic Limits — Time-based adjustments (higher during business hours, lower overnight)

  • Spending Analytics — AI-powered insights and optimization suggestions


Questions about spending limits?

📧 Support: [email protected]envelope 𝕏 Updates: @miko402xyzarrow-up-right

Last updated