fix contract
This commit is contained in:
@@ -238,6 +238,17 @@ contract YTAssetFactory is Initializable, UUPSUpgradeable, OwnableUpgradeable {
|
||||
YTAssetVault(_vault).setManager(_manager);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notice 设置vault的价格过期阈值
|
||||
* @param _vault vault地址
|
||||
* @param _threshold 阈值(秒)
|
||||
*/
|
||||
function setPriceStalenessThreshold(address _vault, uint256 _threshold) external onlyOwner {
|
||||
if (!isVault[_vault]) revert VaultNotExists();
|
||||
|
||||
YTAssetVault(_vault).setPriceStalenessThreshold(_threshold);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notice 设置vault的下一个赎回时间
|
||||
* @param _vault vault地址
|
||||
|
||||
Reference in New Issue
Block a user