Skip to main content
Git Source Inherits: AppAdministratorOrOwnerOnlyDiamondVersion, HandlerUtils, HandlerTokenMaxSupplyVolatility, HandlerTokenMaxTradingVolume, HandlerTokenMinTxSize, HandlerTokenMinHoldTime, HandlerTokenMaxDailyTrades

Functions

checkNonTaggedRules

This function uses the protocol’s ruleProcessorto perform the actual rule checks.
Parameters

_checkTokenMinTxSizeRule

Call to the Oracle Rules Facet for Oracle Rule processing tokenMaxTradingVolume Burn tokenMinTxSize Burn tokenMaxDailyTrades BURN tokenMaxTradingVolume Mint tokenMinTxSize Mint tokenMaxDailyTrades MINT tokenMaxTradingVolume P2P_TRANSFER tokenMinTxSize P2P_TRANSFER tokenMaxDailyTrades P2P_TRANSFER non custodial buy tokenMaxTradingVolume BUY tokenMaxTradingVolume uses single rule id for all actions so check if Buy has rule id set ELSE check if sell has ruleId set else if conditional used for tokenMaxTrading as there is only one ruleId used for this rule tokenMinTxSize SELL Side tokenMaxDailyTrades SELL Side custodial buy tokenMinTxSize BUY tokenMaxDailyTrades BUY non custodial sell tokenMaxTradingVolume SELL tokenMaxTradingVolume uses single rule id for all actions so check if Sell has rule id set ELSE check if sell has ruleId set else if conditional used for tokenMaxTrading as there is only one ruleId used for this rule tokenMinTxSize BUY Side tokenMaxDailyTrades BUY Side custodial sell tokenMaxTradingVolume SELL tokenMinTxSize SELL tokenMaxDailyTrades SELL Internal function to check the Token Min Transaction Size rule
Parameters

_checkTokenMaxTradingVolumeRule

Internal function to check the Token Max Trading Volume rule
Parameters

_checkTokenMaxSupplyVolatilityRule

Internal function to check the Token Max Supply Volatility rule
Parameters

_checkTokenMaxDailyTradesRule

rule requires ruleID and either to or from address be zero address (mint/burn) Internal function to check the TokenMaxDailyTrades rule
Parameters

_checkMinHoldTimeRules

This function uses the protocol’s ruleProcessor to perform the Min Hold Time Rule Check.
Parameters