Skip to content

suhailvs-archive/stellar_hackaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stellar Local Exchange

Stellar blockchain custom assets

When User SignUp

  1. Manually fund both issuer and distributor account using friendlybot with 10000 XLM.
  2. if new exchange(this will run only for new exchange),
    1. then distributor change trust(KKDE) using his secretkey
    2. issuer fund the distributor with 1_00_000 KKDE using issuer secretkey
  3. a random stellar keypair is generated and the secret key is stored in user table.
  4. issuer fund the new user with 10 XLM using issuer secretkey.
  5. 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 User mint

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

Releases

No releases published

Packages

 
 
 

Contributors