AbstractFeeModule¶
Inherits: IAbstractFeeModule
Author: Originally developed by DEFYCA Labs S.a.r.l., maintained by Nestor Exchange OÜ
MIT Licence. Originally Copyright © 2023 DEFYCA Labs S.a.r.l.
State Variables¶
ZERO_FEES_IN_BPS¶
Represents 0 bps in fees (the minima of fees or 0%)
MAX_FEES_IN_BPS¶
Represents 10000 bps in fees (the maxima of fees or 100%)
_feesInfo¶
Functions¶
getFeeInfo¶
getFeeInBps¶
getFeeRecipient¶
calculateFeeAmount¶
function calculateFeeAmount(uint256 tokensAmount_, uint256 feeInBps_) public pure override returns (uint256 feeAmount_);
_setTokenFee¶
_transferFees¶
function _transferFees(bytes32 feeKey_, IERC20 token_, address tokenSender_, uint256 tokensAmount_) internal returns (uint256);
_validateFeeInfo¶
Validates the FeeInfo. Throws AbstractFeeModuleInvalidFeeRecipient if zero address. Throws AbstractFeeModuleInvalidFee if out of range.