RuleStoragePositionLib
Author: @ShaneDuncan602 @oscarsernarosero @TJ-Everett
Library for Rules
This contract serves as the storage library for the rules Diamond. It basically serves up the storage position for all rules
State Variables
DIAMOND_CUT_STORAGE_POSITION
ACCOUNT_MAX_TRADE_SIZE
every rule has its own storage
ACCOUNT_MAX_BUY_SELL_VOLUME_POSITION
BUY_FEE_BY_TOKEN_MAX_TRADING_VOLUME_POSITION
TOKEN_MAX_PRICE_VOLATILITY_POSITION
TOKEN_MAX_TRADING_VOLUME_POSITION
TOKEN_MIN_TX_SIZE_POSITION
TOKEN_MIN_HOLD_TIME_POSITION
ACCOUNT_MIN_MAX_TOKEN_BALANCE_POSITION
TOKEN_MAX_SUPPLY_VOLATILITY_POSITION
ACC_APPROVE_DENY_ORACLE_POSITION
ACC_MAX_VALUE_BY_ACCESS_LEVEL_POSITION
ACC_MAX_TX_VALUE_BY_RISK_SCORE_POSITION
ACCOUNT_MAX_VALUE_BY_RISK_SCORE_POSITION
TOKEN_MAX_DAILY_TRADES_POSITION
AMM_FEE_RULE_POSITION
ACC_MAX_VALUE_OUT_ACCESS_LEVEL_POSITION
ENABLED_ACTIONS
Functions
accountMaxTradeSizeStorage
Function to store Trade rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMaxTradeSizeS | Data Storage of Trade Rule |
accountMaxBuySellVolumeStorage
Function to store Account Max Buy Volume rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMaxBuySellVolumeS | Data Storage of Account Max Buy Volume Rule |
purchaseFeeByVolumeStorage
Function to store Purchase Fee by Volume rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.PurchaseFeeByVolRuleS | Data Storage of Purchase Fee by Volume Rule |
tokenMaxPriceVolatilityStorage
Function to store Price Volitility rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMaxPriceVolatilityS | Data Storage of Price Volitility Rule |
tokenMaxTradingVolumeStorage
Function to store Max Trading Volume rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMaxTradingVolumeS | Data Storage of Max Trading Volume Rule |
tokenMinTxSizePosition
Function to store Token Min Transaction Size rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMinTxSizeS | Data Storage of Token Min Transaction Size Rule |
accountMinMaxTokenBalanceStorage
Function to store Account Min Max Token Balance rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMinMaxTokenBalanceS | Data Storage of Account Min Max Token Balance Rule |
tokenMaxSupplyVolatilityStorage
Function to store Max Supply Volitility rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMaxSupplyVolatilityS | Data Storage of Max Supply Volitility Rule |
accountApproveDenyOracleStorage
Function to store Oracle rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountApproveDenyOracleS | Data Storage of Oracle Rule |
accountMaxValueByAccessLevelStorage
Function to store Account Max Value Access Level rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMaxValueByAccessLevelS | Data Storage of Account Max Value Access Level Rule |
accountMaxTxValueByRiskScoreStorage
Function to store Account Max Tx Value by Risk rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMaxTxValueByRiskScoreS | Data Storage of Account Max Tx Value by Risk Rule |
tokenMinHoldTimeStorage
Function to store Token Min Hold Time rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMinHoldTimeS | Data Storage of Token Min Hold Time Rule |
accountMaxValueByRiskScoreStorage
Function to store Account Max Value By Risk Score rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMaxValueByRiskScoreS | Data Storage of Account Max Value By Risk Score Rule |
TokenMaxDailyTradesStorage
Function to store Token Max Daily Trades rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.TokenMaxDailyTradesS | Data Storage of Token Max Daily Trades rule |
ammFeeRuleStorage
Function to store AMM Fee rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AMMFeeRuleS | Data Storage of AMM Fee rule |
accountMaxValueOutByAccessLevelStorage
Function to store Account Max Value Out By Access Level rules
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.AccountMaxValueOutByAccessLevelS | Data Storage of Account Max Value Out By Access Level rule |
enabledActions
Function to access storage for EnabledActions
Returns
Name | Type | Description |
---|---|---|
ds | IRuleStorage.EnabledActions | Data Storage for RuleApplicationValidationFacet - EnabledActions |