Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

A decentralized KRW price feed example built with Solidity, Truffle and Witnet

Notifications You must be signed in to change notification settings

stampery-labs/witnet-pricefeed-krw-example

Repository files navigation

⚠️ This repository has been deprecated in favor of price-feed-examples repository.

witnet-pricefeed-krw-example

This is an example of a decentralized price-feed retrieving the price of the KRW with respect to BTC and USD. The smart contract utilizes the Witnet DON to retrieve the data from 8 different sources in both cases. These sources are:

KRW/BTC:

  • coinone
  • blockchain
  • coinzeus
  • korbit
  • bithumb
  • coindesk
  • coinpaprika
  • billboard

USD/KRW:

  • rateExchange
  • transferwise
  • freecurrencyrates
  • finder
  • reuters
  • freeForexApi
  • fxEmpire
  • currencyCal

The aggregation phase includes a filter in which values deviated more than 1.5 standard deviations from the average are discarded. After that, the average of the values reported by the sources is taken.

The tally phase includes a filter in which values deviated more than 1 standard deviation from the average are discarded. After that, the average of the values reported by the witnesses is taken.

##cl Disclaimer

This code is experimental and APIs are subject to change. If you come across problems, it would help greatly to open issues so that we can fix them as quickly as possible.

About

A decentralized KRW price feed example built with Solidity, Truffle and Witnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published