Update 007_eMoney_integration.md
This commit is contained in:
parent
c109192d3e
commit
50323b77e9
@ -74,6 +74,8 @@ When dislaying the SPOT price or excahnge rate to a user we should use the follo
|
||||
|
||||
### User Interface ###
|
||||
|
||||
|
||||
|
||||
- When a user chooses to ``Redeem get Quote```:
|
||||
- They should enter the amount (limited to the max in their balance)
|
||||
- They should get a confirmation Based on a quote from the blockchain in a SMS:
|
||||
@ -84,6 +86,26 @@ When dislaying the SPOT price or excahnge rate to a user we should use the follo
|
||||
- Please type your PIN to confirm
|
||||
- The user should get a Mpesa responce for recieving the **Mpesa_given**
|
||||
|
||||
User chooses Excahnge Menu option #2
|
||||
- Redeem 1000 CIC
|
||||
- Calculate a quote .... :
|
||||
- Quotation: Date.
|
||||
- SMS: You will receive at least 800 KSH for 1000 CIC. (MVP)
|
||||
- getQuoteRedeemCIC(amount, CIC):
|
||||
- mvp: return amount = amount - amount * rate; /// Rate is 10%
|
||||
- best: web3 calls to purchaseReturn
|
||||
- On the Exchange menu - option #3 is Confirm Quotation:
|
||||
- Please confirm: "You will receive at least 800 KSH for 1000 CIC."
|
||||
- Yes.
|
||||
- mvp: GE receives the 1000 CIC
|
||||
- best: Then we try a conversion ... with a Min return.
|
||||
- best: 1000 CIC is sent to the contract (on blockchain) - (xDAI is sent to the GE float account - to be cleared later)
|
||||
- Mpesa as in the quote - is sent to the user
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- When a user chooses to ``Contribute get Quote```:
|
||||
- They should enter the amount of Mpesa they wish to contribute
|
||||
- They should get a confirmation Based on a quote from the blockchain in a SMS:
|
||||
@ -94,6 +116,26 @@ When dislaying the SPOT price or excahnge rate to a user we should use the follo
|
||||
- Please type your PIN to confirm
|
||||
- The user should get a SMS responce from GE for recieving the **CIC_given**
|
||||
|
||||
User chooses Excahnge Menu option #2
|
||||
- Contribute KSH - returning CIC
|
||||
- Calculate a quote .... :
|
||||
- Quotation: Date.
|
||||
- SMS: You will receive at least 1200 CIC for 1000 KSH. (MVP)
|
||||
- getQuoteContriuteKSH(amount, CIC):
|
||||
- mvp: return amount = amount + amount * rate; /// Rate is 10%
|
||||
- best: web3 calls to purchaseReturn
|
||||
- On the Exchange menu - option #3 is Confirm Quotation:
|
||||
- Please confirm: "You will receive at least 1200 CIC for 1000 KSH."
|
||||
- Yes.
|
||||
- mvp: SMS: Please send 1000 KSH to PayBill account number [phone number]
|
||||
- best: Then we try a conversion ... with a Min return.
|
||||
- best: xDAI is sent to the contract (on blockchain) - (xDAI is sent to the GE float account - to be cleared later)
|
||||
- CIC as in the quote - is sent to the user
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Credit Clearing ###
|
||||
Weekly or after alterts we will rebalance our xDAI and Mpesa float accounts.
|
||||
|
Loading…
Reference in New Issue
Block a user