Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Lens Fee Module
copy icon
lens-protocol
• version 1.0.0
Abstract
Fees
Audited

Lens Fee Module

Audited

This is an abstract contract to be inherited from by modules that require basic fee functionality. It contains getters for module globals parameters as well as a validation function to check expected data.

*Visit desktop site to download or deploy

Version

1.0.0

Last Publish

11/6/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
_currencyWhitelisted(address) :
This function checks if a given address is whitelisted as a currency. It does this by calling the isCurrencyWhitelisted() function from the IModuleGlobals contract, which is passed in as the MODULE_GLOBALS parameter. The function returns a boolean value indicating whether or not the address is whitelisted. (autogenerated documentation)
_treasuryData() :
This function is an internal view function that returns the address and uint16 value of the treasury data stored in the IModuleGlobals contract. It works by retrieving the treasury data from the IModuleGlobals contract and returning it as a tuple of address and uint16. (autogenerated documentation)
_validateDataIsExpected(address,uint256) :
This function is used to validate that the data passed into a function is the expected data. It does this by decoding the calldata using the ABI and comparing the decoded values to the expected currency and amount. If the values do not match, the function will revert with an error. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i lens-fee-module-base
copy icon

Last Publish

11/6/2022

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.