Control Facet
Changes:
Make forceCloseGapRatio per symbol
forceCloseGapRatio per symbolDifferent symbols with different volatility require different gap ratios for forceClose.
Updated Methods:
// From
function setForceCloseGapRatio(uint256 forceCloseGapRatio) external onlyRole(LibAccessibility.SETTER_ROLE)
// To
function setForceCloseGapRatio(uint256 symbolId, uint256 forceCloseGapRatio) external onlyRole(LibAccessibility.SETTER_ROLE)
// From
function forceCloseGapRatio() external view returns (uint256)
// To
function forceCloseGapRatio(uint256 symbolId) external view returns (uint256) Added Affiliates into the System
All affiliates, such as intentX, Based, Befi, Core, etc., are now registered in the core contracts. Each affiliate can have a separate feeCollector. The new method sendQuoteWithAffiliate is introduced, and the old sendQuote method is deprecated and will likely be removed in the next version.
The
affiliatefield is added to the quote struct.AFFILIATE_MANAGER_ROLEis introduced, granting control over adding new affiliates and changing their feeCollectors.
Added Methods:
Updated Methods:
The old feeCollector storage is now renamed to defaultFeeCollectors and will be used as a fallback when a collector hasn’t been set for an affiliate. Corresponding setters and getters are also added for that.
Added setDeallocateDebounceTime()
setDeallocateDebounceTime()Explanation: This function allows setting the deallocation debounce time. It emits an event SetDeallocateDebounceTime indicating the old and new debounce times.
Last updated
