# CDR #034: DeStar | Asset Price Feed

**URL:** <https://forum.diadata.org/t/cdr-034-destar-asset-price-feed/548>\
**Category:** CDRs - Custom Delivery Requests\
**Tags:** evmos, lending, defi, token-price-feed\
**Created:** [January 11, 2023, 6:39pm UTC](https://forum.diadata.org/t/cdr-034-destar-asset-price-feed/548 "2023-01-11T18:39:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeStarProtocol](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/destarprotocol/32/292_2.png) [@DeStarProtocol](https://forum.diadata.org/u/DeStarProtocol)\
**Post date:** [January 11, 2023, 6:39pm UTC](https://forum.diadata.org/t/cdr-034-destar-asset-price-feed/548/1 "2023-01-11T18:39:31Z")

</div>

## dApp Introduction

**dApp name** : DeStar  
**dApp website** : [destar.io](http://destar.io)  
**dApp overview** : DeStar is a protocol that enables users to deposit and borrow tokens on top of its network. Depositors can provide liquidity to earn interest, while borrowers can leverage their assets without selling them out.

## Feed usage

**Data type** : Price feed  
**Use case** : The feed will be used to price collateral value

## Specifications

**Feed specification**

**Asset pair** : BTC/USD  
**Sources** : All available markets  
**Methodology** : Moving Average Price with Interquartile Range (MAIR)  
**Frequency** : 60sec  
**Window size** : 30sec

**Oracle specification**

**Target chain** : Evmos  
**Update mechanism** : Deviation based  
**Threshold** : 0.5%

**Additional information  
–**

---

<div class="post-metadata">

**Author:** ![Samuel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/samuel/32/119_2.png) [@Samuel](https://forum.diadata.org/u/Samuel)\
**Post date:** [January 23, 2023, 11:57am UTC](https://forum.diadata.org/t/cdr-034-destar-asset-price-feed/548/2 "2023-01-23T11:57:38Z")

</div>

Thank you for requesting a DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle / API endpoint below:

**Markets**

By querying for blockchain and asset, the [API](https://docs.diadata.org/documentation/api-1/api-endpoints#asset-markets) provides the markets used for calculating this feed.

**API endpoint**

By querying for blockchain and asset, the [API](https://docs.diadata.org/documentation/api-1/api-endpoints#asset-quotation) provides the asset quotation for each asset in the feed.

**Oracle**

The oracle is deployed and can be accessed here.

> **[Contract address 0x2661578b62f00edc1671067b6ef20db73a603016 - Escan](https://escan.live/address/0x2661578b62f00edc1671067b6ef20db73a603016)**
>
> The Contract Address 0x2661578b62f00edc1671067b6ef20db73a603016 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

You can query for assets by calling the read function getValue() with parameters such as “BTC/USD”. It will return two values:

1. The price of the asset queried with 8 decimals
2. The timestamp of the last update

Please make sure to top up the gas wallet very soon, as we only put in some gas to deploy and start the oracle.  
Gas wallet: 0x9daf5d74fc795987902faf999dcb2242413f1141

This is the list of assets we deployed (Blockchain-Address)

- Bitcoin-0x0000000000000000000000000000000000000000
