- Manually fund both issuer and distributor account using friendlybot with 10000 XLM.
- if new exchange(this will run only for new exchange),
- then distributor change trust(KKDE) using his secretkey
- issuer fund the distributor with 1_00_000 KKDE using issuer secretkey
- a random stellar keypair is generated and the secret key is stored in user table.
- issuer fund the new user with 10 XLM using issuer secretkey.
- then the new user change trust(KKDE) using his secretkey
final result
| Account | XLM Balance | KKDE Balance |
|---|---|---|
| issuer | 9989.99998 | - |
| distributor | 9999.99997 | 100000 KKDE |
| new user | 9.99999 | 0 KKDE |
when 10 KKDE mint by new user, distributor fund the new user with 10 KKDE using distributor secretkey
| Account | XLM Balance | KKDE Balance |
|---|---|---|
| issuer | 9979.99997(10 xlm for new user) | - |
| distributor | 9999.99996 | 99990 KKDE |
| new user | 9.99999 | 10 KKDE |