PWN Config
1. Summary
The PWNConfig.sol contract stores the core parameters of the protocol. The parameters are the following:
Fee size
Fee collector address
To prevent any attacks there is a hard cap of 10 % on the fee size.
The config contract is meant to be used behind a proxy contract, which enables the addition and removal of parameters as the protocol evolves. The proxy implementation used is the TransparentUpgradableProxy from Open Zeppelin.
2. Important links
3. Contract details
PWNConfig.sol is written in Solidity version 0.8.16
Features
Stores PWN Protocol parameters
Inherited contracts, implemented Interfaces and ERCs
Functions
Events
The PWN Config contract defines one event and no custom errors.
Last updated