Deterministic Oracles Deployment
Overview
Deployment
/**
* @dev Deploys a new `SpectraOracle` for a given PT.
* @param _pt The address of the Principal Token (PT).
* @param _discountModel The discount model address.
* @return oracle The address of the newly deployed Oracle.
*/
function createOracle(
address _pt,
address _discountModel,
uint256 initialImpliedAPY,
address initOwner
) external returns (address oracle)Example
Last updated