> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aps-store.com/llms.txt
> Use this file to discover all available pages before exploring further.

# savings.lua

> Savings settings of aps_banking: opening price, deposit cap, interest rate and interval, payout limits and the deposit lock.

`config/savings.lua` holds these settings. Every option is explained in the comments below.

> [!NOTE]
>
> Runs on: **shared**. This file stays editable when the resource is escrow-protected. Restart the resource after a change.

```lua theme={null}
Config = Config or {}

Config.Savings = {
    -- Price of opening the account (paid from the personal account)
    openPrice = 0,

    -- Highest balance. Deposits and interest stop there.
    depositCap = 2000000,

    -- ─────────────────────────────────────────
    --  Interest
    --    rate       percent paid per interval
    --    interval   'hour' | 'day' | 'week' | 'month'
    --    maxPayout  most one period can pay (0 = no limit)
    --    minBalance below this nothing is paid
    --    catchUp    periods paid after downtime (0 = all of them)
    --
    --  Interest uses the lowest balance held during the period, so money moved
    --  in just before the payout earns nothing until the next period.
    -- ─────────────────────────────────────────
    interest = {
        rate       = 2.0,
        interval   = 'week',
        maxPayout  = 50000,
        minBalance = 100,
        catchUp    = 8,
    },

    -- Minutes after a deposit before that money can leave again (0 = off)
    lockMinutes = 0,
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.