โฉ๏ธIZNSCurvePricer
MaxPriceSet
Emitted when the maxPrice
is set in CurvePriceConfig
Parameters
MinPriceSet
Emitted when the minPrice
is set in CurvePriceConfig
Parameters
BaseLengthSet
Emitted when the baseLength
is set in CurvePriceConfig
Parameters
MaxLengthSet
Emitted when the maxLength
is set in CurvePriceConfig
Parameters
PrecisionMultiplierSet
Emitted when the precisionMultiplier
is set in CurvePriceConfig
Parameters
FeePercentageSet
Emitted when the feePercentage
is set in state
Parameters
PriceConfigSet
Emitted when the full CurvePriceConfig
is set in state
Parameters
initialize
getPrice
parentHash
param is here to allow pricer contracts to have different price configs for different subdomains skipValidityCheck
param is added to provide proper revert when the user is calling this to find out the price of a domain that is not valid. But in Registrar contracts we want to do this explicitly and before we get the price to have lower tx cost for reverted tx. So Registrars will pass this bool as "true" to not repeat the validity check. Note that if calling this function directly to find out the price, a user should always pass "false" as skipValidityCheck
param, otherwise, the price will be returned for an invalid label that is not possible to register.
getFeeForPrice
Returns the fee for a given price.
Fees are only supported for PaymentType.STAKE !
getPriceAndFee
Fees are only supported for PaymentType.STAKE ! This function will NOT be called if PaymentType != PaymentType.STAKE Instead getPrice()
will be called.