From 00b270ba08385bb13040342b33cba194568ba080 Mon Sep 17 00:00:00 2001 From: Will Ruddick Date: Tue, 30 Jun 2020 06:31:32 +0000 Subject: [PATCH] Update 007_eMoney_integration.md --- spec/007_eMoney_integration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/007_eMoney_integration.md b/spec/007_eMoney_integration.md index 67c4717..b3801ee 100644 --- a/spec/007_eMoney_integration.md +++ b/spec/007_eMoney_integration.md @@ -33,7 +33,7 @@ Configure - using our own system AfricasTalking API to automatically send Sarafu The Reserve (xDAI) pulled out -> reserveOut_xDAI = CIC_reserve_b * (Math.pow(1 + (-1 * CIC_excahnge_amount) / CIC_supply_b, 1 / trr) - 1) --> this shoudl be calculated as it is done on contract +> reserveOut_xDAI = CIC_reserve_b * (Math.pow(1 + (-1 * CIC_excahnge_amount) / CIC_supply_b, 1 / trr) - 1) --> this should be calculated as it is done on contract - Mpesa_out = reserveOut_xDAI **USD => KSH** rate - **Mpesa_given = Mpesa_out - Mpesa_out*S22M (fee) this is the amount of Mpesa sent to the user** @@ -51,7 +51,7 @@ The Reserve (xDAI) pulled out The amount cashed in = cash_in_amount -> const CIC_Created = CIC_supply_b * (Math.pow(1 + reserveIn_xDAI / CIC_reserve_b, trr) - 1); +> CIC_Created = CIC_supply_b * (Math.pow(1 + reserveIn_xDAI / CIC_reserve_b, trr) - 1) --> this should be calculated as it is done on contract - **CIC_given = CIC_Created - CIC_created*FeeM2CC ()** - Simulate as if done on blockchain .... new_cic_supply_b = cic_supply_b + CIC_given