Configurator
The Configurator.sol contract is where the DAO members set protocol parameters on.
View Methods
treasury
function treasury() external view returns (address vault)
Returns treasury address.
feeToken
function feeToken() external view returns (IERC20 token)
Returns the token to be paid fees.
getFeeAmount
function getFeeAmount(Action action, IMetadata metadata, uint256 metadataId, uint256 amount) external view returns (uint256 price)
Returns fee price that is computed by action, metadata, metadataId, and amount.
copyrightRenderer
function copyrightRenderer() external view returns (INFTRenderer renderer)
Returns the address of copyright renderer. The copyright renderer is used to render the image of copyright token.
paused
function paused() external view returns (bool)
Returns true if the contract is paused, and false otherwise.
Write Methods
setTreasury
function setTreasury(address vault) external
Set the address of the treasury. Only admin can set treasury.
setFeeToken
function setFeeToken(IERC20 token) external
Set the feeToken address. Only admin can set feeToken.
setFeeFormula
function setFeeFormula(Action action, IFeeFormula feeFormula) external
Set the feeFormula of the action. Only admin can set fee formula.
setCopyrightRenderer
function setCopyrightRenderer(INFTRenderer renderer) external
Set the copyright renderer. Only admin can set copyright renderer.
pause
function pause() external
Pause the execution of copyright claim and artwork copy. Only admin can pause the protocol.
unpause
function unpause() external
Unpause the execution of copyright claim and artwork copy. Only admin can unpause the protocol.
Last updated