FeeData.feeCollector
to users.
Raffl
s deployments.
Enabled custom fees overrides the global creation fee.
Name | Type | Description |
---|---|---|
user | address |
Name | Type | Description |
---|---|---|
user | address | Address of the user. |
msg.sender
has to be the fee collector of the factory.
Name | Type | Description |
---|---|---|
newFeeValue | uint64 | Value for creationFee that will be charged on Raffl ’s deployments. |
newFeePercentage
must be within minPoolFee and maxPoolFee.msg.sender
has to be the fee collector of the factory.*Name | Type | Description |
---|---|---|
newFeePercentage | uint64 | Value for poolFeePercentage that will be charged on Raffl ’s pools. |
CustomCreationFeeChange
event upon successful fee update.
Requirements:
msg.sender
has to be the fee collector of the factory.*Name | Type | Description |
---|---|---|
user | address | Address of the user . |
newFeeValue | uint64 | The new creation fee amount to be set, in wei, to replace the current fee after the specified delay. |
newFeePercentage
must be within the predefined 0-MAX_POOL_FEE
bounds.
If the custom fee was previously disabled or set to a different value, this operation schedules the new fee to
take effect after the delay, enabling it if necessary.
Emits a CustomPoolFeeChange
event upon successful execution.
Requirements:
msg.sender
has to be the fee collector of the factory.newFeePercentage
must be within the range limited by MAX_POOL_FEE
.*Name | Type | Description |
---|---|---|
user | address | Address of the user . |
newFeePercentage | uint64 | The new pool fee percentage to be applied, expressed in ether terms (18 decimal places) where 1 ether represents 100%. |
msg.sender
has to be the fee collector of the factory.
Name | Type | Description |
---|---|---|
user | address | Address of the user . |
enable | bool | True to enable the fee, false to disable it. |
msg.sender
has to be the fee collector of the factory.
Name | Type | Description |
---|---|---|
user | address | Address of the user . |
enable | bool | True to enable the fee, false to disable it. |
Name | Type | Description |
---|---|---|
globalValue | uint64 | The default global fee value used when no custom fees are applicable. |
upcomingGlobalFee | UpcomingFeeData | A struct containing data about an upcoming fee change, including the timestamp for the change and the new value to be applied. |
customFee | CustomFeeData | A struct containing data about the custom fee, including its enablement status, timestamps for changes, and its values (current and new). |
Name | Type | Description |
---|---|---|
currentValue | uint64 | The calculated current fee value, taking into account the global value, custom fee, and upcoming fee data based on the current timestamp. |
msg.value
to the fee collector address. Reverts if the transferred value is less than the
required creation fee or if the transfer fails.