Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling other stable COINs #407

Open
KarimChabrak opened this issue Nov 18, 2022 · 0 comments
Open

Enabling other stable COINs #407

KarimChabrak opened this issue Nov 18, 2022 · 0 comments

Comments

@KarimChabrak
Copy link
Contributor

KarimChabrak commented Nov 18, 2022

Currently, we have only TND-COIN that can be purchased and there is to deduction of fees.

  • We need to add options to buy a EUR COIN. Here, the payment shall be feasible only through stripe.
  • Fees should be deducted
  1. By clicking on BUY STABLE COINs, user shall (a) Select for COIN type TND-COIN or EUR-COIN. (b) Select for FIAT type the payment currency EUR or TND and (c) Set COIN amount which is the amount on coins he wants to buy.
  2. User will see the price (see below FIAT price) and can confirm to go to payment or he can cancel the process.
  3. User can edit missing profile data: First name ,Last name, Address, State ,City ,Postcode ,Country
  4. User is then directed to payment process. For EUR, payment is handled via stripe, and in case of TND, payment is handled via conect.

After payment, user will receive corresponding COINs.

The payment interface might need just to confirm transactions initiated by Coinsence platform.

Fiat Transaction data transferred to payment interface:

  • Transaction ID: (generate by coinsence).
  • Fiat type: TND or EUR, this is set by the user
  • Fiat price: this is calculated based on COIN amount given by the user. (here, we consider fees of stripe/connect. Fiat price= fixed_fees+ (COIN_amount/ ExchangeRate)/(1-relative fees)
  • First name ,Last name, Address, State ,City ,Postcode ,Country

COIN transaction data needed after FIAT payment confirmation (to be discussed if these transactions are initiated within Coinsence or within payment code).

  • Transaction ID: (generate by coinsence).
  • COIN1 type: TND-COIN or EUR-COIN (ASA-ID)
  • COIN1 amount : This is given by the user
  • COIN1 from. This is mostly a account managed by coinsence that holds TND-COIN and EUR-COIN
  • COIN1 to. Default user account

In case Fiat type&COIN1 type are EUR&TND-COIN. ExchangeRate= EUR_TND_ExchangeRate which is set by platform admin. For EUR&EUR-COIN and TND&TND-COIN ExchangeRate=1 . (The case TND / EUR-COIN is not possible).

if Fiat type=TND then fixed_fees=fixed_fees TND and relative fees=relative fees TND
if Fiat type=EUR then fixed_fees=fixed_fees EUR and relative fees=relative fees EUR
Value of fees are set by platform admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant