|
| 1 | +--- |
| 2 | +title: "Lockup Wallet" |
| 3 | +--- |
| 4 | + |
| 5 | +import { Aside } from '/snippets/aside.jsx'; |
| 6 | + |
| 7 | +Lockup Wallet is a specialized wallet contract that temporarily locks TON funds for a specified period. The repository contains two implementations with different unlocking mechanisms. |
| 8 | + |
| 9 | +## What makes it different |
| 10 | + |
| 11 | +Unlike standard wallets that allow immediate fund withdrawal, Lockup Wallet implements time-based restrictions that prevent premature fund access. |
| 12 | + |
| 13 | +**Standard wallet behavior:**\ |
| 14 | +You can send funds immediately after receiving them. |
| 15 | + |
| 16 | +**Lockup Wallet behavior:**\ |
| 17 | +Funds are locked until a specified time, then unlock according to the contract mechanism. |
| 18 | + |
| 19 | +<Aside |
| 20 | + type="danger" |
| 21 | + title="Legacy contract" |
| 22 | +> |
| 23 | + Lockup Wallet is deprecated. Use [Vesting Contract](/standard/vesting) for new deployments. |
| 24 | +</Aside> |
| 25 | + |
| 26 | +## Available contracts |
| 27 | + |
| 28 | +The repository contains two wallet contracts with different unlocking mechanisms: |
| 29 | + |
| 30 | +| Feature | Universal Lockup Wallet | Vesting Wallet | |
| 31 | +|---------|-------------------------|----------------| |
| 32 | +| Locking mechanism | Single unlock date | Cliff period + gradual unlocks | |
| 33 | +| Unlock pattern | All funds unlock at once | Gradual unlocking over time | |
| 34 | +| Use cases | Simple lockups, escrow | Employee vesting, long-term investments | |
| 35 | +| Complexity | Lower | Higher | |
| 36 | + |
| 37 | +## How it works |
| 38 | + |
| 39 | +### Universal Lockup Wallet |
| 40 | + |
| 41 | +Simple time-based locking where all funds unlock at once: |
| 42 | + |
| 43 | +1. Initial lock: All funds are locked until unlock date |
| 44 | +2. Complete unlock: All funds become available simultaneously |
| 45 | + |
| 46 | +Example: |
| 47 | +``` |
| 48 | +Amount: 100,000 TON |
| 49 | +Lock Period: 1 year |
| 50 | +Result: All 100,000 TON unlock simultaneously after 1 year |
| 51 | +``` |
| 52 | + |
| 53 | +### Vesting Wallet |
| 54 | + |
| 55 | +Gradual unlocking with optional cliff periods: |
| 56 | + |
| 57 | +1. Initial lock: All funds are locked until `vesting_start_time` |
| 58 | +2. Cliff period: Optional period where no funds unlock |
| 59 | +3. Gradual unlock: After cliff, funds unlock in regular intervals |
| 60 | +4. Full access: Eventually all funds become available |
| 61 | + |
| 62 | +Example: |
| 63 | +``` |
| 64 | +Total: 1,000,000 TON |
| 65 | +Vesting: 10 years, 1-year cliff |
| 66 | +Result: 0 TON for 12 months, then ~8,333 TON/month |
| 67 | +``` |
| 68 | + |
| 69 | +## Use cases |
| 70 | + |
| 71 | +### Universal Lockup Wallet |
| 72 | +- Escrow services: Lock funds until conditions are met |
| 73 | +- Simple lockups: Basic time-based restrictions |
| 74 | +- Temporary holds: Short-term fund locking |
| 75 | + |
| 76 | +### Vesting Wallet |
| 77 | +- Employee token vesting: Lock employee tokens for 4 years with 1-year cliff |
| 78 | +- Investment lockups: Lock investor funds for predetermined periods |
| 79 | +- Long-term savings: Personal long-term investment strategies |
| 80 | + |
| 81 | +## Implementation |
| 82 | + |
| 83 | +### Source code |
| 84 | +- Repository: [ton-blockchain/lockup-wallet-contract](https://github.com/ton-blockchain/lockup-wallet-contract) |
| 85 | + |
| 86 | +### DApp interface |
| 87 | +- Lockup Sender: [toncenter.github.io/lockup-sender](https://toncenter.github.io/lockup-sender/) |
0 commit comments