Protocol Fees
The protocol supports the definition of a fee to be applied over the rental's amount. It works as follows:
The
RentingV3.vycontract stores theprotocol_feeandprotocol_walletvalues, which are used as parameters when a new rental is created (RentingV3.start_rental).For each rental, the
protocol_feeandprotocol_walletinitially defined are not changed, meaning the conditions defined during rental creation are valid for the full life of the rental.The
adminrole can change both theprotocol_feeandprotocol_wallet, which become valid for every new rental thereafter.At deployment time, a
max_protocol_feeis set, which limits the max possibleprotocol_feevalue that theadmincan set. This value can't be changed.Protocol fees follow a similar process to rental rewards, meaning that they can be accumulated and transfered on specific actions:
RentingV3.withdraw,RentingV3.claim,RentingV3.close_rental, andRentingV3.extend_rental.In case of early rental cancelation (
RentingV3.close_rental) the fees are applied over the pro-rata rental amount, similarly to the rewards.
Last updated