ERC20RewardDistributionHelper
ERC20RewardDistributionHelper
RentalExternalERC20RewardFees
struct RentalExternalERC20RewardFees {
address token;
uint256 totalReward;
uint256 listerRewardFee;
uint256 renterRewardFee;
uint256 universeRewardFee;
uint256 protocolRewardFee;
}
_HUNDRED_PERCENT
uint16 _HUNDRED_PERCENT
A constant that represents one hundred percent for calculation. This defines a calculation precision for percentage values as two decimals. For example: 1 is 0.01%, 100 is 1%, 10_000 is 100%.
getRentalExternalERC20RewardFees
function getRentalExternalERC20RewardFees(struct Rentings.Agreement agreement, address token, uint256 rewardAmount) internal view returns (struct ERC20RewardDistributionHelper.RentalExternalERC20RewardFees rentalExternalERC20RewardFees)
retrieveRewardPercentages
function retrieveRewardPercentages(struct Rentings.Agreement agreement) internal view returns (uint16 listerRewardPercentage, uint16 universeRewardTaxPercentage, uint16 protocolRewardTaxPercentage)
calculateExternalRewardBasedFees
function calculateExternalRewardBasedFees(address token, uint256 rewardAmount, uint16 listerRewardPercentage, uint16 universeRewardTaxPercentage, uint16 protocolRewardTaxPercentage) internal pure returns (struct ERC20RewardDistributionHelper.RentalExternalERC20RewardFees externalRewardFees)
calculateExternalRewardForFixedRate
function calculateExternalRewardForFixedRate(address token, uint256 rewardAmount) internal pure returns (struct ERC20RewardDistributionHelper.RentalExternalERC20RewardFees externalRewardFees)