fleischr / sapui5-metamask-shoppingcart

SAPUI5 Shopping Cart App with Metamask support
0 stars 0 forks source link

Non-stable assets / LP integration / Chainlink price feed #6

Open fleischr opened 2 years ago

fleischr commented 2 years ago

Since digital assets fluctuate in price greatly, many SAP clients may at first avoid accepting assets other than stablecoins for payments

This volatility can be avoided by integrating a Chainlink price feed and a liquidity pool of that asset + desirable stablecoin (ex SHIB / DAI ) provided through a decentralized exchange such as Uniswap, 1inch, Curve, SushiSwap, dydx etc. The Chainlink price feed helps ensure the an up to date price quotation in USD is made in the requested denomination (ex SHIB); the DEX integration allows the SAP client to swap back from SHIB to DAI in real time.

In the B2C context, acceptance of certain tokens like SHIB prove to be valuable for marketing purposes

This is also useful for pricing in other stable currency pairings (euro / usd).

Would need to add support for a smart contact to do this.