TaxStrategies
TaxStrategies
FIXED_RATE_TAX
bytes4 FIXED_RATE_TAX
FIXED_RATE_TAX_WITH_REWARD
bytes4 FIXED_RATE_TAX_WITH_REWARD
TaxStrategyMismatch
error TaxStrategyMismatch(bytes4 provided, bytes4 required)
Thrown when the listing tax strategy ID does not match the required one.
Name | Type | Description |
---|---|---|
provided | bytes4 | Provided taxation strategy ID. |
required | bytes4 | Required taxation strategy ID. |
compatibleStrategy
modifier compatibleStrategy(bytes4 checkedStrategyId, bytes4 expectedStrategyId)
Modifier to check strategy compatibility.
getSupportedTaxStrategyIDs
function getSupportedTaxStrategyIDs() internal pure returns (bytes4[] supportedTaxStrategyIDs)
isValidTaxStrategy
function isValidTaxStrategy(bytes4 taxStrategyId) internal pure returns (bool)
decodeFixedRateTaxStrategyParams
function decodeFixedRateTaxStrategyParams(struct ITaxTermsRegistry.TaxTerms terms) internal pure returns (uint16 baseTaxRate)
decodeFixedRateWithRewardTaxStrategyParams
function decodeFixedRateWithRewardTaxStrategyParams(struct ITaxTermsRegistry.TaxTerms terms) internal pure returns (uint16 baseTaxRate, uint16 rewardTaxRate)