PirexFees.sol
General Overview
The PirexFees.sol
contract manages the distribution of fees generated by the protocol. It allows its owner, a Redacted multisig, to modify fee recipient addresses and define the percentages allocated to the treasury.
Technical Overview
Inherits: Ownable2Step
Author: redactedcartel.finance
State Variables
PERCENT_DENOMINATOR
MAX_TREASURY_FEE_PERCENT
treasuryPercent
treasury
contributors
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
_treasury | address | Redacted treasury |
_contributors | address | Pirex contributor multisig |
setFeeRecipient
Set a fee recipient address
Parameters
Name | Type | Description |
---|---|---|
f | DataTypes.FeeRecipient | FeeRecipient enum |
recipient | address | Fee recipient address |
setTreasuryPercent
Set treasury fee percent
Parameters
Name | Type | Description |
---|---|---|
_treasuryPercent | uint8 | Treasury fee percent |
distributeFees
Distribute fees
Parameters
Name | Type | Description |
---|---|---|
from | address | Fee source |
token | address | Fee token |
amount | uint256 | Fee token amount |