FeeManager.sol
View Functions
collectedFees
Fetch the total amount of collected fees yet to be distributed to the reserve.
Return Values
uint256
The total amount of collected fees
calculateFee
Fetch the calculated fee to be collected from a given member for a given amount of credits.
Call Params
member
address
address of member transferring credits
amount
uint256
the amount of credits being transferred
Return Values
uint256
The amount of reserve currency to collect from a given member for transferring the given amount of credits.
shouldChargeTx
Fetch whether the given transaction data should be charged a fee.
Call Params
member
address
address of member sending credits
amount
address
address of member receiving credits
Return Values
uint256
Whether the given transaction data should be charged a fee
Mutative Functions
distributeFees
Distributes total collected fees to network's reserve pool.
collectFee
Calculates and transfers a fee for a given credit transaction amount.
pauseFees
Enables addresses with operator level access to pause fee collection.
unpauseFees
Enables addresses with operator level access to unpause fee collection.
Last updated