PTParameterRegistry
Function index21 functions
The PTParameterRegistry stores the per-market settings read by the market-state, discount-rate, and risk-parameter CRE workflows. It does not receive reports or execute recommendations; it supplies the shared configuration used before those reports are calculated.
| Property | Value |
|---|---|
| Access model | Two-step owner plus a separate updater |
The examples assume REGISTRY and MARKET are set for the deployment being queried.
Example outputs
Example outputs remain TODO until a production deployment is published and can be queried.
REGISTRY=<registry-address>
MARKET=<pt-market-address>Market parameter schema
getPtMarketParams and setPtMarketParams use the following tuple:
| Field | Type | Meaning |
|---|---|---|
enabled | bool | Whether workflows may process the market |
modelVersion | uint32 | Version attached to published model output |
emaSpan | uint32 | EMA span in observations |
emaFreshnessSeconds | uint64 | Maximum accepted age of stored EMA state |
thresholdBps | uint64 | Discount-rate deviation threshold in basis points |
kReferenceEndpoint | uint64 | Risk-model reference multiplier scaled by K_FACTOR_SCALE |
emodeCategoryIds | uint16[] | Aave eMode categories associated with the PT |
All market configuration writes require the updater. Ownership and updater administration require the owner or pending owner as documented below.
Constants
K_FACTOR_SCALE
PTParameterRegistry.K_FACTOR_SCALE() → uint640xcc34871bReturns fixed-point scale, currently 10_000.
>>> PTParameterRegistry.K_FACTOR_SCALE()
TODOMAX_BPS
PTParameterRegistry.MAX_BPS() → uint640xfd967f47Returns maximum basis-point value, currently 10_000.
>>> PTParameterRegistry.MAX_BPS()
TODOMarket parameters
getEmodeCategoryIds
PTParameterRegistry.getEmodeCategoryIds(address) → uint16[]0xa53f7226Returns the eMode categories configured for a PT market.
| Input | Type | Description |
|---|---|---|
market | address | PT market. |
>>> PTParameterRegistry.getEmodeCategoryIds(market)
TODOgetPtMarketParams
PTParameterRegistry.getPtMarketParams(address) → PtMarketParams0x19f2e8bdReturns the complete registry configuration for a PT market.
| Input | Type | Description |
|---|---|---|
market | address | PT market. |
>>> PTParameterRegistry.getPtMarketParams(market)
TODOmarketExists
PTParameterRegistry.marketExists(address) → bool0x712ca018Returns whether a market has a registry entry.
| Input | Type | Description |
|---|---|---|
market | address | PT market. |
>>> PTParameterRegistry.marketExists(market)
TODOsetPtMarketParams
PTParameterRegistry.setPtMarketParams(address,(bool,uint32,uint32,uint64,uint64,uint64,uint16[])) → void0xbe8bebefCreates or replaces the complete PT market configuration.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
params | (bool,uint32,uint32,uint64,uint64,uint64,uint16[]) | Complete parameter tuple. |
>>> PTParameterRegistry.setPtMarketParams(market, params)
TODOsetEnabled
PTParameterRegistry.setEnabled(address,bool) → void0x17fe72bbSets enabled.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
enabled | bool | Enabled. |
>>> PTParameterRegistry.setEnabled(market, enabled)
TODOsetModelVersion
PTParameterRegistry.setModelVersion(address,uint32) → void0xab11c0e3Sets model version.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
modelVersion | uint32 | Model version. |
>>> PTParameterRegistry.setModelVersion(market, modelVersion)
TODOsetEmaSpan
PTParameterRegistry.setEmaSpan(address,uint32) → void0xc3897af1Sets the EMA span.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
emaSpan | uint32 | Non-zero EMA span. |
>>> PTParameterRegistry.setEmaSpan(market, emaSpan)
TODOsetEmaFreshnessSeconds
PTParameterRegistry.setEmaFreshnessSeconds(address,uint64) → void0x9b5411e9Sets the maximum EMA age in seconds.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
emaFreshnessSeconds | uint64 | Non-zero freshness period. |
>>> PTParameterRegistry.setEmaFreshnessSeconds(market, emaFreshnessSeconds)
TODOsetDeviationThresholdBps
PTParameterRegistry.setDeviationThresholdBps(address,uint64) → void0x27ff1f07Sets the discount-rate deviation threshold in basis points.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
thresholdBps | uint64 | Threshold no greater than MAX_BPS. |
>>> PTParameterRegistry.setDeviationThresholdBps(market, thresholdBps)
TODOsetKReferenceEndpoint
PTParameterRegistry.setKReferenceEndpoint(address,uint64) → void0x9808c29aSets the scaled reference-endpoint multiplier.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
kReferenceEndpoint | uint64 | Non-zero scaled multiplier. |
>>> PTParameterRegistry.setKReferenceEndpoint(market, kReferenceEndpoint)
TODOsetEmodeCategoryIds
PTParameterRegistry.setEmodeCategoryIds(address,uint16[]) → void0xf6b54bcdSets the eligible eMode category IDs.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
ids | uint16[] | Non-empty category array. |
>>> PTParameterRegistry.setEmodeCategoryIds(market, ids)
TODOdeleteMarket
PTParameterRegistry.deleteMarket(address) → void0xd960e94aDeletes market.
| Input | Type | Description |
|---|---|---|
market | address | Market. |
>>> PTParameterRegistry.deleteMarket(market)
TODOdeleteMarket removes the complete record and causes getPtMarketParams and getEmodeCategoryIds to revert for that market.
Updater and ownership
owner
PTParameterRegistry.owner() → address0x8da5cb5bReturns the current owner.
>>> PTParameterRegistry.owner()
TODOpendingOwner
PTParameterRegistry.pendingOwner() → address0xe30c3978Returns the current pending owner.
>>> PTParameterRegistry.pendingOwner()
TODOupdater
PTParameterRegistry.updater() → address0xdf034cd0Returns the current updater.
>>> PTParameterRegistry.updater()
TODOsetUpdater
PTParameterRegistry.setUpdater(address) → void0x9d54f419Sets updater.
| Input | Type | Description |
|---|---|---|
updater | address | Non-zero updater address. |
>>> PTParameterRegistry.setUpdater(updater)
TODOtransferOwnership
PTParameterRegistry.transferOwnership(address) → void0xf2fde38bTransfers ownership.
| Input | Type | Description |
|---|---|---|
owner | address | New owner. |
>>> PTParameterRegistry.transferOwnership(owner)
TODOacceptOwnership
PTParameterRegistry.acceptOwnership() → void0x79ba5097Accepts ownership.
>>> PTParameterRegistry.acceptOwnership()
TODOrenounceOwnership
PTParameterRegistry.renounceOwnership() → void0x715018a6Renounces ownership.
>>> PTParameterRegistry.renounceOwnership()
TODO