# CDR #083: Stable | USDLR Stablecoin Price Feed

**URL:** <https://forum.diadata.org/t/cdr-083-stable-usdlr-stablecoin-price-feed/930>\
**Category:** CDRs - Custom Delivery Requests\
**Tags:** stablecoin, arbitrum, defi, token-price-feed\
**Created:** [January 17, 2024, 4:50pm UTC](https://forum.diadata.org/t/cdr-083-stable-usdlr-stablecoin-price-feed/930 "2024-01-17T16:50:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stable-team](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.diadata.org/stable-team/32/467_2.png) [@stable-team](https://forum.diadata.org/u/stable-team)\
**Post date:** [January 17, 2024, 4:50pm UTC](https://forum.diadata.org/t/cdr-083-stable-usdlr-stablecoin-price-feed/930/1 "2024-01-17T16:50:27Z")

</div>

17 January, 2024

# Introduction

USDLR is a fiat-backed stablecoin issued by Stable. Stable has been in touch with the DIA team to create a collateral ratio driven asset price feed for USDLR that can be used by protocols like [Sperax](https://sperax.io/) on the Arbitrum network.

# REQUEST INFORMATION

Currency: USDLR

Website: [https://withstable.com](https://withstable.com)

Integration Overview: Collateral ratio driven asset price feed for USDLR

## Assets:

Following assets will be included in the Oracle:

| Asset Ticker | Collateral Asset | Methodology |
| --- | --- | --- |
| USDLR | Cash and T-bill reserves | USDLR collateral ratio = (BaseValueEndBalance of cash and T-bill reserves (NAV API) + [USDC price](https://www.diadata.org/app/price/asset/Ethereum/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/) \* BaseValueEndBalance of USDC (NAV API)) / [USDLR\_totalSupply](https://etherscan.io/token/0x68592c5c98c4f4a8a4bc6da2121e65da3d1c0917#readProxyContract#F24) |

## USDLR 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 24h heartbeat for updates trigger will be applied for USDC
- 120sec time threshold will be applied for NAV API calls
- Each NAV API call will request for balance update on yesterday’s (T-1) date
- As soon as new balance becomes available on NAV, it will be pushed to the oracle

# DELIVERY INFORMATION

| Delivery Method | Oracle on Arbitrum network |
| --- | --- |
| Is testnet deploy required? | Yes |
| Delivery Estimate | 14 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:** [February 19, 2024, 9:45pm UTC](https://forum.diadata.org/t/cdr-083-stable-usdlr-stablecoin-price-feed/930/2 "2024-02-19T21:45:32Z")

</div>

Thank you for requesting a data feed via DIA CDR. We confirm the CDR specifications were requested correctly. Find the oracle information below:

### Oracle

The oracle is deployed and can be accessed [here](https://arbiscan.io/address/0xE1523710d9F7493078161b2516737E39412F7bF4).

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

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

You can see Solidity and Vyper code integration examples [here](https://docs.diadata.org/introduction/intro-to-dia-oracles/access-the-oracle#oracle-integration-example) or use a dedicated DIA oracles integration library described in detail [here](https://docs.diadata.org/introduction/intro-to-dia-oracles/access-the-oracle#accessing-dias-oracles-with-a-dedicated-solidity-library).

### Funding

Each deployed oracle contract has a separate gas wallet which is the only entity allowed to update oracle values based on selected parameters. To find out more information on how it works, visit the following [link](https://docs.diadata.org/introduction/intro-to-dia-oracles/oracle-funding).

Please make sure to top up the gas wallet, as we only put in some gas to deploy and start the oracle.

Gas Wallet address: [0xda277f9f59baf6fb649952b20e9737ac43aebce5](https://arbiscan.io/address/0xda277f9f59baf6fb649952b20e9737ac43aebce5)

### Assets

The oracle contains two queriable key/value pairs:

1. USDLR/USD - Cash and T-bill reserves according to the formula posted above
2. TS-USDLR\_USD - The timestamp of the last API update in the NAV API.
