Libraries
FeeTiersUtils
_GNSFeeTiers facet internal library
This is a library to apply fee tiers to trading fees based on a trailing point system._
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Check IFeeTiersUtils interface for documentation
Returns storage slot to use when fetching storage relevant to library
Returns storage pointer for storage struct in diamond contract, at defined slot
Checks validity of a single fee tier update (feeMultiplier: descending, pointsThreshold: ascending, no gap)
Get current day (index of mapping traderDailyInfo)
Claims unclaimed points for a trader and adds them to the daily points for the current day. In the event that it’s the first points update for the trader, backdates points to yesterday so the tier discount becomes immediate.
