# CDR #46: JonesDAO: Price Feedd

**URL:** https://forum.diadata.org/t/cdr-46-jonesdao-price-feedd/672
**Category:** CDRs - Custom Delivery Requests
**Tags:** arbitrum, defi, token-price-feed
**Created:** [April 27, 2023, 6:50pm UTC](https://forum.diadata.org/t/cdr-46-jonesdao-price-feedd/672 "2023-04-27T18:50:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nach211](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/nach211/32/342_2.png) [@nach211](https://forum.diadata.org/u/nach211)
#### Post date: [April 27, 2023, 6:50pm UTC](https://forum.diadata.org/t/cdr-46-jonesdao-price-feedd/672/1 "2023-04-27T18:50:16Z")

</div>

27 April, 2023

# REQUEST INFORMATION

Protocol: Jones DAO

Integration Overview: Collateral ratio driven asset price feed for jUSDC and jGLP

## Assets:

Following assets will be included in the Oracle:

| Asset Ticker | Collateral Asset | Methodology |
| --- | --- | --- |
| [jUSDC](https://arbiscan.io/token/0xe66998533a1992ece9ea99cdf47686f4fc8458e0) | USDC | jUSDC price = [jUSDC\_redemptionRate](https://arbiscan.io/address/0xdd80ac29f4af69fbcaed52049480c7906b2f50da#readContract#F35) \* [USDC\_price](https://app.diadata.org/price/asset/Ethereum/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/?asset=USDC) |

collateral value jUSDC = [totalAssets](https://arbiscan.io/address/0xa485a0bc44988B95245D5F20497CCaFF58a73E99#readContract#F29) \* [USDC\_price](https://app.diadata.org/price/asset/Ethereum/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/?asset=USDC)|  
|[jGLP](https://arbiscan.io/token/0x7241bc8035b65865156ddb5edef3eb32874a3af6)|GLP|jGLP price = [jGLP\_redemptionRate](https://arbiscan.io/address/0xdd80ac29f4af69fbcaed52049480c7906b2f50da#readContract#F17) \* [GLP\_price](https://arbiscan.io/address/0x3963FfC9dff443c2A94f21b129D429891E32ec18#readContract#F14)

collateral value jGLP = [getUnderlyingGlp](https://arbiscan.io/address/0x15df56a82c194FeFEC9337C37A41964B69b584d5#readContract#F20) \* [GLP\_price](https://arbiscan.io/address/0x3963FfC9dff443c2A94f21b129D429891E32ec18#readContract#F14)|

## USDC price methodology:

- Moving Average Price with Interquartile Range (MAIR) will be used to calculate the price for the USDC. Learn more about it [here](https://docs.diadata.org/documentation/methodology/exchangeprices/mair-moving-average-with-interquartile-range-filter)
- 0.5% deviation threshold for updates trigger will be applied for USDC
- 120sec time window for trades aggregation will be applied for USDC

# DELIVERY INFORMATION

| Delivery Method | Oracle on Arbitrum network |
| --- | --- |
| Is testnet deploy required? | No |
| Delivery Estimate | 10 days |

---

<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 8, 2023, 3:37pm UTC](https://forum.diadata.org/t/cdr-46-jonesdao-price-feedd/672/2 "2023-05-08T15:37:50Z")

</div>

Hey everyone, we deployed the oracle and the adapter. Please use the opportunity to test the adapter with its four main functions

getJusdcPrice()  
getJusdcCollateralValue()  
getJglpPrice()  
getJglpCollateralValue()

in this contract:

> **[JonesDaoAdapter | Address 0xc737fbe8d69315ecb70cc475471eea8060adc7a9 | Arbiscan](https://arbiscan.io/address/0xc737fbe8d69315ecb70cc475471eea8060adc7a9)**
>
> The Contract Address 0xc737fbe8d69315ecb70cc475471eea8060adc7a9 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...

This will result in the requested values from your CDR.

For the USDC feed, 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 0x49b188a6115e9bcf29700f8a255b01f2596f5715 | Arbiscan](https://arbiscan.io/address/0x49b188a6115e9bcf29700f8a255b01f2596f5715)**
>
> The Contract Address 0x49b188a6115e9bcf29700f8a255b01f2596f5715 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 “USDC/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: 0xddd5Ed6293B4667d13d58940F54c89d4c69609DC

Also make sure it always has sufficient funding.
