# CDR #049: Redacted $BTRFLY | Price Feed Request

**URL:** <https://forum.diadata.org/t/cdr-049-redacted-btrfly-price-feed-request/685>\
**Category:** CDRs - Custom Delivery Requests\
**Tags:** ethereum, yield-protocol, defi, token-price-feed\
**Created:** [May 8, 2023, 6:00pm UTC](https://forum.diadata.org/t/cdr-049-redacted-btrfly-price-feed-request/685 "2023-05-08T18:00:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Figgy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/figgy/32/346_2.png) [@Figgy](https://forum.diadata.org/u/Figgy)\
**Post date:** [May 8, 2023, 6:00pm UTC](https://forum.diadata.org/t/cdr-049-redacted-btrfly-price-feed-request/685/1 "2023-05-08T18:00:42Z")

</div>

# INTRODUCTION

**Protocol:** Redacted

**Integration** : Redacted Cartel is a liquidity management protocol that focuses on acquiring governance tokens (and voting power) across many DeFi protocols. BTRFLY. The Redacted Protocol is the hub for BTRFLY, which allows users to participate in governance and earn revenue from the Redacted treasury and Redacted’s products.

**Website** :

[https://redacted.finance/](https://redacted.finance/)

## Assets

Following assets will be included in the Oracle:

| Asset Ticker | Asset Blockchain | Asset Address | Asset Markets Overview | Trades Aggregation Window Size | Comments |
| --- | --- | --- | --- | --- | --- |
| BTRFLY | Ethereum | [0xc55126051b22ebb829d00368f4b12bde432de5da](https://etherscan.io/address/0xc55126051b22ebb829d00368f4b12bde432de5da) | [0x6e314039f4c56000f4ebb3a7854a84cc6225fb92](https://etherscan.io/address/0x6e314039f4c56000f4ebb3a7854a84cc6225fb92) | 120 sec | BTRFLY/ USD based on Curve WETH/BTRFLY pool (see Asset Market Overview) |

## Methodology

- Moving Average Price with Interquartile Range (MAIR) will be used to calculate the price for the assets. Learn more about it [here](https://docs.diadata.org/documentation/methodology/exchangeprices/mair-moving-average-with-interquartile-range-filter)
- 2% deviation threshold for updates trigger will be applied for each asset
- 120 sec updates frequency check will be applied
- The feed will be updated every 24h period if there are no deviation based updates

# DELIVERY INFORMATION

| Delivery Method | Oracle on Ethereum network |
| --- | --- |
| Is testnet deploy required? | No |
| Delivery Estimate | 7 days |

# NOTES

Additional relevant information:

- Additional markets/ pools shall be added when TVL approx. \>2mn.

- Additional pools may benefit from a longer trade aggregation window size. Additions/ changes in methodology and parameters will be noted in the CDR.

---

<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:** [May 11, 2023, 12:34pm UTC](https://forum.diadata.org/t/cdr-049-redacted-btrfly-price-feed-request/685/2 "2023-05-11T12:34:33Z")

</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.

> **[DIAOracleV2 | Address 0x65f8c12b20b482d437d88aa1b75b0ef793024ca8 | Etherscan](https://etherscan.io/address/0x65f8c12b20b482d437d88aa1b75b0ef793024ca8)**
>
> The Contract Address 0x65f8c12b20b482d437d88aa1b75b0ef793024ca8 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 “BTRFLY/USD”. It will return two values:

- The price of the asset queried with 8 decimals
- The timestamp of the last update

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

Also make sure it always has sufficient funding.
