Skip to content

Enabling other stable COINs #407

@KarimChabrak

Description

@KarimChabrak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions