Deploy Deterministic Oracles

Curators can deploy a Napier Oracle from their markets via the Curator Dashboard.

1

Step 1: Preparation

Before Configuring the Oracle

  • Access the Curator Dashboard.

  • If your account is not verified, complete verification under Verify Your Account.

  • If you haven’t created a market yet, follow the steps in Create Market.

  • Once you finish creating a market, it will appear in your Curator Dashboard.

Clarify the Prerequisites

  • If you haven’t learned how Napier’s PT/YT and AMM work, start with Markets - Napier AMM.

  • If you haven’t learned how Napier’s oracles work, start with Napier Oracles.

Set a Discount Factor

You will set the discount factor (rateBps) that determines the annualized linear slope until maturity.

  • rateBps = annual slope (basis points = bps)

  • 1 bps = 0.01%

  • Therefore, 10,000 bps = 100% per year

Example:

  • 100 bps → 1% annual discount rate

  • 500 bps → 5% annual discount rate

  • 1000 bps → 10% annual discount rate

2

Step 2: Scoping

In the Curator App, you’ll select the following parameters.(Github)

Chose a Market

  • Select the market from which you want to source the oracle.

Chose an Oracle Type

When deploying the oracle, specify the type:

  • TWAP or Linear Discount

  • Quote unit: Underlying asset or Asset (i.e., price of PT in the underlying unit vs. in the asset unit)

3

Step 3: Price Retrieval

Deploy the Oracle

Deploy and initialize the oracle here. (Github)

function clone(address implementation, bytes calldata args, bytes calldata initializationData)

Call the Oracle

Price can be obtained simply by calling the latestRoundData() function. (Github)

Last updated

Was this helpful?