Skip to main content

IKpiLinkedRate

Asset Tokenization Studio Team

IKpiLinkedRate

Interface for the KPI-linked rate facet that ties coupon rates to external performance indicators (KPIs) via configurable interest rate and impact data parameters.

Methods​

getKpiLinkedRateImpactData​

function getKpiLinkedRateImpactData() external view returns (struct IKpiLinkedRate.ImpactData impactData_)

Returns the current KPI-linked impact data configuration.

Returns​

NameTypeDescription
impactData_IKpiLinkedRate.ImpactDataThe stored ImpactData struct.

getKpiLinkedRateInterestRate​

function getKpiLinkedRateInterestRate() external view returns (struct IKpiLinkedRate.InterestRate interestRate_)

Returns the current KPI-linked interest rate configuration.

Returns​

NameTypeDescription
interestRate_IKpiLinkedRate.InterestRateThe stored InterestRate struct.

initializeKpiLinkedRate​

function initializeKpiLinkedRate(IKpiLinkedRate.InterestRate _interestRate, IKpiLinkedRate.ImpactData _impactData) external nonpayable

Parameters​

NameTypeDescription
_interestRateIKpiLinkedRate.InterestRateundefined
_impactDataIKpiLinkedRate.ImpactDataundefined

setKpiLinkedRateImpactData​

function setKpiLinkedRateImpactData(IKpiLinkedRate.ImpactData _newImpactData) external nonpayable

Parameters​

NameTypeDescription
_newImpactDataIKpiLinkedRate.ImpactDataundefined

setKpiLinkedRateInterestRate​

function setKpiLinkedRateInterestRate(IKpiLinkedRate.InterestRate _newInterestRate) external nonpayable

Parameters​

NameTypeDescription
_newInterestRateIKpiLinkedRate.InterestRateundefined

Events​

ImpactDataUpdated​

event ImpactDataUpdated(address indexed operator, IKpiLinkedRate.ImpactData newImpactData)

Emitted when the KPI-linked impact data configuration is updated.

Parameters​

NameTypeDescription
operator indexedaddressAddress that performed the update.
newImpactDataIKpiLinkedRate.ImpactDataThe new impact data parameters that have been applied.

InterestRateUpdated​

event InterestRateUpdated(address indexed operator, IKpiLinkedRate.InterestRate newInterestRate)

Emitted when the KPI-linked interest rate configuration is updated.

Parameters​

NameTypeDescription
operator indexedaddressAddress that performed the update.
newInterestRateIKpiLinkedRate.InterestRateThe new interest rate parameters that have been applied.

KpiLinkedRateInitialized​

event KpiLinkedRateInitialized(IKpiLinkedRate.InterestRate interestRate, IKpiLinkedRate.ImpactData impactData)

Emitted once when the KpiLinkedRate capability is initialised on a token.

Fires exclusively from initializeKpiLinkedRate after the storage write succeeds.

Parameters​

NameTypeDescription
interestRateIKpiLinkedRate.InterestRateThe initial interest rate configuration written to storage.
impactDataIKpiLinkedRate.ImpactDataThe initial impact data configuration written to storage.

Errors​

WrongImpactDataValues​

error WrongImpactDataValues(IKpiLinkedRate.ImpactData impactData)

Raised when KPI-linked rate impact data values are invalid

Parameters​

NameTypeDescription
impactDataIKpiLinkedRate.ImpactDataThe invalid impact data values

WrongInterestRateValues​

error WrongInterestRateValues(IKpiLinkedRate.InterestRate interestRate)

Raised when KPI-linked rate interest rate values are invalid

Parameters​

NameTypeDescription
interestRateIKpiLinkedRate.InterestRateThe invalid interest rate values