IZNSCurvePricer
MaxPriceSet
Emitted when the maxPrice
is set in CurvePriceConfig
Parameters
domainHash
bytes32
price
uint256
The new maxPrice value
MinPriceSet
Emitted when the minPrice
is set in CurvePriceConfig
Parameters
domainHash
bytes32
price
uint256
The new minPrice value
BaseLengthSet
Emitted when the baseLength
is set in CurvePriceConfig
Parameters
domainHash
bytes32
length
uint256
The new baseLength value
MaxLengthSet
Emitted when the maxLength
is set in CurvePriceConfig
Parameters
domainHash
bytes32
length
uint256
The new maxLength value
PrecisionMultiplierSet
Emitted when the precisionMultiplier
is set in CurvePriceConfig
Parameters
domainHash
bytes32
precision
uint256
The new precisionMultiplier value
FeePercentageSet
Emitted when the feePercentage
is set in state
Parameters
domainHash
bytes32
feePercentage
uint256
The new feePercentage value
PriceConfigSet
Emitted when the full CurvePriceConfig
is set in state
Parameters
domainHash
bytes32
maxPrice
uint256
The new maxPrice
value
minPrice
uint256
The new minPrice
value
maxLength
uint256
The new maxLength
value
baseLength
uint256
The new baseLength
value
precisionMultiplier
uint256
The new precisionMultiplier
value
feePercentage
uint256
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.